Serial connection at 9600 bps, none parity, 8 bit, 1 bit stop.
Possible command:
A - change the address of a remote.
A:OOOO:NNNN:OOOO:NNNN
where:
- OOOO is the old address
- NNNN is the new address
reply to the 'A' command can be:
- "OK" the command is received and forwarded to the clients.
- "ko" some error occured.
example:
-> A:0123:1CDF:0123:1CDF
<- OK
will change the device address 0x0123 to 0x1CDF.
C - change the id of the master.
C:N
where:
- N is the new address [0:f]
reply to the 'C' command can be:
- "OK" the address has changed.
- "ko" some error occured.
example:
-> C:D
<- OK
will change the master address 0x0 to 0xD.
E - echo on off.
E:X
where:
- X can be '0' or '1', 0 - disable echo, 1 - enable echo.
example:
-> E:0
<- OK
echo disabled.
L - print the TX id.
example (id = 2):
-> L
<- 2
P - send a command to a remote.
P:AAAA:PP:C
where
- AAAA is the address ascii - hex from 0001 to FFFF where:
- 0000 unconfigured device.
- FFFF is broadcast address.
- PP is the pin number in Ascii/hex form from 00 to FF where:
- 00 - i/o pin 0
- 01 - i/o pin 1
- FF - All pin
- C is the command in ascii/hex where:
reply to the 'P' command can be:
- "OK" the command is received and forwarded to the clients.
- "ko" some error occured.
example
-> P:012F:01:1
<- OK
will send to the device "012F" the command "turn on the pin 1".
- Note
- address "0000" is used by unconfigurd devices and should not be used in normal condition.
? - help command.
example:
-> ?
<- the brief commands descrption.
- Todo:
the A command is not implemented yet.
the C command is not implemented yet.