CN2510
Setting Up Device Control
5-10
Settings:
Target port: parity = None, data bits = 8, stop bit = 1, software (XON/XOFF) flow control, no hardware
(RTS/CTS).
Syntax: # ./example ConsoleServerName [port(1) [Baud(9600)]]
For example:
# ./example CN2510 1 19200
Program sends “1234567890” to port 1 at 19200 bps baud rate and reads back any data on it. Environment:
SCO UNIX. If you’re using another system, modify by including the file name and other variables.
ASPP Examples for Windows
1.
Program testing environment:
2.
This program works like a dumb terminal. It sends all characters pressed on the keyboard to a remote
connection, and then echoes the data to the screen.
3.
This program sends ‘\r’ as ‘\r\n’ and ‘\n’ as ‘\r\n’.
4.
All CN2510 ASPP functions are defined in the file as.h.
5.
The program works on Windows 9x/NT/2000/XP/2003 as a dumb terminal. After completing the connection
to CN2510, the serial port will send all characters pressed on the keyboard to the remote connection, and
then echo the data to the screen.