📄 readme
字号:
======================================================================CompressionTest======================================================================This application tests the the compression algorithms in thecompression library. It has a node side (CompressionTest) and PC side(node-comm). The PC side reads data from a text file, transmits it tothe mote using a UART. The mote stores it in a buffer, compressed itand sends it back. The default chunk size that CompressionTest readsis 256 bytes.The data read by node-comm must be stored in a simple but specificfile format (see below).* CompessionTestIn order to build this application setup an algorithm by linking oneof the algorithm ".h" files to compressor.h in lib/compression (seelib/compression/README for more). Compile and upload your applicationto the mote.To test if the beast is a live open a termninal and type "p" it shouldrespond with "pong".* node-commThe PC side of the CompressionTest application it transmits the dataread from the data file. It accepts a few parameters to controll theprocess. For exaple one could run the following: ./node-comm data.csv -d /dev/ttyUSB1 -s230400 -r 10Available options are:./node-comm -hUsage: node-comm input-file [-d device] [-s speed] [-r runs] [-o ouput file] -h This help message -d The serial device to communicate with the mote -s The transfer rate of the serial device (speed) -r Maximum number of blocks to compress -o Output file* File formatThe format consists of 7 fields separated by ; 1. Timestamp of the form \d+\.\d{3} 2. Sequence number: \d+ 3-7. 5 RAW adc samples: -?\d+1045334311.383;0;-53;872;-41;388;4201045334311.627;1;-284;1039;-156;401;4311045334311.871;2;-416;1026;-51;405;4301045334312.115;3;-364;855;-147;404;4221045334312.359;4;-400;901;88;403;4241045334312.604;5;-434;844;-57;405;4221045334312.848;6;-432;971;-167;406;4261045334313.092;7;-139;993;-327;392;4281045334313.336;8;179;1086;-410;379;432
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -