CN109302325A - Serial server, device management method and readable storage medium storing program for executing - Google Patents
Serial server, device management method and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109302325A CN109302325A CN201811458149.9A CN201811458149A CN109302325A CN 109302325 A CN109302325 A CN 109302325A CN 201811458149 A CN201811458149 A CN 201811458149A CN 109302325 A CN109302325 A CN 109302325A
- Authority
- CN
- China
- Prior art keywords
- sent
- management
- serial
- data
- management equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
- H04L41/0266—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
Abstract
The present invention relates to the communication technologys.The present invention solves current serial server inconvenient problem with use, provide a kind of serial server, device management method and readable storage medium storing program for executing, its technical solution can be summarized as: serial server, including wireless communication module and serial communication modular, wireless communication module is sent for receiving the management data that management equipment is sent by wireless network by the serial communication modular;It is also used to receive the serial data from managed devices that the serial communication modular is sent, and the management equipment is sent to by wireless network;Serial communication modular, for the management data to be sent to managed devices;It is also used to receive the serial data of managed devices return, and the management equipment is sent to by the wireless communication module.The beneficial effects of the present invention are: can satisfy the application scenarios frequently moved, and can be no longer independent when use, secondary development and unified management can be carried out, serial server is suitable for.
Description
Technical field
The present invention relates to the communication technologys, the in particular to technology of serial server.
Background technique
With the rapid development of communication technology, people propose higher and higher want for the usage experience of communication network
It asks, and the communication equipment in communication network, play very important role in data communication.The function of communication equipment is increasingly
It is abundant, performance also with hardware chip update and gradually significantly promoted.But for communication equipment, pass through serial ports
Outband management remain a kind of very important equipment management mode.
In network application, more particularly to the network equipment is managed and maintained and embedded software developing and survey
During examination, it is required to use the serial ports of equipment as outband management mode.And with the fast development of electronic device, network is set
It is standby also gradually to be developed from centralization to distribution, it stacks and virtualization is also used widely gradually, it is therefore desirable to the string of management
Mouth is also multiplied therewith, generallys use serial server and is managed to the network equipment.And at present serial server exist with
Lower problem: serial server needs to carry out wired connection with management equipment and each managed devices (the i.e. above-mentioned network equipment) respectively,
This has resulted in being routed complicated, the higher problem of management cost, and because serial server needs and management equipment wired connection,
It just can not preferably meet the application scenarios as needed frequently mobile serial server, in addition, serial server is opposite when using
It is independent, secondary development can not be carried out, does not support to be managed collectively.
Summary of the invention
The present invention is to solve current serial server inconvenient problem with use, provides a kind of serial server, use
Technical solution is: serial server, including wireless communication module and serial communication modular,
The wireless communication module, the management data sent for receiving management equipment by wireless network, and pass through institute
Serial communication modular is stated to send;It is also used to receive the serial ports number from managed devices that the serial communication modular is sent
According to, and the management equipment is sent to by wireless network;
The serial communication modular, for the management data to be sent to managed devices;It is also used to receive and be managed
The serial data that equipment returns, and the management equipment is sent to by the wireless communication module.
Specifically, then the wireless communication module is specifically used for for the function of further illustrating wireless communication module, monitor
Specified TCP communication port, the management data that TCP socket corresponding with the specified TCP communication port is received,
It is sent to the serial communication modular by interrupting call back function, described be managed is sent to by the serial communication modular and is set
Standby, all data for being also used to receive the serial communication modular are sent to the pipe by the corresponding TCP socket
Manage equipment.
Further, the wireless communication module is also used to, and monitors specified TCP management port, receives management equipment hair
The administration order sent, and the response of the administration order will be sent.It is set to enable serial server to receive management
Standby management.
Specifically, then the wireless communication module is also used to further realize the long-range management of management equipment, work exists
STA (wireless terminal) mode simultaneously connects AP (Access Point, wireless access point), to receive long-range management equipment progress
Management.
The present invention is to solve current serial server inconvenient problem with use, provides a kind of device management method, is used
Technical solution be: a kind of device management method, be applied to serial server, which comprises
The management data that management equipment is sent by wireless network are received, managed devices are sent to by serial ports;It receives
Serial data from managed devices, and the management equipment is sent to by wireless network.
Specifically, for the mode for proposing data transmission in a kind of specific above equipment management method, then the reception pipe
The management data that reason equipment is sent by wireless network, are sent to managed devices by serial ports, comprising:
Monitor specified TCP communication port, if listening to the management data that management equipment is sent, by with it is described specified
The management data that the corresponding TCP socket in TCP communication port receives are sent to be managed and set by interrupting call back function
Standby serial ports;
The serial data of the reception from managed devices, and the management equipment is sent to by wireless network, it wraps
It includes:
The data that the serial ports of managed devices is sent are received, judge the TCP socket of corresponding specified TCP communication port
Whether word is sky, if not empty, is then socketed the data received by TCP corresponding with the specified TCP communication port
Word is sent, and if it is empty then abandons the data.
Further, to enable serial server to receive the management of management equipment, the method also includes: receive management
The administration order that equipment is sent by wireless network, comprising:
Specified TCP management port is monitored, receives the administration order that management equipment is sent, and will be according to the administration order
The response of progress is sent.
Specifically, then working in STA mode to further realize the long-range management of management equipment and connecting AP, to receive
The management that long-range management equipment carries out.
The present invention is to solve current serial server inconvenient problem with use, provides a kind of serial server, use
Technical solution is: serial server, which is characterized in that including processor, memory, WIFI communication module, level switch module
And cable interface, the WIFI communication module are connect with level switch module, level switch module is connect with cable interface;It is described
WIFI communication module is used to pass through wireless network connection with management equipment;The cable interface is for the serial ports with managed devices
Connection, the memory store instruction make the processor execute above-mentioned set when executed by the processor
The operation of standby management method.
The present invention is to solve current serial server inconvenient problem with use, provides a kind of readable storage medium storing program for executing, is used
Technical solution be a kind of readable storage medium storing program for executing, be stored thereon with computer program, the computer program is executed by processor
Shi Shixian above-mentioned device management method.
The invention has the advantages that can be led to by above-mentioned serial server, device management method and readable storage medium storing program for executing
Wireless network to be crossed to connect with management equipment, component part as used by it is more light and handy, it can be fabricated to portable device, and
No longer by wired connection between management equipment, so as to meet the application scenarios frequently moved, and can be no longer when use
It is independent, secondary development and unified management can be carried out.
Detailed description of the invention
Fig. 1 is the system block diagram of serial server in the present invention.
Fig. 2 is the hardware relation schematic diagram of serial server in the present invention.
Fig. 3 is the flow chart of the processing method of serial server in the embodiment of the present invention.
Specific embodiment
Below with reference to examples and drawings, the technical schemes of the invention are described in detail.
Serial server of the invention, system block diagram referring to Fig. 1, including wireless communication module and serial communication modular,
The wireless communication module, the management data sent for receiving management equipment by wireless network, and pass through institute
Serial communication modular is stated to send;It is also used to receive the serial ports number from managed devices that the serial communication modular is sent
According to, and the management equipment is sent to by wireless network;
The serial communication modular, for the management data to be sent to managed devices;It is also used to receive and be managed
The serial data that equipment returns, and the management equipment is sent to by the wireless communication module.
For the function of further illustrating wireless communication module, then wireless communication module is particularly used in: monitoring specified TCP
Communication port, the management data that TCP socket corresponding with specified TCP communication port is received, by interrupting call back function
It is sent to the serial communication modular, the managed devices are sent to by the serial communication modular, are also used to lead to serial ports
All data that letter module receives are sent to management equipment by corresponding TCP socket.
Wireless communication module can also be used in: monitoring specified TCP management port, receives the management life that management equipment is sent
It enables, and the response of administration order will be sent.To enable serial server to receive the management of management equipment.
For the long-range management for further realizing management equipment, then wireless communication module is also used to: work is in STA mode and company
AP is met, to receive the management that long-range management equipment carries out.
A kind of device management method of the invention is applied to serial server, which comprises
The management data that management equipment is sent by wireless network are received, managed devices are sent to by serial ports;It receives
Serial data from managed devices, and the management equipment is sent to by wireless network.
For the mode for proposing data transmission in a kind of specific above equipment management method, then receives management equipment and pass through nothing
The management data that gauze network is sent, are sent to managed devices by serial ports, can specifically:
Monitor specified TCP communication port, if listening to the management data that management equipment is sent, by with specified TCP
The management data that the corresponding TCP socket of communication port receives are sent to managed devices by interrupting call back function
Serial ports;
The serial data from managed devices is received, and the management equipment is sent to by wireless network, it can be specific
Are as follows:
The data that the serial ports of managed devices is sent are received, judge the TCP socket of corresponding specified TCP communication port
Whether word is sky, if not empty, is then socketed the data received by TCP corresponding with the specified TCP communication port
Word is sent, and if it is empty then abandons the data.Here, due to and do not know the serial server whether with management equipment establish
Connection, thus judge specified TCP communication port TCP socket whether be it is empty, when to be empty, i.e., the serial server is simultaneously
It is not connect with management equipment, therefore the data can only be abandoned.
To enable serial server to receive the management of management equipment, then the method may also include that reception management equipment
The administration order sent by wireless network, comprising:
Specified TCP management port is monitored, receives the administration order that management equipment is sent, and will carry out according to administration order
Response send.
For the long-range management for further realizing management equipment, then serial server work can be enabled in STA mode and is connected
AP, to receive the management that long-range management equipment carries out.
Serial server of the invention, hardware relation schematic diagram referring to fig. 2, including processor, memory, WIFI communication
Module, level switch module and cable interface, WIFI communication module are connect with level switch module, level switch module and cable
Interface connection;WIFI communication module is used to pass through wireless network connection with management equipment;Cable interface is used for and managed devices
Serial ports connection, memory store instruction, when instruction executed by processor when so that processor is executed above-mentioned device management method
Operation.The level conversion for the data that level switch module is used to come cable interface transmission is level needed for WIFI communication module
After be sent to WIFI communication module, and be level needed for cable interface by the level conversion for the data that the transmission of WIFI communication module comes
After be sent to cable interface.
A kind of readable storage medium storing program for executing of the invention, is stored thereon with computer program, which is held by processor
Above-mentioned device management method is realized when row.
Embodiment
Illustrate serial server of the present invention in a manner of concrete example below, hardware relation schematic diagram is referring to figure
2。
Wherein, WIFI communication module has ap mode and STA mode.Specified TCP communication port is with 23 port TCP
Example, specified TCP management port is by taking 80 port TCP as an example.
In use, its specific process flow diagram, referring to Fig. 3, serial server first starts, reads from memory and match confidence
Breath, and system initialization is completed, while opening serial ports interruption, after starting and completing initialization, if detecting the presence of STA configuration
Information, then the work of WIFI communication module is in STA mode, and attempts the AP outside connection, if successful connection, then it is assumed that mutual in connection
Networking waits management equipment to connect by internet with the WIFI communication module, and WIFI communication module switches if connection failure
For ap mode, management equipment is waited to connect by wireless network with the WIFI module as AP;Then the serial server moment supervises
23 port TCP is listened, if listening to the data (necessarily having management equipment connection at this time) that management equipment is sent, passes through interruption
Call back function, by the serial ports of all data penetration transmissions received to managed devices, if receiving the serial ports hair of managed devices
The data (at this time and being unaware of whether be connected with management equipment) sent, then judge 23 port TCP TCP socket whether be
Sky is if not empty then sent the data received by the TCP socket of 23 port TCP, and if it is empty then abandoning should
Data;And the wireless WIFI serial server also moment monitors 80 port TCP, receives the administration order that management equipment is sent, and will
It is sent according to the response that the administration order carries out.
Claims (10)
1. serial server, which is characterized in that including wireless communication module and serial communication modular,
The wireless communication module, the management data sent for receiving management equipment by wireless network, and pass through the string
Port communications module is sent;It is also used to receive the serial data from managed devices that the serial communication modular is sent,
And the management equipment is sent to by wireless network;
The serial communication modular, for the management data to be sent to managed devices;It is also used to receive managed devices
The serial data of return, and the management equipment is sent to by the wireless communication module.
2. serial server as described in claim 1, which is characterized in that the wireless communication module is specifically used for, and monitoring refers to
Fixed TCP communication port, the management data that TCP socket corresponding with the specified TCP communication port is received are led to
It crosses interruption call back function and is sent to the serial communication modular, the managed devices are sent to by the serial communication modular,
All data for being also used to receive the serial communication modular are sent to the management by the corresponding TCP socket and set
It is standby.
3. serial server as described in claim 1, which is characterized in that the wireless communication module is also used to, and is monitored specified
TCP management port, receive the administration order that management equipment is sent, and the response of the administration order will be sent.
4. serial server as described in any one of claims 1-3, which is characterized in that the wireless communication module is also used to,
Work is in STA mode and connects AP, to receive the management that long-range management equipment carries out.
5. a kind of device management method, which is characterized in that be applied to serial server, which comprises
The management data that management equipment is sent by wireless network are received, managed devices are sent to by serial ports;Reception comes from
The serial data of managed devices, and the management equipment is sent to by wireless network.
6. device management method as claimed in claim 5, which is characterized in that the reception management equipment is sent out by wireless network
The management data sent, are sent to managed devices by serial ports, comprising:
Monitor specified TCP communication port, if listening to the management data that management equipment is sent, by with the specified TCP
The management data that the corresponding TCP socket of communication port receives are sent to managed devices by interrupting call back function
Serial ports;
The serial data of the reception from managed devices, and the management equipment is sent to by wireless network, comprising:
The data that the serial ports of managed devices is sent are received, judge that the TCP socket of corresponding specified TCP communication port is
No is sky, if not empty, is then sent out the data received by TCP socket corresponding with the specified TCP communication port
It sees off, if it is empty then abandons the data.
7. device management method as claimed in claim 5, which is characterized in that the method also includes: it is logical to receive management equipment
Cross the administration order of wireless network transmission, comprising:
Specified TCP management port is monitored, receives the administration order that management equipment is sent, and will carry out according to the administration order
Response send.
8. such as the described in any item device management methods of claim 5-7, which is characterized in that work is in STA mode and connects AP,
To receive the management that long-range management equipment carries out.
9. serial server, which is characterized in that including processor, memory, WIFI communication module, level switch module and cable
Interface, the WIFI communication module are connect with level switch module, and level switch module is connect with cable interface;The WIFI is logical
Letter module is used to pass through wireless network connection with management equipment;The cable interface is used to connect with the serial ports of managed devices,
The memory store instruction makes the processor execute such as claim 5-8 when executed by the processor
The operation of the device management method.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed
Such as claim 5-8 described in any item device management methods are realized when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811458149.9A CN109302325A (en) | 2018-11-30 | 2018-11-30 | Serial server, device management method and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811458149.9A CN109302325A (en) | 2018-11-30 | 2018-11-30 | Serial server, device management method and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109302325A true CN109302325A (en) | 2019-02-01 |
Family
ID=65142021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811458149.9A Pending CN109302325A (en) | 2018-11-30 | 2018-11-30 | Serial server, device management method and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109302325A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113965500A (en) * | 2021-09-17 | 2022-01-21 | 浪潮思科网络科技有限公司 | Serial server port occupation management method, device and medium |
CN114827118A (en) * | 2022-04-18 | 2022-07-29 | 恩平市帝赛斯音响器材厂 | Internet-based network power supply remote management system |
CN115086104A (en) * | 2022-06-23 | 2022-09-20 | 武汉迈威通信股份有限公司 | Method for supporting data disconnection retransmission and serial server |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102568182A (en) * | 2012-01-04 | 2012-07-11 | 深圳市创维群欣安防科技有限公司 | Method for wireless control of liquid crystal splicing system through wireless fidelity (wifi) |
KR101166419B1 (en) * | 2009-12-15 | 2012-07-19 | 주식회사 신성엔지니어링 | Remote control system for chiller and method therefor |
CN103078895A (en) * | 2013-02-28 | 2013-05-01 | 安徽康海时代科技有限公司 | Industrial Ethernet multi-functional double-serial-port server based on MCF52233 (magnetic card file) chip |
JP5194307B2 (en) * | 2010-07-14 | 2013-05-08 | サイレックス・テクノロジー株式会社 | Serial device server |
CN106056876A (en) * | 2016-06-06 | 2016-10-26 | 暨南大学 | Enterprise energy management information acquisition system and method |
CN106329710A (en) * | 2015-06-23 | 2017-01-11 | 国网天津市电力公司 | Smart management system for power distribution unit areas |
CN106713351A (en) * | 2017-01-20 | 2017-05-24 | 北京东土军悦科技有限公司 | Secure communication method and device based on serial server |
CN107682404A (en) * | 2017-09-07 | 2018-02-09 | 国营芜湖机械厂 | A kind of multiple protocol environment testing equipment remote-control system and its control method |
-
2018
- 2018-11-30 CN CN201811458149.9A patent/CN109302325A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101166419B1 (en) * | 2009-12-15 | 2012-07-19 | 주식회사 신성엔지니어링 | Remote control system for chiller and method therefor |
JP5194307B2 (en) * | 2010-07-14 | 2013-05-08 | サイレックス・テクノロジー株式会社 | Serial device server |
CN102568182A (en) * | 2012-01-04 | 2012-07-11 | 深圳市创维群欣安防科技有限公司 | Method for wireless control of liquid crystal splicing system through wireless fidelity (wifi) |
CN103078895A (en) * | 2013-02-28 | 2013-05-01 | 安徽康海时代科技有限公司 | Industrial Ethernet multi-functional double-serial-port server based on MCF52233 (magnetic card file) chip |
CN106329710A (en) * | 2015-06-23 | 2017-01-11 | 国网天津市电力公司 | Smart management system for power distribution unit areas |
CN106056876A (en) * | 2016-06-06 | 2016-10-26 | 暨南大学 | Enterprise energy management information acquisition system and method |
CN106713351A (en) * | 2017-01-20 | 2017-05-24 | 北京东土军悦科技有限公司 | Secure communication method and device based on serial server |
CN107682404A (en) * | 2017-09-07 | 2018-02-09 | 国营芜湖机械厂 | A kind of multiple protocol environment testing equipment remote-control system and its control method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113965500A (en) * | 2021-09-17 | 2022-01-21 | 浪潮思科网络科技有限公司 | Serial server port occupation management method, device and medium |
CN114827118A (en) * | 2022-04-18 | 2022-07-29 | 恩平市帝赛斯音响器材厂 | Internet-based network power supply remote management system |
CN115086104A (en) * | 2022-06-23 | 2022-09-20 | 武汉迈威通信股份有限公司 | Method for supporting data disconnection retransmission and serial server |
CN115086104B (en) * | 2022-06-23 | 2023-11-21 | 武汉迈威通信股份有限公司 | Method for supporting data disconnection retransmission and serial server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109117361B (en) | Remote debugging method, related equipment and system for small program | |
US9185627B2 (en) | Low cost mesh network capability | |
KR20210078557A (en) | How to direct resources, devices and systems | |
US8009619B1 (en) | Server-side wireless communications link support for mobile handheld devices | |
CN109302325A (en) | Serial server, device management method and readable storage medium storing program for executing | |
JP2020519107A (en) | Report sending method, report receiving method, device and system | |
CN109873728B (en) | Terminal testing method and device and storage medium | |
US8060594B1 (en) | Client-side wireless communications link support for mobile handheld devices | |
KR20140118990A (en) | Communication processing method and apparatus, and terminal | |
CN107135279A (en) | It is a kind of to handle the method and apparatus that request is set up in long connection | |
CN110945959B (en) | RRC connection state control method, device and storage medium | |
US9451433B2 (en) | Device and method of driving multi-PDP data communication for mobile broadband device | |
CN104378451A (en) | Network communication route selecting method, device and system | |
WO2018053894A1 (en) | Internet-of-things access point handover method and device based on transmission rate | |
CN108123826B (en) | Cross-region data interaction system and method | |
JP6604386B2 (en) | Voice switching method and apparatus | |
CN105049162A (en) | Public network information high-efficiency transmission method based on Epoll model | |
US8635276B2 (en) | System and network terminal for IP communications | |
CN106375324B (en) | Network communication system and method based on TCP/IP communication protocol | |
WO2015067051A1 (en) | Test agent method and device thereof | |
CN112312494A (en) | Communication method and terminal device | |
CN105608774A (en) | Intelligent entrance guard control system and control method thereof | |
CN106304241B (en) | Data transmission method, repeater and gateway | |
EP4044764A1 (en) | Terminal control apparatus and method | |
WO2021203343A1 (en) | Web request processing method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190201 |
|
RJ01 | Rejection of invention patent application after publication |