Hello Ioannis,
Thanks for the reply....

Originally Posted by
Ioannis
The command that you posted, is not correct. Use modedefs.bas with the Serout and at mode the nams like T2400 or N9600 etc. Look at the manual for he correct syntax.
Now about the numbers, since they are inside "" they are treated as a long string message.
Ioannis
Here is the whole code
Code:
Include "modedefs.bas"
CLEAR
TRISC = %10000000'set TX (PORTC.6) to out, rest in
TRISB = %00000000
PortB = %00000000
pause 20
SerOut PortC.6,T9600, ["0x02 0x52 0x04 0x0b 00 0x61 0x0A 0x4D 0x6f 0x62 0x6f 0x74 0x20 0x49 0x49 0x49 00 0x03"]
pause 10
SerOut PortC.6,T9600,["0x02 0x52 0x66 00 00 0xb8 0x03"]
pause 10
Serout PortC.6,T9600, ["0x02 0x52 0x04 0x0b 00 0x61 0x0A 0x4D 0x6f 0x62 0x6f 0x74 0x20 0x49 0x49 0x49 00 0x03"]
Can you help me send the hex values in the proper format?
regards,
mbox
Bookmarks