-
3 Control command for decoder chip (Hamser: 1D only)
Important: This chapter describes low level command for scanner control function. If you already USI
to do scanner programming, you don’t need to care about this chapter. In general, it is not suggested to
use level command to control scanner, because there are timing issue on serial communication
programming , and it is always need communication expert to do that and it is hard to explain it on
document.
When Host prepare to send a command to hamster, it must first check CTS, if CTS is high, then Host
must set the RTS to high then clear RTS to low to wake up the Hamster.
Special Command for control
Let Hamster enter slaving status. At this
status Hamster just receives commands and
executes it until it receives Release command
or timeout (about 10s). Otherwise, the timeout
is about 1s as the interval of commands.
Let Hamster exit from slaving status.
Enquiry
Let Hamster execute the previous saved command
and check hamster if there is a result of
previous executed command to send to Host. If
previous saved command have already executed
and no result to send, hamster do not reply
until there is a result. If Host receive a
result but the BCC is wrong, it can re-send
ENQ to re-send result again.
It is from Hamster to Host. If Hamster receive
a command and this command do not need send
message back, Hamster reply the ACK.
It is from Hamster to Host. Hamster require
the Host to re-send command again, normally
when received a wrong BCC, it can send the
NAK. The Hamster sends back NAK whenever it
receives a no sense command.
COMMAND FROM HOST TO HMASTER
Commentaires sur ces manuels