About the RS232 tab of SUB-20 tool v1.6.9

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

Post Reply
vaughn
Posts: 6
Joined: Thu Aug 12, 2010 1:22 am

About the RS232 tab of SUB-20 tool v1.6.9

Post by vaughn »

Hi~
I configure the RS232 communication with SUB-20-R25 Serial2 and Windows Hyper terminal tool of Windows XP.
The Tx data is sent from SUB-20 to PC(Windows Hyper terminal tool of Windows XP) correctlly.
However I try to receive the Rx data from PC with 8 bytes and other settings are:
Baud: 9600
Data bit: 8
Polarity:None
Stop bits:1
Rx count:8
The RX data in SUB20 shows always 3 byte count and incorrect data.
I try to set the timing of Txspace, Rxmsg and RXbyte.
But it seems no effctive in the Rx .
Where may I set the wrong value in the RS232 tab of SUB20 tool?

Regards
Vaughn

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: About the RS232 tab of SUB-20 tool v1.6.9

Post by xol »

Hi,
The RS232 Rx is activated only after you press Read button for the period of time defined in Rxmsg, Rxbyte timeouts combination according to the API documentation:
http://www.xdimax.com/sub20/doc/HTML/sub_rs_timing.htm
The maximum timeout you can get is 4sec. So Rx can be active for no more then 4sec.
If you are fast enough to send data from Hyper Terminal withing 4sec you will receive it.
But I do not understand what do you need it for?

vaughn
Posts: 6
Joined: Thu Aug 12, 2010 1:22 am

Re: About the RS232 tab of SUB-20 tool v1.6.9

Post by vaughn »

Hi~
Thanls for your reply.
I just validate the RS232 function of SUB-20 Multi Interface USB Adapter.
I have no any idea to test the RS232 function except the Windows hyperterminal software tool.
I have no other RS232 interface hardware tools except the PC with com port.

I'll try fast enough to send the data from Hyper Terminal within 4sec.
Anyway,Thanks for your information.
Regards
Vaughn

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: About the RS232 tab of SUB-20 tool v1.6.9

Post by xol »

Hi,
The better way is to connect UART to FIFO in this case RS232 input will be captured into FIFO and you could read it from FIFO with sub_fifo_read:
http://www.xdimax.com/sub20/doc/HTML/su ... config.htm
UART has to be configured first
http://www.xdimax.com/sub20/doc/HTML/su ... config.htm

Post Reply