Prestel CSP-4 Network Serial Port Expander 

Prestel CSP-4 Network Serial Port Expander

Thank you for purchasing this product

For optimum performance and safety, please read these instructions carefully before connecting, operating or adjusting this product. Please keep this manual for future reference.

Surge protection device recommended

This product contains sensitive electrical components that may be damaged by electr-ical spikes, surges, electric shock, lighting strikes, etc. Use of surge protection systems is highly recommended in order to protect and extend the life of your equipment.

Introduction

This Network Serial Port Expander, with 4 extended input and output serial ports, can communicate with the programmable central control system or PC to control multiple devices, and perform protocol conversion between various devices with different communication modes. Built-in various input communication interfaces, the expander can communicate with the programmable central control host or PC through RS-232, RS-422, RS-485 and Network communication interface. The front panel of the expander is designed with LED indicators for power supply, main & extended serial ports sending/receiving data, which can conveniently and quickly indicate the progress of data communication and equipment power failure.

Features

  • Main serial ports support RS-232, RS-422 full duplex, and RS-485 half duplex; extended serial port 1 and extended serial port 2 support RS-232, RS-232+ hardware flow control, RS-422 full duplex, and RS-485 half duplex; extended serial port 3 and extended serial port 4 support RS-232 and RS-232+ hardware flow control
  • Extended serial ports support any baud rate (2400, 4800, 9600, 14400, 19200, 38400, 5600, 57600, 115200) to communicate with devices
  • Extended serial ports support data bits (7, 8 bits), parity bits (odd, even, none), stop bits (1, 2 bits) settings
  • Large buffering space for data transmitting and receiving is reserved for each serial port; data queue is supported
  • Each frame of data can support up to 512 bytes
  • Support data pass-through from an extended serial port to TCP/IP or UDP network
  • Can be used as a protocol converter for serial communication and network communication; 2 network communication modes are provided:
    a. TCP acts as a server, and the extender listens for TCP connection requests on the specified TCP port;
    b. UDP acts as a server, and the extender listens for UDP connection requests on the specified UDP port.
  • Provide one 100M Ethernet communication interface, one RS-232 and one RS – 485 interface, which can be connected to computer or central control system, compatible with all third-party central control systems such as AMX, CRESTRON, RTI, etc.
  • Main communication serial ports support changing the communication baud rate to adapt to any baud rate (2400, 4800, 9600, 14400, 19200, 38400, 5600, 57600, 115200)
  • Support 4 low-voltage relay ports, normally open contacts; each group is independent and isolated, maximum to 1A 24V DC/AC loading
  • Built-in Web server, which can configure device parameters directly through the browser of various computers, tablets and mobile devices
  • Support name or remark device name

Package Contents

① 1 ⅹ Network Serial Port Expander
② 2 ⅹ 5-pin Phoenix Connector (3.81mm, male)
③ 2 ⅹ 7-pin Phoenix Connector (3.81mm, male)
④ 1 ⅹ 8-pin Phoenix Connector (3.81mm, male)
⑤ 2 ⅹ 9-pin Phoenix Connector (3.81mm, male)
⑥ 4 ⅹ Machine Screw
⑦ 2 ⅹ Mounting Ear
⑧ 1 ⅹ 24V/1A Power Adaptor with 2-pin 3.5mm Phoenix Connector
⑨ 1 ⅹ User Manual

Specifications

Technical
RS-232Support full duplex communication mode, configurable hardware flow control
RS-485Support half duplex communication mode
RS-422Support full duplex communication mode
Baud RateSupport 2400, 4800, 9600, 14400, 19200, 38400, 5600, 57600 and 115200
LAN10/100 M Ethernet interface
RELAYSUp to 1A 24VDC/AC loading
Connection
INPUTS1x LAN [RJ45, 8-pin female] 1×COM [7-pin Phoenix jack] 1×DC IN [2-pin Phoenix jack]
OUTPUTS1×COM [7-pin Phoenix jack] 2×COM [9-pin Phoenix jack] 2×COM [5-pin Phoenix jack] 1×RELAY [8-pin Phoenix jack]
Mechanical
HousingMental Enclosure
ColorBlack
Dimension147mm(W)×130mm(D)×42mm(H)
Weight673g
Power SupplyInput: AC100 – 240V 50/60Hz
Output: DC 24V/1A
Power Consumption<2W
Operating Temperature0°C ~ 40°C / 32°F ~ 104°F
Storage Temperature-20°C ~ 60°C / -4°F ~ 140°F
Relative Humidity20~90% RH (non-condensing)

Operation Controls and Functions

Operation Controls and Functions

No.NameFunction Description
1LAN LEDNetwork connection indicator. The green light flashes when the network communication is in good state.
2POWER LEDThe green light is on when the device is powered on.
3RELAYS LEDRelay closing indicator. The green light is always on after the Relay is set to be closing.
 

4

RS-232/422/ 485 LEDUplink and downlink extended serial port indicators, flashing when sending data (red light) and receiving data (yellow light).
5DC 24VDC 24V/1A power input port.
6RESET buttonPress and hold the reset button for 5 seconds to reset the factory settings.
7LAN10M/100M Network communication interface.
8MAIN COMMain communication serial port. Connect to the central
control system or PC.
9NEXT COMMain control cascading output serial port.
10RELAY OUTPUT4 low-voltage relay ports, normally open contacts, each group is independent and isolated, maximum to 1A 24V DC/ AC loading.
11RS-232/ 422 /485Extended serial port, COM1 and COM2 support RS-232/422/ 485 protocol; COM3 and COM4 support RS-232 protocol, which enables the extender to have two-way communication with devices.

Web GUI User Guide

The product supports Web GUI control. You can configure device parameters directly through the browser of various computers, tablets and mobile devices.
The operation method is shown as below:
Step 1, Connect the LAN port of the device to PC, and set the PC’s IP address
to be in the same network segment with the expander. For instance, set the IP address to be 192.168.1.64 and Subnet mask to be 255.255.255.0, as shown in the figure below.

Web GUI User Guide

Step 2, Open the browser (Google Chrome is recommended), and input the expander’s default IP address 192.168.1.100 to enter the Web GUI page.

Web GUI User Guide

The Web GUI pages are shown as below:

  • Overview Page
    The Overview page provides basic information about the product name, firmware version, serial ID, serial Baud and the network settings.
    Web GUI User Guide
  • Serial /Relay Page
    On this page you can configure serial ports and turn on/off relays. After setting, please click “Confirm”.
    Web GUI User Guide
  • System Page
    On this page you can configure network setting, main serial port setting, product setting and restore factory settings. After setting, please click “Confirm”.
    Web GUI User Guide

ASCII Commands

The product also supports ASCII command control. Connect the product to a PC and open a Serial Command tool on PC to send ASCII commands to control the product.

Here is the ASCII command list about Single Machine Instruction.

ASCII Commands
Serial port protocol: baud rate:115200(default) Data bits: 8 Stop bits:1 Parity: none Flow control: none
TCP/IP port: 8880 udp port:8881
x,y,z, XXX are parameters Error Code describe: E00 -> unknown command E01 -> parameter out of range E04 -> This feature is not supported
Serial port expander id range:z = 1~999 Note: When cascading, the id numbers of all machines cannot be set to the same.
VERSION V1.00.09
Command CodeDescriptionExampleFeedbackDefault Setting
System Settings
cspower x!x ={0-1}, 1 = power on, 0 = power off x = on/off, on = power on, off =power offcs power 1! / cs power on!power state: power onpower on
cr power!get current power statecr power!power state:

power on/off

csreboot!reboot the devicecsreboot!reboot…com x config info: baud rate:xxx data len:8bit/7bit stop bit:1bit/2bit parity bit: none/even/odd output type:rs232/ rs232+flow/rs485/ rs422
csreset!Reset to factory defaultscs reset!Reset to factory defaults
crfw version!Get Firmware versioncr fw version!mcu boot:v1.00.01 mcu app :v1.00.13
crstatus!Get device current statuscr status!get the product all status: power, id,com status, ip config,relay status;
csid [x]!Set the ID of the serial port expander, x=1-999cs id 1!set the serial id is 1serial id is 1
Command CodeDescriptionExampleFeedbackDefault Setting
cr id!Query the ID of the serial port expandercr id!serial id is xxx
cs product name xxx!Set the product name Maximum support for 8

