![ICP DAS USA LP-22 Series User Manual Download Page 51](http://html.mh-extra.com/html/icp-das-usa/lp-22-series/lp-22-series_user-manual_3722566051.webp)
AM335X-PAC Series User Manual version 2.0.1 Page: 51
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
Test using C language:
unsigned char port=36;
DWORD baudrate=9600;
char data=8, parity=0, stopbit=1;
Open_Com(port, baudrate, data, char parity, stopbit);
// send command
…
Test using command line: (PC <--> i-7520 <--> /dev/ttyS on the LP-8x21 - see Figure 2.7.5.3-5)
(A)
Open
‘
Hyper Terminal
’
on the Host PC to monitor the test process. The default settings
for the /dev/ttyS0 port are 9600, 8, N, 1
(B)
Send data via /dev/ttyS0 port:
On the LP-8x21:
Type command:
echo send-485 >/dev/ttyS0
Check that the word
‘
send-485
’
is displayed on the
‘
Hyper Terminal
’
screen on the PC.
(C)
Receive data via the /dev/ttyS0 port:
On the LP-8x21:
Type the command:
cat /dev/ttyS0
On the PC:
Enter some words in the
‘
Hyper Terminal
’
screen on the PC
Check that the same text displayed on the LP-8x21.
LP-8000 send information via COM2 port
Receive data from COM1 port of PC