![Nokeval FTR970-PRO Скачать руководство пользователя страница 34](http://html1.mh-extra.com/html/nokeval/ftr970-pro/ftr970-pro_user-manual_1699205034.webp)
34
Nopsa command group 4 - logger commands
Real time buffer commands
Command
Response
4/0 (Buffer info)
0x04 | 0x00
status | size*2 | write position*2
size: Ring buffer size (90), write position: position next to be written
Command
Response
4/1 (Find oldest)
0x04 | 0x01
status | read position*2 | lap counter
Read position: position where is oldest data,
lap counter: how many times ring buffer has rolled over (0..255)
Command
Response
4/2 (Find newest)
0x04 | 0x02
status | read position*2 | lap counter
Read position: position where is newest data,
lap counter: how many times ring buffer has rolled over (0..255)
Command
Response
4/3 (Read buffer with
index)
0x04 | 0x03 | index*2
status | index*2 | lap counter |
timestamp*4 | id*2 | type | data*n
index: buffer read position
lap counter: how many times ring buffer has rolled over (0..255)
timestamp: 4-byte timestamp, see p. 26
id: data origin
type: 32 (STRUCT), see p. 21
Command
Response
4/4 (Read next)
0x04 | 0x04
As in command 4/3
In case of no new data returns only status byte
Command
Response
4/5 (Reread last)
0x04 | 0x05
As in command 4/3
Returns data which was read last. This has its uses when serial communication error happens.
Flash commands
Command
Response
4/16 (Read fl ash)
0x04 | 0x10 | address*4 | count
status | data*count
address: fl ash address, count: data byte count, data: see page 26
Command
Response
4/17 (Find time)
0x04 | 0x11 | timestamp*4
status | address*4 | timestamp*4
timestamp: 4-byte timestamp, see p. 26, address: memory address where is data which is just
next (newer) from given timestamp, response timestamp: timestamp of the found data