characters

cs productset productproduct name
cr product name!Query product namecr product name!product name is
Serial Port Settings
cs com [x] baudrate [y]!Serial port baud rate settings x = {1-5}, y = {1-9}, 1->main com, 1->115200, 2->expand com 1, 2->57600, 3->expand com 2, 3->56000, 4->expand com 3, 4->38400, 5->expand com 4, 5->19200, 6->14400, 7->9600, 8->4800, 9->2400.cs com 1 baudrate 1!set com 1 baudrate is 115200main com ->115200 expand com 1 ->9600 expand com 2 ->9600 expand com 3 ->9600 expand com 4 ->9600
Serial port data length Settings x = {1-5}, y = {1-2}, 1->main com, ->8bit, 2 >expand com 1, 2->7bit, 3 >expand com 2, 4- >expand com 3, 5- >expand com 4,
cs com [x] datalen [y]!When the serial data bit is set to 7bit, if the current check bit is none, the check bit forces a surprise check and indicates “when setting databits to 7bit, the check digit cannot be set t o none,if the check digit is not set, odd check will be set by default!”
For example:
MAIN COM Send: cs com 1 datalen 2!
Feedback information: when setting databits to 7bit, the check digit cannot be set to none,if the check digit is not set, odd check will be set by default! set com 1 datalen is 7 bit
cs com 1 datalen 1!set com 1 datalen is 8 bitmain com ->8bit expand com 1 ->8bit expand com 2 ->8bit expand com 3 ->8bit expand com 4 ->8bit
Command CodeDescriptionExampleFeedbackDefault Setting
cs com [x] stopbit [y]!Serial port stop bit settings x = {1-5}, y = {1-2}, 1->main com, 1->1bit, 2 >expand com 1, 2->2bit, 3 >expand com 2, 4- >expand com 3, 5- >expand com 4,cs com 1 stopbit 1!set com 1 stopbit is 1 bitmain com ->1bit expand com 1 ->1bit expand com 2 ->1bit expand com 3 ->1bit expand com 4 ->1bit
cs com [x] paritybit [y]!Serial port data verification Settings x = {1-5}, y = {1-3}, 1->main com, 1 >none, 2->expand com 1, 2->even, 3->expand com 2, 3->odd, 4->expand com 3, 5->expand com 4,

Note:When the serial check bit is set to null.If the serial data bit is 7 bits, the data bit is forced to change back to 8 bits.

cs com 1 paritybit 1!set com 1 paritybit is nonemain com ->none expand com 1 ->none expand com 2 ->none expand com 3 ->none expand com 4 ->none
cs com [x] output type [y]!Serial output type Settings x = {1-5}, y = {1-4}, 1->main com, 1 >rs232, 2->expand com 1, 2->rs232 3->expand com 2, +flow, 4->expand com 3, 3->rs485, 5 >expand com 4, 4->rs422

Note: rs232 +flow is not supported in main com; com3 and com4 do not support RS485 and RS422.

cs com 1 output type 1!set com 1 output is rs232main com ->rs232 expand com 1 ->rs232 expand com 2 ->rs232 expand com 3 ->rs232 expand com 4 ->rs232
cr com [x] config!Read the serial port configuration information x = {0-5}, 0- >all com, 1- >main com, 2- >expand com 1, 3- >expand com 2, 4- >expand com 3, 5- >expand com 4,cr com 1 config!com 1 config info: baud rate:xxx data len:8bit/7bit stop bit:1bit/2bit parity bit: none/even/odd output type:rs232/ rs232+flow/rs485/ rs422 ……
Command CodeDescriptionExampleFeedbackDefault Setting
Network Port Settings
cs ip addr xxx.xxx.xxx.xxx!set network ip address ip range

1.0.0.1~223.255.255.254

cs ip addr 192.168.1.2!set ip address is 192.168.1.2ip address is 192.168.1.100
cs subnet xxx.xxx.xxx.xxx!set network subnet mask xxx=254|252|248|240|224| 192|128|0cs subnet 255.255.255.0!set subnet mask is 255.255.255.0subnet mask is 255.255.255.0
cs gateway xxx.xxx.xxx.xxx!set network gateway gateway range 1.0.0.1~223.255.255.254cs gateway 192.168.1.1!set gateway is 192.168.1.1gateway is 192.168.1.1
cs ip mode [x]!set ip mode, x={0-1} 0=dhcp 1=static ipcs ip mode 1!ip mode is static ipip mode is static ip
cs tcp/ip port x!tcp/ip port settings, x={1-65535}tcp/ip port is 8000!set tcp/ip port is 8000tcp/ip port is 8880
cs udp port x!udp port Settings, x={1-65535}cs udp port 8001!set udp port is 8001udp port is 8881
cr ipconfig!Network configuration querycr ipconfig!ip mode: static/dhcp ip: 192.168.1.100 subnet mask: 255.255.255.0 gateway: 192.168.1.1 mac address: 6C:DF:FB:00:00:00 tcp/ip mode:server tcp/ip port=8880 udp mode:server udp port =8881
Data Send
N/AExpand serial port data reporting data->cmd data (The data range is 1 to 512) x={1-4} 1->com 1 2->com 2 3->com 3 4->com 4COM1 : ABCDCOM1 : N/A MAIN COM : cs ch 1 report ABCD end!
cs ch [x] cmd [data] end!The data of the main serial port is issued data->cmd data (The data range is1 to 512 ) x={0 4} 0->all com 1->com 1 2->com 2 3->com 3 4->com 4MAIN COM : cs ch 1 cmd ABCD end!MAIN COM : N/A COM1 : ABCD
Command CodeDescriptionExampleFeedbackDefault Setting
Relay Setting
cs relay [x] to [y]!relay switch x={0-4} y={0-1} 0- >all relay port 0->off 1- >relay port 1 1->on 2 >relay port 2 3- >relay port 3 4- >relay port 4cs relay 1 to 1!set relay 1 open
cr relay [x]!relay inquiry x={0-4} 0->all relay port 1->relay port 1 2- >relay port 2 3- >relay port 3 4- >relay port 4cr relay 0!relay 1 is open/close relay 2 is open/close relay 3 is open/close relay 4 is open/close all relays are open all relays are closerelay 1 is close relay 2 is close relay 3 is close relay 4 is close

Here is another ASCII command list about Cascading Order.

ASCII Commands
Serial port protocol: baud rate:115200(default) Data bits: 8 Stop bits:1 Parity: none Flow control: none
TCP/IP port: 8880 udp port:8881
x,y,z, XXX are parameters Error Code describe: E00 -> unknown command E01 -> parameter out of range E04 -> This feature is not supported
Serial port expander id range:z = 1~999 Note: When cascading, the id numbers of all machines cannot be set to the same.
VERSION V1.00.09
Command CodeDescriptionExampleFeedbackDefault Setting
System Settings
id[z] cs power x!x ={0-1}, 1 = power on, 0 = power off x = on/off, on = power on, off =power ofid[1] cs power 1! / cs power on!id[1] power state: power onpower on
id[z] cr power!get current power stateid[1] cr power!id[1] power state: power on/off
Command CodeDescriptionExampleFeedbackDefault Setting
id[z] cs reboot!reboot the deviceid[1] cs reboot!id[1] reboot… id[1] com x config info: baud rate:xxx data len:8bit/7bit stop bit:1bit/2bit parity bit: none/even/odd output type: rs232/rs232+flow/ rs485/rs42 ……
id[z] cs reset!Reset to factory defaultsid[1] cs reset!id[1] reset to factory defaults
id[z] cr fw version!Get Firmware versionid[1] cr fw version!id[1] mcu boot:v1.00.01 mcu app :v1.00.13
id[z] cr status!Get device current statusid[1] cr status!get the product all status: power, id,com status, ip config,relay status;
id[z] cs id [x]!Set the ID of the serial port expander,x=1-999id[1] cs id 1!id[1] set the serial id is 1serial id is 1
id[z] cr id!Query the ID of the serial port

