?? 安裝說明.txt
字號:
串口接入模塊安裝說明
文件:
接入模塊(SerialConnect)
配置文件(SerialConfig.xml)
配置文件制作:
樣例:
<?xml version="1.0"?>
<SerialPortConfig>
<SerialPort>
<SerialNo> 1 </SerialNo>
<PortNno> 2001 </PortNno>
<SerialName> /dev/ttyM0 </SerialName>
<BaudRate> 9600 </BaudRate>
<DateBit> 8 </DateBit>
<ParityBit> PARITY_NONE </ParityBit>
<StopBit> STOPBITS_1 </StopBit>
<inSoftFlowCtrl> OFF </inSoftFlowCtrl>
<outSoftFlowCtrl> OFF </outSoftFlowCtrl>
<inHardFlowCtrl> OFF </inHardFlowCtrl>
<outHardFlowCtrl> OFF </outHardFlowCtrl>
</SerialPort>
<SerialPort>
<SerialNo> 2 </SerialNo>
<PortNno> 2002 </PortNno>
<SerialName> /dev/ttyM1 </SerialName>
<BaudRate> 9600 </BaudRate>
<DateBit> 7 </DateBit>
<ParityBit> PARITY_EVEN </ParityBit>
<StopBit> STOPBITS_1 </StopBit>
<inSoftFlowCtrl> ON </inSoftFlowCtrl>
<outSoftFlowCtrl> ON </outSoftFlowCtrl>
<inHardFlowCtrl> OFF </inHardFlowCtrl>
<outHardFlowCtrl> OFF </outHardFlowCtrl>
</SerialPort>
</SerialPortConfig>
配置說明;
<SerialNo> /*MOXA串口編號*/
<PortNno> /*映射服務端口*/
<SerialName> /*串口名稱*/
<BaudRate> /*波特率*/
<DateBit> /*數據位 DATABITS_5 DATABITS_6 DATABITS_7 DATABITS_8 */
<ParityBit> /*校驗位 PARITY_EVEN PARITY_MARK PARITY_NONE PARITY_ODD PARITY_SPACE */
<StopBit> /*停止位 STOPBITS_1 STOPBITS_1_5 STOPBITS_2 */
<inSoftFlowCtrl> /*輸入軟流控 ON or OFF */
<outSoftFlowCtrl> /*輸出軟流控 ON or OFF */
<inHardFlowCtrl> /*輸入硬流控 ON or OFF */
<outHardFlowCtrl> /*輸出硬流控 ON or OFF*/
程序啟動方法:
SerialConnect SerialConfig.xml
啟動成功檢查:
用telnet連接到相應服務端口,MPTMON口可以發命令,MMC接收到回顯即可
例:
telnet ip 2001
telnet ip 2002
杭州132.128.5.68上串口接入模塊啟動說明:
登錄:nmc
cd serialsocket
start
注:目前只配置了兩個端口,一個MPTMON 一個MMC
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -