ZX-24n UART COM2 COM3 Problem.
Posted: 30 July 2012, 17:04 PM
I am trying to send out the data from the COM2 to a Wifi module(Wifly-RN131G).
The problem is when I try to send out a byte starting with a "1" in bit 7. It can't be sent out. For example "0xFF", "0xAA". If I send out "0xFF" 256 times, i will receive a wrong value 128 times.
But data like "0x0F", "0x7F" is OK. It's like it only sends out 7bits data instead of 8bits.
This is the setting of the COM
Call DefineCom(3, 14, 15, &H88, 1)
I am using the RS232 interface of the WiFi module so I enabled the inverted logic bit, bit7 of the the flag.
I also tried the COM2, connecting it to the TTL UART interface of the WiFi modlue
DefineCom(2, 0, 0, &H08, 1)
Same problem.
The UART setting of Wifi module is 8-N-1 and it's not configurable.
The problem is when I try to send out a byte starting with a "1" in bit 7. It can't be sent out. For example "0xFF", "0xAA". If I send out "0xFF" 256 times, i will receive a wrong value 128 times.
But data like "0x0F", "0x7F" is OK. It's like it only sends out 7bits data instead of 8bits.
This is the setting of the COM
Call DefineCom(3, 14, 15, &H88, 1)
I am using the RS232 interface of the WiFi module so I enabled the inverted logic bit, bit7 of the the flag.
I also tried the COM2, connecting it to the TTL UART interface of the WiFi modlue
DefineCom(2, 0, 0, &H08, 1)
Same problem.
The UART setting of Wifi module is 8-N-1 and it's not configurable.