expander

id[1] cr id!id[1] serial id is xxx
id[z] cs product name xxx!Set the product name Maximum support for 8 charactersid[1] cs productid[1] set productproduct name
id[z] cr productQuery product nameid[1] cr productid[1] product
Serial Port Settings
id[z] cs com [x] baudrate [y]!Serial port baud rate settings x = {1-5}, y = {1-9}, 1->main com, 1 >115200, 2->expand com 1, 2 >57600, 3->expand com 2, 3 >56000, 4->expand com 3, 4 >38400, 5->expand com 4, 5 >19200, 6->14400, 7->9600, 8->4800, 9->2400.id[1] cs com 1 baudrate 1!id[1] set com 1 baudrate is 115200main com ->115200 expand com 1 ->9600 expand com 2 ->9600 expand com 3 ->9600 expand com 4 ->9600
Command CodeDescriptionExampleFeedbackDefault Setting
id[z] cs com [x] datalen [y]!Serial port data length Settings x = {1-5}, y = {1-2}, 1->main com, 1->8bit, 2 >expand com 1, 2->7bit, 3 >expand com 2, 4- >expand com 3, 5- >expand com 4,

When the serial data bit is set to 7-bit, if the current check bit is none, the check bit forces a surprise check and indicates “when setting databits to 7-bit, the check digit cannot be set to none,if the check digit is not set, odd check will be set by default!” For example:

MAIN COM Send: id[1] cs com 1 datalen 2!

Feedback information: when setting databits to 7bit, the check digit cannot be set to none,if the check digit is not set, odd check will be set by default! id[1] set com 1 datalen is 7-bit

id[1] cs com 1 datalen 1!id[1] set com 1 datalen is 8-bitmain com->8bit expand com 1 ->8bit expand com 2 ->8bit expand com 3 ->8bit expand com 4 ->8bit
id[z] cs com [x] stopbit [y]!Serial port stop bit settings x = {1-5},y = {1-2}, 1->main com, 1->1bit, 2 >expand com 1, 2->2bit, 3 >expand com 2, 4- >expand com 3, 5- >expand com 4,id[1] cs com 1 stopbit 1!id[1] set com 1 stopbit is 1 bitmain com->1bit expand com 1 ->1bit expand com 2 ->1bit expand com 3 ->1bit expand com 4 ->1bit
id[z] cs com [x] paritybit [y]!Serial port data verification Settings

x = {1-5}, y = {1-3}, 1->main com, 1->none, 2 >expand com 1, 2->even, 3->expand com 2, 3->odd, 4 >expand com 3, 5->expand com 4,

Note: When the serial check bit is set to null.If the serial data bit is 7 bits, the data bit is forced to change back to 8 bits.

id[1] cs com 1 paritybit 1!id[1] set com 1 paritybit is nonemain com ->none expand com 1 ->none expand com 2 ->none expand com 3 ->none expand com 4 ->none
Command CodeDescriptionExampleFeedbackDefault Setting
id[z] cs com [x] output type [y]!Serial output type Settings x = {1-5},y = {1-4}, 1->main com, 1->rs232, 2->expand com 1, 2->rs232 3->expand com 2, +flow, 4->expand com 3, 3->rs485, 5->expand com 4, 4->rs422 Note: rs232 +flow is not supported in main com; com3 and com4 do not support RS485 and RS422.id[1] cs com 1 output type 1!id[1] set com 1 output is rs232main com ->rs232 expand com 1 ->rs232 expand com 2 ->rs232 expand com 3 ->rs232 expand com 4 ->rs232
id[z] cr com [x] config!Read the serial port configuration information x = {0-5},

0- >all com,

1- >main com,

2- >expand com 1,

3- >expand com 2,

4- >expand com 3,

5- >expand com 4,

