ICP DAS USA LP-22 Series User Manual page 51

Hide thumbs Also See for LP-22 Series:
Table of Contents

Advertisement

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
for the /dev/ttyS0 port are 9600, 8, N, 1
(B) Send data via /dev/ttyS0 port:
On the LP-8x21:
Type command:
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:
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
AM335X-PAC Series User Manual
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved.
Terminal' on the Host PC to monitor the test process. The default settings
echo send-485 >/dev/ttyS0
cat /dev/ttyS0
Receive data from COM1 port of PC
version 2.0.1
Page: 51
E-mail: service@icpdas.com

Advertisement

Table of Contents
loading

Table of Contents