Users Guide
Then, create a new instance of terminal to screen the data over bluetooth serial.
$ cat /dev/rfcomm0
Client Device
$ bluez.sdptool add --channel=22 SP
$ ./rfcomm -r connect /dev/rfcomm0 YY:YY:YY:YY:YY:YY 22
Then, create a new instance of terminal to send data, for example, a new instance of ssh.
$ echo "test" > /dev/rfcomm0
NOTE: The rfcomm command is not available in this command. If required, you can copy the binary to the Edge Gateway from
an AMD64-based system running Ubuntu 16.04 or above.
Serial ports
By default, the LED state of RS-232, RS-422, and RS-485 is OFF. It is only ON when data is being transmitted. The device nodes are ordered
by the port position starting with the left-most port (RS-232).
Table 14. Serial ports
Number Port Type Device node Manufacturer part number
1 RS-232
RS-422
RS-485
COM3 JVE Global
23N6963-10D00B-15G-2.9
http://www.jve.com.cn/
NOTE: This part number is
for reference only and is
subjected to change.
2 RS-232
RS-422
RS-485
COM3 JVE Global
23N6963-10D00B-15G-2.9
http://www.jve.com.cn/
NOTE: This part number is
for reference only and is
subjected to change.
RS-232
To configure the RS-232 port, run the following commands:
1. Set RS232 from the pre-installed DCC application.
$ dcc.cctk -h --serial1
$ dcc.cctk --serial1
$ dcc.cctk --serial1=rs232
2. Set serial port mode.
$ sudo stty -F /dev/ttyXRUSB0 ispeed 115200 ospeed 115200 -echo -onlcr -ixon -ixoff
$ sudo stty -F /dev/ttyXRUSB1 ispeed 115200 ospeed 115200 -echo -onlcr -ixon -ixoff
3. Transfer or receive data between two ports—for example, a wired RS-232 between two serial ports on the device.
$ sudo su
$ echo abcdefg > /dev/ttyXRUSB0
Repeat the command to send data.
4. Receive data from another terminal by ssh from your computer.
$ ssh admin@<IP address of Edge Gateway>
(passwd: admin)
$ sudo su
$ cat /dev/ttyXRUSB1
Verify that the string is received correctly.
55