id[1] cr com 1 config!id[1] com 1 config info: baud rate:xxx data len:8bit/7bit stop bit:1bit/2bit parity bit: none/even/odd output type:rs232/ rs232+flow/rs485/ rs422 ……
Network Port Settings
id[z] cs ip addr xxx.xxx.xxx.xxx!set network ip address ip range

1.0.0.1~223.255.255.254

id[1] cs ip addr 192.168.1.2!id[1] set ip address is 192.168.1.2ip address is 192.168.1.100
id[z] cs subnet xxx.xxx.xxx.xxx!set network subnet mask xxx

=254|252|248|240|224|192| 128|0

id[1] cs subnet 255.255.255.0!id[1] set subnet mask is 255.255.255.0subnet mask is 255.255.255.0
id[z] cs gateway xxx.xxx.xxx.xxx!set network gateway gateway range

1.0.0.1~223.255.255.254

id[1] cs gateway 192.168.1.1!id[1] set gateway is 192.168.1.1gateway is 192.168.1.1
id[z] cs ip mode [x]!set ip mode, x={0-1} 0=dhcp 1=static ipid[1] cs ip mode 1!id[1] ip mode is static ipip mode is static ip
id[z] cs tcp/ip port x!tcp/ip port settings, x={1-65535}id[1] tcp/ip port is 8000!id[1] set tcp/ip port is 8000tcp/ip port is 8880
id[z] cs udp port x!udp port Settings,x={1-65535}id[1] cs udp port 8001!id[1] set udp port is 8001udp port is 8881
id[z] cr ipconfig!Network configuration queryid[1] cr ipconfig!id[1] ip mode: static/dhcp ip: 192.168.1.100 subnet mask: 255.255.255.0 gateway: 192.168.1.1 mac address: 6C:DF:FB:00:00:00 tcp/ip mode:server tcp/ip port=8880 udp mode:server udp port =8881
Command CodeDescriptionExampleFeedbackDefault Setting
Relay Setting
id[z] cs relay [x] to [y]!relay switch x={0-4} y={0-1} 0- >all relay port 0->off 1- >relay port 11->on 2->relay port 2 3- >relay port 3 4- >relay port 4id[1] cs relay 1 to 1!id[1] set relay 1 open
id[z] cr relay [x]!relay inquiry x={0-4} 0->all relay port 1->relay port 1 2- >relay port 2 3- >relay port 3 4- >relay port 4id[1] cr relay 0!id[1] relay 1 is open/close id[1] relay 2 is open/close id[1] relay 3 is open/close id[1] relay 4 is open/close id[1] all relays are open id[1] all relays are closerelay 1 is close relay 2 is close relay 3 is close relay 4 is close
Cascade Control
id[z] cs ch x cmd ABCD end!The data of the main serial port is issued data->cmd data

(The data range is1 to 512 ) z = {1~999},x={0-4}

  1. When using cascade, you first need to use main com to issue a command with id flag, and the feedback information will be marked with id. At this time, the machine enters the cascade state. For example : MAIN COM : id[1] cs ch 1 cmd ABCD end! COM1 : id[1] ABCD
  2. If next time the main com sends the command without the id mark, the feedback message will not carry the id mark. At this time, the machine enters the non- cascading state.
    For example : MAIN COM : cs ch 1 cmd ABCD end! COM1 : ABCD

Note: When cascading, the id numbers of all machines cannot be set to the same.

MAIN COM :
id[1] cs ch 1 cmd ABCD end!
MAIN COM : N/A COM1 : id[1] ABCD
Command CodeDescriptionExampleFeedbackDefault Setting
N/ASub-machine data report data->cmd data
(The data range is 1 to 512)
When using cascading, when the extended COM of any machine reports data to the host, each machine must be in the cascading state, otherwise, the data received by the host will have errors.
COM1 : ABDCCOM1 : N/A MAIN COM : id[xxx] cs ch 1 report ABCD end!

Logo

Documents / Resources

Prestel CSP-4 Network Serial Port Expander [pdf] User Manual
CSP-4 Network Serial Port Expander, CSP-4, Network Serial Port Expander, Serial Port Expander, Port Expander

References

Leave a comment

Your email address will not be published. Required fields are marked *