SCANTECH ID (Champtek company) Discovery SG-20 User Manual

Page 104

Advertising
background image

96

Appendices

eg : 0x1400 should be formed as ASCII characters

'1' '4' '0' '0' (or in hex values : 0x31 0x34 0x30 0x30).

After receiving the command, the Discovery checks if the user is permitted to

clear the region.

If anything is incorrect (that is, the start address is out of region (see also the

memory map explanation), or the length is too high) the Discovery responds with

a 'NACK' - character (0x15).

If everything checks out correctly, the Discovery starts to clear the given region.

This process takes a while and can be followed on the display of the Discovery

itself.

*

After finishing the clearing process the Discovery returns :

ACK (0x06) If everything has turned out OK.

NACK (0x15) If something went wrong.

B Sending the S-Records

If the initialisation process of step 1 has performed successfully, the Discovery

has returned the ACK (0x06) character and is waiting for the first S-Record (the

S0-record) to come in.

Now the host should send the S-Records (usually directly out of a text file) to the

Discovery.

Note: Every S-Record should be followed by a CR (0x13) character, also in

RS485 mode.

After sending an S-Record, the Host should wait for a response of the Discovery,

which could be :

ACK (0x06)

OK, you may send the next S-Record

NACK (0x15)

Error, something went wrong due to a number of possible

reasons :

- Checksum of S-Record is incorrect due to interference or

an error in the file.

Advertising