Читать архивы можно либо для отдельно взятого прибора: tbn -x#bpd#tbn где bpd - адрес БПД, tbn - адрес KM5 либо для группы приборов, в этом случае необходимо сосздать файл tbn.ini, в котором в строке на первом месте адрес БПДД, на втором - КМ5. Если адрес КМ5 не указывать, это означает, что к БПДД подключен только один КМ5. Запуск с файлом конфигурации: tbn -x/путь_к_файлу_конфигурации Можно читать: почасовые: -ah суточные: -ad месячные: -am годовые: -ay Максимальное количество читаемых записей указывается ключом -mnn, где nn - число Подробнее см. tbn -h TBN: Reading of archives heat counter KM-5 through network SOS-95. Copyright 2004 MNPP SATURN,ltd Use: tbn [options] -h - display this information -L - show license -v - show version information -a[h|d|m|y|e] - select archive type ([h]our, [d]ay, [m]onth , [y]ear or [e]rror), default - month -m[nn] - set a maximum quantity of readable archival records (default: 24 for hour, 31 for day, 12 for month and 10 for year archive) -f - reading of archive in the direct order (by default: return order) -Dddmmyyhh - read, since record with the specified date (dd-day, mm-month, yy-year, hh-hour) -x[[#bpd[#km5]]|[/path/tbn.ini]] - start reading: if present #bpd[#km5] - read from device with address km5, which connected to #bpd, if #km5 not present use automatic definition address, address #km5 must been in HEXBCD format; by default use configuration file `tbn.ini` -o[n|t|c][l] - format of the target data: [n]ormal, [t]ab divided, [c]sv compatible (default: normal), write [l]egend -d - show debug info -tccc - establish serial device to which it is connected BKD (ccc - name, default: /dev/ttyS0) Examples: tbn -x reading of archives data with default options tbn -x -ad reading of day archives data tbn -x -ad -f >archive.txt reading of day archive from first record and save to the file `archive.txt` tbn -x -ad -f -D01010424 reading of day archive from record by 1-01-2004 24:00 to direct order TBN comes with ABSOLUTELY NO WARRANTY, for details type `tbn -L` Report bugs to История версий: 1.0 - первая заработавшая; 1.1 - исправлена ошибка с опросом устройств на "быстрых" компьютерах; 1.2 - добавлена проверка на попытку использования уже открытого порта. Проект переехал на компилятор FPC 2.0.0