hello
http://www.dx.com/pt/p/rf1100-232-cc...Q#.VbtNY_NViko

Bought this RF modules is working there are times that he forgets the configurations have to connect the PC to reconfigure all
how could I send the configuration to it when I connect the PIC
The modules are configured in hexdecimal
Elguem have an idea how I do it or somebody already had this problem.
RF1100-232 command table

Set serial port baud rate

Text Command Code Baud Rate Description
Length 2 bytes 1 byte 0x01: 4800
Format hex hex 0x02: 9600
Fixed 0xA3, 0x3A 0x01/0x02/0x03 0x03: 19200





Example: sending 0xA3, 0x3A, 0x03 to the module sets the serial port baud rate to 19200.

Set channel communication rate (not supported/implemented according to the documents I found)

Text Command Code Channel Rate
Description
Length 2 bytes 1 byte
Format hex hex
Fixed 0xA5, 0x5A 0x64






Set channel

Text Command Code Channel Number
Description
Length 2 bytes 1 byte Channel number from
Format hex hex 0x00 - 0xFF
Fixed 0xA7, 0x7A 0x00-0xFF (256 channels)





Example: sending 0xA7, 0x7A, 0x10 to the module sets the channel to 16 (0x10 hex).

Set module ID

Text Command Code Module ID
Description
Length 2 bytes 2 bytes 2 bytes module ID
Format hex hex 0x0000 to 0xFFFF
Fixed 0xA9, 0x9A 0xFF, 0xFF






Example: sending 0xA9, 0x9A, 0x00, 0xFF to the module sets the module ID to 255 (0x00FF hex).

Set TX power

Text Command Code TX Power
Description
Length 2 bytes 1 byte transmit power (dbm)
Format hex hex 0x00, 0x05, 0x07
Fixed 0xAB, 0xBA 0x00/0x05/0x07/0x0A
or 0x0A (10 decimal)





Example: sending 0xAB, 0xBA, 0x0A to the module sets the TX power to 10dbm.

Read config from module

Text Command Code Returned Data Format
Length 2 bytes 1 byte 1 byte
1 byte 1 byte 1 byte 2 bytes
Format hex hex hex
hex hex hex hex
Fixed 0xA6, 0x6A 0xA6
Channel
Channel Rate Baud rate Power Module ID




Example: sending 0xA6, 0x6A to the module returns the following data containing the module's current config:

0xA6, 0x10, 0x64, 0x03, 0x0A, 0x00, 0xFF

0xA6 - start of config dump (fixed)
0x10 - Channel number 16 (0x10 hex)
0x64 - Channel rate (fixed)
0x03 - 19200 baud
0x0A - 10 dbm TX Power
0x00, 0xFF - 2 byte module ID