WO2017211253A1 - 一种串口通信方法、控制终端及单板 - Google Patents

一种串口通信方法、控制终端及单板 Download PDF

Info

Publication number
WO2017211253A1
WO2017211253A1 PCT/CN2017/087187 CN2017087187W WO2017211253A1 WO 2017211253 A1 WO2017211253 A1 WO 2017211253A1 CN 2017087187 W CN2017087187 W CN 2017087187W WO 2017211253 A1 WO2017211253 A1 WO 2017211253A1
Authority
WO
WIPO (PCT)
Prior art keywords
serial port
data
control terminal
wireless communication
board
Prior art date
Application number
PCT/CN2017/087187
Other languages
English (en)
French (fr)
Inventor
班屹
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017211253A1 publication Critical patent/WO2017211253A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a serial communication method, a control terminal, and a single board.
  • serial port The serial interface, referred to as the serial port, is often used in the switch to test the function of the board or test and maintain the entire switch system.
  • the core switch needs to have high-density and high-bandwidth attributes, a large number of boards are used in the related art to expand the functions of the core switch, so that there will inevitably be a large number of intricate lines for data transmission, so It is convenient to plug and unplug the serial cable.
  • the serial communication method, the control terminal, and the board provided by the embodiments of the present disclosure mainly solve the problem that the control terminal in the related art can only perform serial port data interaction with the board through a wired connection, which is inconvenient to use.
  • an embodiment of the present disclosure provides a serial communication method, including:
  • the control terminal generates serial port data, and the serial port data includes serial port information of the target board;
  • the control terminal converts the serial port data into a wireless transmission data format
  • the control terminal sends the serial port data to the target board through wireless communication based on the serial port information of the target board;
  • the control terminal receives the first feedback data that the target board feeds back through the wireless communication according to the serial port data.
  • the embodiment of the present disclosure further provides another serial communication method, including:
  • the data includes the control terminal information
  • the embodiment of the present disclosure further provides a control terminal, including a serial port data generating module, a first format converting module, a first processing module, and a feedback data receiving module;
  • the serial port data generating module is configured to generate serial port data, where the serial port data includes serial port information of the target board;
  • the first format conversion module is configured to convert the serial port data into a wireless transmission data format
  • the first processing module is configured to send the serial port data to the target board by using wireless communication according to the serial port information of the target board;
  • the feedback data receiving module is configured to receive first feedback data that the target board feeds back through the wireless communication according to the serial port data.
  • the embodiment of the present disclosure further provides a single board, including a serial port data receiving module, a control execution module, a second conversion module, and a second processing module.
  • the serial port data receiving module is configured to receive serial port data of a wireless transmission data format sent by the control terminal;
  • the control execution module is configured to perform a corresponding control operation according to the serial port data, and obtain feedback data according to the execution result, where the first feedback data includes the control terminal information;
  • the second conversion module is configured to convert the feedback data into a wireless transmission data format
  • the second processing module is configured to feed back the feedback data to the control terminal by using wireless communication according to the control terminal information.
  • the embodiment of the present disclosure further provides a computer storage medium having stored therein computer executable instructions for performing the serial communication method of any of the foregoing.
  • a serial communication method a control terminal, a board, and a computer storage medium; the control terminal generates serial port data, and includes serial port information of the target board in the serial port data; and serial port data is wirelessly transmitted based on the serial port information of the target board
  • the communication is sent to the target board.
  • the target board receives the serial port data in the wireless transmission data format sent by the control terminal, and performs corresponding control operations according to the serial port data to obtain feedback data.
  • the feedback data includes control terminal information; the board receives the feedback.
  • the data is converted into a wireless transmission data format, and the feedback data is fed back to the control terminal through wireless communication based on the control terminal information; the control terminal receives the feedback data fed back by the target board according to the serial port data and through the wireless communication.
  • the serial port data generated by the control terminal is converted into a wireless transmission data format, and the serial port data is sent to the target board by wireless communication according to the serial port information of the target board in the serial port data generated by the control terminal.
  • a serial cable instead of connecting a serial cable, use a serial cable for data transmission.
  • control terminal existing in the related technology can only interact with the serial port through the wired connection, and the use of the control terminal is inconvenient; the control terminal and the board use the wireless transmission mode to interact, and no special serial port is needed. Line, user-friendly.
  • Embodiment 1 is a flowchart of a serial communication method in Embodiment 1 of the present disclosure
  • FIG. 2 is a flowchart of serial port data transmission by a wireless routing gateway according to Embodiment 1 of the present disclosure
  • FIG. 3 is a flowchart of another serial port communication method according to Embodiment 1 of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a control terminal according to Embodiment 2 of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a single board according to Embodiment 2 of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a wireless routing gateway according to Embodiment 2 of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a serial communication system according to Embodiment 3 of the present disclosure.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the embodiment provides a serial communication method, and the method mainly relates to the control terminal side.
  • FIG. 1 is mainly a step performed on the control terminal side during the interaction process, and the method includes:
  • S101 The control terminal generates serial port data.
  • the control terminal converts the serial port data into a wireless transmission data format.
  • the control terminal sends the serial port data to the target board in a wireless manner.
  • the control terminal receives the feedback data in a wireless manner.
  • step S101 is executed to generate serial port data.
  • the serial port data can be used to configure, debug, test, and the like on the target board.
  • the serial port data usually carries the target list.
  • the serial port information of the board can include the target board and the serial interface corresponding to the board.
  • step S102 is further executed to convert the serial port data into a wireless transmission data format.
  • Bluetooth transmission Wireless Fidelity
  • WIFI Wireless Fidelity
  • ZigBee Zigbee Protocol
  • Bluetooth is a wireless technology standard that enables short-distance data exchange between fixed devices, mobile devices and building personal area networks.
  • the maximum transmission rate is 24 Mbit/s.
  • the transmission distance of Bluetooth is mainly affected by transmission conditions, material coverage, and production samples. Influenced by factors such as antenna configuration and battery status, Bluetooth can communicate in the range of 10m to 1000m or even higher by adjusting these factors.
  • the technical effective transmission distance can even reach infinite in theory. Therefore, the use of Bluetooth for transmission is undoubtedly a better choice, both to achieve a relatively high transmission rate, but also to withstand a longer range of distance.
  • step S103 the serial port data that completes the format conversion is sent to the target board.
  • the control terminal can choose to send the serial port data directly to the target board through wireless communication. In this way, the correspondence between the serial port information and the wireless communication address of the board is saved on the control terminal.
  • the target wireless communication address corresponding to the target board can be queried according to the target wireless communication address.
  • the control terminal wants to send the serial port data to the serial port A of the board A.
  • the Bluetooth data is used for data transmission between the two.
  • the control terminal directly stores the Bluetooth address corresponding to the serial port A of the board A, so according to the single The Bluetooth address of the serial port A of the board A is directly connected to the board A, and the serial port data of the Bluetooth format is sent to the serial port A of the board A.
  • the feedback data of the target board is also received.
  • the feedback data is data obtained by the target board according to the serial port data sent by the control terminal, and performing corresponding control operations.
  • the same feedback data is also transmitted over the wireless form.
  • the board A performs a control operation according to the received serial port data, and obtains feedback data a, and sends it to the control terminal in a wireless manner, and the control terminal receives the feedback data a in a wireless manner.
  • the process of sending serial data corresponds to the process of receiving feedback data, and the communication process and method are similar.
  • the wireless routing gateway may also be used to implement the transmission of the serial port data.
  • the process of forwarding the serial port data by using the wireless routing gateway includes:
  • S201 The control terminal sends the serial port data to the wireless routing gateway.
  • the wireless routing gateway receives and parses the serial port data to obtain serial port information of the target board.
  • the wireless routing gateway queries the local routing table to obtain a target wireless communication address corresponding to the target board.
  • the wireless routing gateway sends the serial port data to the target board in a wireless manner.
  • the communication between the control terminal and the wireless routing gateway in step S201 is also wireless, and may include Bluetooth transmission, WIFI transmission, ZigBee transmission, and the like.
  • the wireless routing gateway parses the serial port information.
  • the main purpose of the wireless routing gateway is to select the path to complete the serial port data forwarding. Therefore, the routing router needs to perform the serial port data forwarding. Know where the destination address is, where to send the serial data.
  • step S203 is performed to query the locally saved routing table according to the obtained serial port information of the target board, and the serial port serial port information and the corresponding target wireless communication address are respectively saved in each entry of the routing table.
  • the wireless routing gateway sends the serial port data to the target wireless communication address by wireless communication. At this point, the wireless routing gateway completes the forwarding of the serial port data on the control terminal side.
  • This embodiment also provides another serial communication method. Referring to FIG. 3, the steps are performed on the side of the target board during the interaction between the control terminal and the target board.
  • the method includes:
  • S301 Receive serial port data in a wireless transmission data format sent by the control terminal
  • S304 Feed feedback data to the control terminal through wireless communication.
  • the board receives the serial port data sent by the control terminal.
  • the serial port data may be used to configure the board. For example, a virtual local area network may be configured. Therefore, the board needs to perform corresponding operations according to the serial port data, and obtain feedback data according to the execution result, and the feedback data includes control terminal information. Since its transmission is also transmitted wirelessly, In order to convert the feedback data into a wireless transmission data format, the format may also include Bluetooth transmission, WIFI transmission, ZigBee transmission, etc. It can be understood that the data is to be exchanged with the control terminal, and the wireless used between the two is used. The transmission method should be consistent.
  • step S304 the feedback data that completes the format conversion is transmitted to the control terminal.
  • the board is directly connected to the control terminal to send feedback information to the control terminal
  • the correspondence between the control terminal information and the wireless communication address is usually saved on the board; according to the control terminal information, the corresponding control of the control terminal can be queried.
  • the terminal wireless communication address transmits the feedback data to the control terminal in a wireless communication manner according to the wireless communication address of the control terminal.
  • the wireless routing gateway may also be used to implement the sending of the feedback data.
  • the process of forwarding the serial port data by using the wireless routing gateway includes:
  • S401 The board sends the feedback data to the wireless routing gateway.
  • the wireless routing gateway receives and parses the feedback data to obtain control terminal information.
  • the wireless routing gateway queries the local routing table to obtain a wireless communication address of the control terminal corresponding to the control terminal.
  • the wireless routing gateway sends the feedback data to the control terminal in a wireless manner.
  • the communication between the control terminal and the wireless routing gateway in step S401 is also a method of wireless communication, and may include Bluetooth transmission, WIFI transmission, ZigBee transmission, and the like.
  • the wireless routing gateway After receiving the feedback data, the wireless routing gateway will parse it and obtain the control terminal information.
  • the main function of the wireless routing gateway is to select the path, and mainly complete the forwarding of the feedback data. Therefore, the same You also need to know where the destination address is and which address to send the feedback data to.
  • step S403 is executed, and the locally stored routing table is queried according to the obtained control terminal information, and the control terminal information and the corresponding wireless communication address are respectively stored in each entry of the routing table.
  • the wireless routing gateway sends the feedback data to the control terminal in a wireless manner. At this point, the wireless routing gateway completes the forwarding of the feedback data on the board side.
  • the board B is connected to the board A.
  • the board A can control the board B.
  • the board A can be controlled.
  • the board B can be a service board or a line card.
  • the control terminal can configure, debug, test, maintain, etc. the next-level board of the board through a board.
  • the board A After receiving the serial port data of the control terminal, the board A sends the serial port data to the next-level board.
  • the next-level board performs corresponding operations according to the serial port data, and then generates feedback data, and sends the feedback information.
  • the board A continues to perform step S403 and step S404.
  • the serial communication method provided by the embodiment of the present disclosure can realize the transmission of the serial port data and the feedback information between the control terminal and the board by using the wireless communication mode, so that the user can complete the data transmission without connecting the serial line, so that the data is transmitted to the single board.
  • the configuration, debugging, testing, and maintenance processes are simpler and more convenient; especially for complex core networks, which greatly increases the convenience of debugging and configuration maintenance.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the present embodiment provides a control terminal.
  • the control terminal 5 can be used to implement the serial communication method performed on the control terminal side in the first embodiment.
  • the control terminal 5 includes a serial port data generating module 51 and a first format.
  • the serial port data generating module 51 is configured to generate Serial port data.
  • the serial port data can be used to configure, debug, and test the target board.
  • the serial port data usually carries the serial port information of the target board.
  • the first format conversion module 52 converts the serial port data into a wireless transmission data format, for example, Bluetooth transmission, WIFI transmission, and ZigBee transmission; correspondingly, the serial port data needs to be converted into a Bluetooth format, a WIFI format NFC format, and a ZigBee format, respectively.
  • the first processing module 53 sends the serial port data to the target board through wireless communication; the serial port data includes the serial port information of the target board, and the first processing module 53 can directly send the serial port data to the target board through the wireless communication mode. .
  • the control terminal 5 stores a correspondence table between the serial port information and the wireless communication address of the board.
  • the first processing module 53 can query the target wireless communication address corresponding to the target board according to the serial port information of the target board.
  • the target wireless communication address sends the serial port data to the target board in wireless communication mode.
  • the feedback data receiving module 54 is configured to receive feedback data sent by the target board through the wireless communication manner according to the serial port data.
  • the first processing module 53 can also implement the transmission of the serial port data by using the wireless communication gateway.
  • the communication between the first processing module 53 and the wireless routing gateway is also wireless, and can include Bluetooth transmission, WIFI transmission, and ZigBee transmission.
  • the wireless routing gateway After receiving the serial port data sent by the first processing module 53, the wireless routing gateway parses the serial port information of the target board, and queries the locally saved routing table according to the obtained serial port information of the target board in the routing table. Each entry stores a serial port serial port information and its corresponding target wireless communication address; the wireless routing gateway sends the serial port data to the target wireless communication address by wireless communication.
  • the control terminal in this embodiment may be a general-purpose computer, a PC (personal compute), a PAD (portable android device), a mobile phone, or the like, which can be used for communication.
  • the functions of the serial port data generating module 51 and the first processing module 53 can be implemented by a processor integrated in these terminals.
  • the functions of the first format conversion module 52 and the feedback data receiving module 54 can be implemented by the wireless communication module in the terminals, for example, can be implemented by a Bluetooth chip in the PC, implemented by a WIFI communication module in the mobile phone, etc. Wait.
  • the present embodiment further provides a single board.
  • the board 6 can be used to perform the serial port communication method performed on the target board side in the first embodiment.
  • the control terminal 6 includes a serial port data receiving module 61 and controls.
  • the module 62, the second conversion module 63, and the second processing module 64 are executed.
  • the serial port data receiving module 61 is configured to receive serial port data of a wireless transmission data format sent by the control terminal.
  • the control execution module 62 is configured to perform a corresponding control operation according to the serial port data, and obtain feedback data according to the execution result, where the feedback data includes control terminal information.
  • the second conversion module 63 is configured to convert the feedback data into a wireless transmission data format.
  • the second processing module 64 is configured to feed back feedback data to the control terminal by wireless communication.
  • the control terminal information and the wireless communication address correspondence table are saved on the board, and the second processing module 64 can query the control terminal wireless communication address corresponding to the control terminal according to the control terminal information, and the second processing module 64 wirelessly communicates according to the control terminal. Address The feedback data is sent to the control terminal by wireless communication.
  • the second processing module 64 can also implement the transmission of the serial port data by using the wireless communication gateway, the second processing module 64 sends the feedback data to the wireless routing gateway, and the communication between the second processing module 64 and the wireless routing gateway is also wireless. It can include Bluetooth transmission, WIFI transmission, ZigBee transmission and other methods.
  • the wireless routing gateway parses the serial port data and obtains the control terminal information therein. A routing table is stored on the wireless routing gateway, and the control terminal information and its corresponding wireless communication address are respectively stored in each entry of the routing table.
  • the wireless routing gateway queries the locally saved routing table according to the obtained control terminal information, and sends the feedback data to the control terminal according to the wireless terminal address of the corresponding control terminal.
  • a board B is connected to the board A, and the board A can control the board B.
  • the board A can be a control board, and the corresponding board B can be a service board or a line card.
  • the control execution module 62 can configure, debug, test, maintain, etc. the next-level board of the board.
  • the serial port data receiving module 61 After receiving the serial port data of the control terminal, the serial port data receiving module 61 sends the serial port data to the next-level board, and the next-level board performs corresponding operations according to the serial port data, and then generates feedback data.
  • the control execution module 62 hands the feedback data to the second conversion module 63, converts the feedback data into a wireless transmission data format, and passes it to the second processing module 64 to complete
  • the feedback data is sent to the control terminal.
  • the board 6 further includes a power management module 65 and an enable control module 66.
  • the enable control module 66 is configured to generate an enable control signal according to the status of the serial port data receiving module, the control execution module, and the second conversion module.
  • the power management module 65 is configured according to the power management module 65. The control signal is enabled, the power supply to the second conversion module is controlled, power consumption is reduced, and energy saving is achieved.
  • the functions of the control execution module 62 and the second processing module 64 in the board 6 in this embodiment can be implemented by using a processing chip on a single board.
  • the functions of the serial port data receiving module 61 and the second converting module 63 can be implemented by using a wireless communication module on the board.
  • the Bluetooth chip can be set on the board, and the serial port data can be realized through the Bluetooth chip.
  • the functions of the module 61 and the second conversion module 63 are received.
  • the wireless routing gateway 7 includes a data receiving module 71, a storage module 72, and a data forwarding module 73.
  • the data receiving module 71 is configured to receive a single board or a control terminal. Data, and extract information about control terminal information or serial port serial port from these data.
  • a storage table is stored in the storage module 72. Each entry in the routing table stores control terminal information and serial port serial port information, and a corresponding wireless communication address.
  • the data forwarding module 73 can query the routing table in the storage module 72 according to the control terminal or the board information, and obtain the corresponding wireless communication address, which is completed by using the wireless communication address. Forwarding of data.
  • the functions of the data receiving module 71 and the data forwarding module 73 in this embodiment may be implemented by a processor of the wireless routing gateway. Additionally, the functionality of the storage module 72 can be accomplished by the memory of the wireless communication gateway.
  • the board can be configured, tested, and maintained more conveniently.
  • the board in this embodiment is used. Firstly, it is convenient to use the serial cable without connecting the serial cable.
  • the control board can control the service board or line card through the control board. In this way, even the service board or the line card itself cannot be wireless.
  • the wireless routing gateway in this embodiment, the management of each control terminal and the board can be centralized, which facilitates data interaction between multiple boards of multiple control terminals.
  • the switch system includes a control board 81 and a service board 82.
  • the control board 81 can be Bluetooth through the Bluetooth gateway 83 and the computer 84. Perform data interaction.
  • a Bluetooth chip is provided, which can be used to convert the serial port data generated by the computer 84 itself into a wireless transmission mode and send it to the Bluetooth gateway 84.
  • the Bluetooth gateway 84 receives the serial port data, and obtains the serial port information of the target board in the serial port data, and queries the wireless communication address of the target board according to the correspondence between the board information and the wireless communication address saved in the routing table; The serial port data is sent to the control board in Bluetooth mode.
  • the control board determines whether the serial port data is sent for itself, and if it is sent for itself, performs corresponding operations according to the serial port data. And generating feedback data, converting the feedback data into a Bluetooth format, and transmitting the data to the Bluetooth gateway 83.
  • the Bluetooth gateway 83 queries the wireless communication address corresponding to the computer 84 according to the information of the control terminal in the feedback data, and the feedback is based on the wireless communication address.
  • the data is sent to computer 84, which receives the feedback data.
  • the control board 81 determines that the number of the serial port is for the next-level board, and the service board 82, the control board 81 will The serial port data is sent to the service board 82.
  • the service board 82 receives the serial port data, and performs corresponding operations according to the serial port data to generate feedback information, and sends the feedback information to the control board 81.
  • the control board 81 receives the feedback information. And converting the feedback data into a Bluetooth format and sending it to the Bluetooth gateway 83.
  • the Bluetooth gateway 83 queries the wireless communication address corresponding to the computer 84 according to the information of the control terminal in the feedback data, and sends the feedback data to the wireless communication address according to the wireless communication address.
  • the computer 84, the computer 84 receives the feedback data.
  • the target board is the service board 82
  • the Bluetooth gateway 83 directly sends the serial port data to the service board 82
  • the service board 82 directly performs corresponding operations according to the serial port data, and generates feedback data to convert the feedback data.
  • the Bluetooth format is sent to the Bluetooth gateway 83.
  • the Bluetooth gateway 83 queries the wireless communication address corresponding to the computer 84 according to the information of the control terminal in the feedback data, and sends the feedback data to the computer 84 according to the wireless communication address, and the computer 84 receives the data.
  • the feedback data is the target board 82, and the Bluetooth gateway 83 directly sends the serial port data to the service board 82
  • the service board 82 directly performs corresponding operations according to the serial port data, and generates feedback data to convert the feedback data.
  • the Bluetooth format is sent to the Bluetooth gateway 83.
  • the Bluetooth gateway 83 queries the wireless communication address corresponding to the computer 84 according to the information of the control terminal in the feedback data, and sends the feedback data to the computer 84 according
  • modules or steps of the above embodiments of the present disclosure may be implemented by a general computing device, which may be concentrated on a single computing device or distributed among multiple computing devices. On the network, optionally, they may be implemented by program code executable by the computing device, such that they may be stored in a computer storage medium (ROM/RAM, disk, optical disk) by a computing device, and at some In some cases, the steps shown or described may be performed in an order different than that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module. . So, this public Opening is not limited to any specific combination of hardware and software.
  • the serial communication method provided by the embodiment of the present disclosure can realize the transmission of the serial port data and the feedback information between the control terminal and the board by using the wireless communication mode, so that the user can complete the data transmission without connecting the serial line, so that the data is transmitted to the single board.
  • the configuration, debugging, testing, and maintenance processes are simpler and more convenient; especially for complex core networks, which greatly increases the convenience of debugging and configuration maintenance.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

根据本公开实施例提供的串口通信方法、控制终端及单板;控制终端生成串口数据,在串口数据中包括目标单板串口信息;基于该目标单板串口信息将串口数据通过无线通信发送给目标单板;并接收目标单板根据串口数据、通过无线通信反馈的反馈数据。通过本公开实施例的实施,控制终端生成的串口数据会被转换成无线传输数据格式,控制终端采用无线通信方式将该串口数据发送到目标单板,而不需要连接串口线,利用串口线进行数据传输。可以有效解决相关技术中存在的控制终端只能通过有线连接的方式来与单板进行串口数据交互,使用不方便的问题;控制终端和单板使用无线传输方式进行交互,不需要配备专门的串口线,方便用户使用。

Description

一种串口通信方法、控制终端及单板 技术领域
本公开涉及通信领域,尤其涉及一种串口通信方法、控制终端及单板。
背景技术
随着通信技术的发展,为了支持和满足新形势下的数据中心建设要求,对于交换机路由器等网络设备的性能要求越来越高,例如,以太网经过近30年的发展,带宽从10M开始,分别经历了100M、1000M、10G、40G、100G的发展阶段,现阶段10GE的以太网已经批量的应用,40GE和100GE的以太网开始逐步应用,这对承载以太网带宽发展的核心交换机提出了要求。为了支持和满足新形势下的数据中心建设要求,位于核心位置的交换机系统成为关键的设备。这需要核心交换机具有高密度、高带宽的属性。所以,一方面需要增加业务板数量,另一方面需要增加单块业务板的端口数量。
串行接口,简称串口,在交换机中常被用作对单板各自的功能调测或者对整个交换机系统的测试和维护。但是,由于核心交换机需要具有高密度、高带宽的属性,所以相关技术中会采用大量的单板来扩展核心交换机的功能,这样一来必然会有大量的错综复杂的进行数据传输的线路,所以不方便串口线的插拔;另外,也需要对各单板增加尽量多的端口用来进行数据传输或处理,所以前面板不方便引出串口,并且使得串口线的插拔也更不容易了。
即使不像上述示例中的这种大型的核心网的交换机系统,工作人员每次想要对交换机进行测试或者调试配置的时候,都需要使用串口线将控制终端连接到设备,才能进行测试或者调试配置,这对于工作人员来说是很不方便的。
发明内容
本公开实施例提供的串口通信方法、控制终端及单板,主要解决相关技术中的控制终端只能通过有线连接的方式来与单板进行串口数据交互,使用不方便的问题。
为解决上述技术问题,本公开实施例提供一种串口通信方法,包括:
控制终端生成串口数据,所述串口数据包括目标单板串口信息;
控制终端将所述串口数据转换成无线传输数据格式;
控制终端基于所述目标单板串口信息将所述串口数据通过无线通信发送给所述目标单板;
控制终端接收所述目标单板根据所述串口数据、通过无线通信反馈的第一反馈数据。
本公开实施例还提供另一种串口通信方法,包括:
接收控制终端发送的无线传输数据格式的串口数据;
根据所述串口数据执行相应控制操作,并根据执行结果得到反馈数据,所述第一反馈 数据包括所述控制终端信息;
将所述反馈数据转换成无线传输数据格式;
基于所述控制终端信息将所述反馈数据通过无线通信反馈给所述控制终端。
本公开实施例还提供一种控制终端,包括串口数据生成模块、第一格式转换模块、第一处理模块和反馈数据接收模块;
所述串口数据生成模块,用于生成串口数据,所述串口数据包括目标单板串口信息;
所述第一格式转换模块,用于将所述串口数据转换成无线传输数据格式;
所述第一处理模块,用于基于所述目标单板串口信息将所述串口数据通过无线通信发送给所述目标单板;
所述反馈数据接收模块,用于接收所述目标单板根据所述串口数据、通过无线通信反馈的第一反馈数据。
本公开实施例还提供一种单板,包括串口数据接收模块、控制执行模块、第二转换模块、第二处理模块;
所述串口数据接收模块,用于接收控制终端发送的无线传输数据格式的串口数据;
所述控制执行模块,用于根据所述串口数据执行相应控制操作,并根据执行结果得到反馈数据,所述第一反馈数据包括所述控制终端信息;
所述第二转换模块,用于将所述反馈数据转换成无线传输数据格式;
所述第二处理模块,用于基于所述控制终端信息将所述反馈数据通过无线通信反馈给所述控制终端。
本公开实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的任一项的串口通信方法。
本公开的有益效果是:
根据本公开实施例提供的串口通信方法、控制终端及单板以及计算机存储介质;控制终端生成串口数据,在串口数据中包括目标单板串口信息;基于该目标单板串口信息将串口数据通过无线通信发送给目标单板,目标单板接收控制终端发送的无线传输数据格式的串口数据,并根据该串口数据执行相应控制操作,得到反馈数据,该反馈数据包括控制终端信息;单板将该反馈数据转换成无线传输数据格式基于控制终端信息将该反馈数据通过无线通信反馈给控制终端;控制终端接收目标单板根据串口数据、通过无线通信反馈的反馈数据。通过本公开实施例的实施,控制终端生成的串口数据会被转换成无线传输数据格式,根据控制终端生成的串口数据中的目标单板串口信息将串口数据,采用无线通信方式发送到目标单板,而不需要连接串口线,利用串口线进行数据传输。可以有效解决相关技术中存在的控制终端只能通过有线连接的方式来与单板进行串口数据交互,使用不方便的问题;控制终端和单板使用无线传输方式进行交互,不需要配备专门的串口线,方便用户使用。
附图说明
图1为本公开实施例一中的串口通信方法的流程图;
图2为本公开实施例一中的通过无线路由网关对串口数据传输的流程图;
图3为本公开实施例一中的另一串口通信方法的流程图;
图4为本公开实施例一中的通过无线路由网关对反馈数据传输的流程图;
图5为本公开实施例二中控制终端的结构示意图;
图6为本公开实施例二中单板的结构示意图;
图7为本公开实施例二中无线路由网关的结构示意图;
图8为本公开实施例三中串口通信系统的结构示意图。
具体实施方式
下面通过具体实施方式结合附图对本公开实施例作进一步详细说明。
实施例一:
为了解决相关技术中存在的控制终端只能通过有线连接的方式来与单板进行串口数据交互,使用不方便的问题,本实施例提供一种串口通信方法,该方法主要涉及到控制终端一侧和单板端一侧进行交互的过程,请参考图1,主要为交互过程中控制终端一侧执行的步骤,该方法包括:
S101:控制终端生成串口数据;
S102:控制终端将该串口数据转换成无线传输数据格式;
S103:控制终端将该串口数据以无线形式发送给目标单板;
S104:控制终端以无线形式接收反馈数据。
通常,控制终端和单板之间的交互过程是由控制终端主动发起的,可能是用户需要对目标单板进行配置,进行调试,进行维护等等。所以,先执行步骤S101,生成串口数据,该串口数据可用于对目标单板进行配置,调试,测试等等,为了能顺利完成与目标单板的通信,在该串口数据中通常会携带目标单板串口信息,该目标单板串口信息可以包括,目标单板和该单板对应的串行接口。
因为在本实施例中,使用无线方式进行串口数据的传输,所以还会执行步骤S102,将串口数据转换成无线传输数据格式。例如,可以采用蓝牙传输、WIFI(Wireless Fidelity,无线保真)传输、ZigBee(紫蜂协议)传输等。蓝牙是一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换最大传输速率24Mbit/S,蓝牙的传输距离主要受到传输条件、材料覆盖、生产样本的变化、天线配置和电池状态等因素影响,通过调节这些因素蓝牙在10m到1000m甚至更高范围内都能通讯,技术上的有效传输距离甚至在理论上可以达到无限。所以,使用蓝牙来进行传输无疑是一种较好的选择,既可以实现相对较高的传输速率,也可以承受较远的距离范围。
在步骤S103中,将完成格式转换的串口数据发送给目标单板。在串口数据中包括目 标单板串口信息,控制终端可以选择通过无线通信方式,直接将该串口数据发送给目标单板。采用这种方式,通常会在控制终端上保存单板串口信息与无线通信地址对应关系表;根据目标单板串口信息,可以查询出目标单板对应的目标无线通信地址,根据该目标无线通信地址将串口数据以无线通信方式发送给目标单板。例如,控制终端想要将串口数据发送给单板A的串口A,二者之间采用蓝牙方式进行数据传输,在控制终端本地保存有单板A的串口A对应的蓝牙地址,于是根据该单板A的串口A的蓝牙地址,直接与单板A进行交互,将蓝牙格式的串口数据发送到单板A的串口A。
在成功发送串口数据后,还会收到目标单板的反馈数据。该反馈数据是目标单板根据控制终端发送的串口数据,执行相应控制操作得到的数据。同样的该反馈数据也是通过无线形式进行传输的。例如,上述实例中,单板A根据接收到的串口数据,执行控制操作,并得到反馈数据a,并将其以无线形式发送给控制终端,控制终端以无线形式接收该反馈数据a。串口数据的发送过程和反馈数据的接收过程相对应,通信过程和方式相似。
在本实施例中,还可以采用无线路由网关来实现对串口数据的发送,请参考图2,采用无线路由网关转发串口数据的过程包括:
S201:控制终端将串口数据发送给无线路由网关;
S202:无线路由网关接收并解析该串口数据,得到目标单板串口信息;
S203:无线路由网关查询本地路由表,获取目标单板对应的目标无线通信地址;
S204:无线路由网关将串口数据以无线形式发送至目标单板。
同样的,步骤S201中控制终端和无线路由网关之间的通信也是通过无线的方式,可以包括蓝牙传输、WIFI传输、ZigBee传输等方式。无线路由网关在接收到该串口数据后,会对其进行解析,主要为了获取其中的目标单板串口信息,无线路由网关的主要作用是进行路径的选择,从而完成串口数据的转发,所以其需要知道目的地址是哪里,要将该串口数据发送到哪里。于是在得到目标单板串口信息后,执行步骤S203,根据得到的目标单板串口信息查询本地保存的路由表,在路由表的各个条目分别保存有单板串口信息以及其对应的目标无线通信地址。然后,执行步骤S204,无线路由网关将串口数据以无线通信方式发送至目标无线通信地址,至此,无线路由网关完成对控制终端侧的串口数据的转发。
本实施例还提供另一种串口通信方法,请参考图3,主要为控制终端与目标单板交互过程中目标单板一侧执行的步骤,该方法包括:
S301:接收控制终端发送的无线传输数据格式的串口数据;
S302:根据串口数据执行相应控制操作,并生得到反馈数据;
S303:将反馈数据转换成无线传输数据格式;
S304:将反馈数据通过无线通信反馈给控制终端。
单板接收控制终端发送的串口数据,该串口数据可能是用于对该单板进行配置,例如,可能配置虚拟局域网。于是单板需要对根据该串口数据执行相应的操作,并根据执行结果得到反馈数据,反馈数据中包括控制终端信息。由于其传输也是通过无线形式传输的,所 以还需要将反馈数据转换成无线传输数据格式,同样的,其格式也可以包括蓝牙传输、WIFI传输、ZigBee传输等方式,可以理解,要与控制终端进行数据交互,二者之间使用的无线传输方式应当是一致的。
在步骤S304中,将完成格式转换的反馈数据发送给控制终端。单板选择通过自身直接与控制终端交互将反馈信息发送给控制终端时,通常会在单板上保存控制终端信息与无线通信地址对应关系表;根据控制终端信息,可以查询出控制终端对应的控制终端无线通信地址,根据该控制终端无线通信地址将反馈数据以无线通信方式发送给控制终端。
在在本实施例中,还可以采用无线路由网关来实现对反馈数据的发送,请参考图4,采用无线路由网关转发串口数据的过程包括:
S401:单板将反馈数据发送给无线路由网关;
S402:无线路由网关接收并解析该反馈数据,得到控制终端信息;
S403:无线路由网关查询本地路由表,获取控制终端对应控制终端无线通信地址;
S404:无线路由网关将反馈数据以无线形式发送至控制终端。
同样的,步骤S401中控制终端和无线路由网关之间的通信也是通过无线通信的方式,可以包括蓝牙传输、WIFI传输、ZigBee传输等方式。无线路由网关在接收到该反馈数据后,会对其进行解析,获取其中的控制终端信息,此处,无线路由网关的主要作用同样是进行路径的选择,主要完成反馈数据的转发,所以,同样也需要知道目的地址是哪里,要将该反馈数据发送到哪个地址。于是在得到目控制终端信息后,执行步骤S403,根据得到的控制终端信息查询本地保存的路由表,在路由表的各个条目分别保存有控制终端信息以及其对应的无线通信地址。然后,执行步骤S404,无线路由网关将反馈数据以无线形式发送给控制终端即可,至此,无线路由网关完成对单板侧的反馈数据的转发。
在本实施例步骤S402中,单板之间可能存在级联的状况,例如,单板A下面还连接有单板B,单板A可以对单板B进行控制;该单板A可以是控制单板,对应的单板B可以是业务单板或者线卡。针对上述这种情况,控制终端可以通过某单板来对该单板的下一级单板进行配置,调试,测试,维护等等。单板A在接收到控制终端的串口数据后,会将该串口数据发送给下一级单板,下一级单板根据该串口数据执行相应操作,然后生成反馈数据,并将该反馈信息发送给单板A,单板A继续执行步骤S403和步骤S404。
本公开实施例提供的串口通信方法,通过使用无线通信方式来完成控制终端和单板之间串口数据和反馈信息的传输,使用户不连接串口线也能完成实现数据传输,使得对单板的配置,调试,测试,维护过程更加的简单,方便;尤其是针对复杂的核心网络,其大大的增加了调试,配置维护过程的便利性。
实施例二:
本实施例提供一种控制终端,请参考图5,该控制终端5可用于实现上述实施例一中在控制终端侧执行的串口通信方法,该控制终端5包括串口数据生成模块51、第一格式转换模块52、第一处理模块53和反馈数据接收模块54。串口数据生成模块51用于生成 串口数据,该串口数据可用于对目标单板进行配置,调试,测试等等,在该串口数据中通常携带有目标单板串口信息。
第一格式转换模块52将串口数据转换成无线传输数据格式,例如,可以采用蓝牙传输、WIFI传输、ZigBee传输;对应的就需要将串口数据分别转换成蓝牙格式,WIFI格式NFC格式和ZigBee格式。
第一处理模块53将串口数据通过无线通信发送给目标单板;在串口数据中包括目标单板串口信息,第一处理模块53可以选择通过无线通信方式,直接将该串口数据发送给目标单板。采用这种方式,在控制终端5上保存有单板串口信息与无线通信地址对应关系表;第一处理模块53根据目标单板串口信息,可以查询出目标单板对应的目标无线通信地址,根据该目标无线通信地址将串口数据以无线通信方式发送给目标单板。
反馈数据接收模块54用于接收目标单板根据串口数据,通过无线通信方式发送的反馈数据。
第一处理模块53也可以利用无线通信网关来实现串口数据的传输,第一处理模块53与无线路由网关之间的通信也是通过无线的方式,可以包括蓝牙传输、WIFI传输、ZigBee传输等方式。无线路由网关在接收到第一处理模块53发送的串口数据后,对其进行解析,获取其中的目标单板串口信息,根据得到的目标单板串口信息查询本地保存的路由表,在路由表的各个条目分别保存有单板串口信息以及其对应的目标无线通信地址;无线路由网关将串口数据以无线通信方式发送给该目标无线通信地址。
本实施例中的控制终端可以是通用计算机、PC(personal compute,个人计算机)、PAD(portable android device,平板电脑)、手机等可用于通信的终端。串口数据生成模块51、第一处理模块53的功能可以由集成在这些终端中的处理器来实现。另外,第一格式转换模块52和反馈数据接收模块54的功能可以通过这些终端中的无线通信模块来实现,例如,可以通过PC中的蓝牙芯片来实现、通过手机中的WIFI通信模块来实现等等。对于有些PC,可能没有特定的某些通信模块,例如,对于比较老式的计算机可能其不带有蓝牙芯片,也可以为其添加蓝牙适配器,使其能进行蓝牙通信。
本实施例还提供一种单板,请参考图6,该单板6可用于执行上述实施例一中在目标单板侧执行的串口通信方法,该控制终端6包括串口数据接收模块61、控制执行模块62、第二转换模块63、第二处理模块64。串口数据接收模块61,用于接收控制终端发送的无线传输数据格式的串口数据。
控制执行模块62,用于根据串口数据执行相应控制操作,并根据执行结果得到反馈数据,反馈数据包括控制终端信息。
第二转换模块63用于将反馈数据转换成无线传输数据格式。
第二处理模块64用于将反馈数据通过无线通信反馈给控制终端。在单板上保存控制终端信息与无线通信地址对应关系表,第二处理模块64根据控制终端信息,可以查询出控制终端对应的控制终端无线通信地址,第二处理模块64根据该控制终端无线通信地址 将反馈数据以无线通信方式发送给控制终端。
第二处理模块64也可以利用无线通信网关来实现串口数据的传输,第二处理模块64将反馈数据发送给无线路由网关,第二处理模块64与无线路由网关之间的通信也是通过无线的方式,可以包括蓝牙传输、WIFI传输、ZigBee传输等方式。无线路由网关在接收到第二处理模块64发送的串口数据后,会对其进行解析,获取其中的控制终端信息。在无线路由网关上保存有路由表,在路由表的各个条目分别保存有控制终端信息以及其对应的无线通信地址。无线路由网关根据得到的控制终端信息查询本地保存的路由表,根据查询出的对应的控制终端无线通信地址将反馈数据以无线通信方式发送给控制终端。
在实际使用时,对于大型的核心网交换系统而言,单板之间可能存在级联的状况,例如,单板A下面还连接有单板B,单板A可以对单板B进行控制;该单板A可以是控制单板,对应的单板B可以是业务单板或者线卡。针对上述这种情况,控制执行模块62可以对该单板的下一级单板进行配置,调试,测试,维护等等。串口数据接收模块61在接收到控制终端的串口数据后,控制执行模块62会将该串口数据发送给下一级单板,下一级单板根据该串口数据执行相应操作,然后生成反馈数据,并将该反馈数据发送给控制执行模块62,控制执行模块62将该反馈数据交给第二转换模块63,将该反馈数据转换成无线传输数据格式,并交给第二处理模块64,完成将该反馈数据发送到控制机终端。
单板6还包括电源管理模块65和使能控制模块66,使能控制模块66用于根据串口数据接收模块、控制执行模块、第二转换模块的状况产生使能控制信号,电源管理模块65根据使能控制信号,控制对第二转换模块的供电,减少功耗,实现节能。
本实施例中的单板6中的控制执行模块62、第二处理模块64的功能可以通过单板上的处理芯片来实现。串口数据接收模块61、第二转换模块63的功能可以通过单板上的无线通信模块来实现,例如,当使用蓝牙传输的时候,可以在单板上设置蓝牙芯片,通过蓝牙芯片来实现串口数据接收模块61和第二转换模块63的功能。
本实施例还提供一种无线路由网关,请参考图7,该无线路由网关7包括,数据接收模块71、存储模块72和数据转发模块73;数据接收模块71用于接收单板或控制终端发送的数据,并从这些数据中提取出关于控制终端信息或单板串口信息。在存储模块72中保存有路由表,路由表中的各个条目分别存放着控制终端信息和单板串口信息,还有其对应的无线通信地址。数据接收模块71提取出关于控制终端或单板信息后,数据转发模块73可以根据控制终端或单板信息在存储模块72中查询路由表,并获得相应无线通信地址,利用该无线通信地址,完成对数据的转发。
本实施例中的数据接收模块71和数据转发模块73的功能可以由无线路由网关的处理器来实现。另外,存储模块72的功能可以由无线通信网关的存储器来完成。
采用本实施例中的控制终端,可以更方便的对单板进行配置,测试和维护。使用本实施例中的单板;首先不需要连接串口线可以很方便使用,更自由灵活的进行机房设备的布 局和摆放;其次,在控制单板利用无线通信的基础上,可以通过控制单板来对业务单板或线卡进行控制,如此一来,即使在业务单板或线卡本身不能进行无线通信的时候,只需要将其和主控单板进行连接通信,利用主控板进行数据中转,同样,不需要串口线也可以对业务单板或线卡进行配置,测试和维护。使用本实施例中的无线路由网关,可以集中对各控制终端和单板的管理,更利于多个控制终端多个单板之间的数据交互。
实施例三
本实施例提供一种业务单板和控制单板的设置方式,请参考图8,交换机系统包括控制单板81和业务单板82,控制单板81可以通过蓝牙网关83和电脑84以蓝牙方式进行数据交互。在电脑84中,设置有蓝牙芯片,可用于将电脑84自身生成的串口数据转换成无线传输方式,发送给蓝牙网关84。蓝牙网关84接收该串口数据,并获取串口数据中的目标单板串口信息,根据自身路由表中保存的各单板信息与无线通信地址对应关系,查询出该目标单板的无线通信地址;将串口数据以蓝牙形式发送给控制单板。若该目标单板是控制单板81,那么控制单板在接收到该串口数据之后会,判断该串口数据是否是针对自身发送的如果是针对自身发送的,就根据该串口数据执行相应操作,并生成反馈数据,将反馈数据转换成蓝牙格式,发送给蓝牙网关83;蓝牙网关83根据反馈数据中的控制终端的信息,查询到电脑84对应的无线通信地址,根据该无线通信地址将该反馈数据发送给电脑84,电脑84接收该反馈数据。
若该目标单板是业务单板82,但是是通过控制单板81发送的,控制单板81判断该串口数是针对下一级单板,业务单板82的,控制单板81就将该串口数据发送给业务单板82,业务单板82接收该串口数据,并根据该串口数据执行相应操作,生成反馈信息,将该反馈信息发送给控制单板81;控制单板81接收该反馈信息,并将反馈数据转换成蓝牙格式,发送给蓝牙网关83;蓝牙网关83根据反馈数据中的控制终端的信息,查询到电脑84对应的无线通信地址,根据该无线通信地址将该反馈数据发送给电脑84,电脑84接收该反馈数据。
若该目标单板是业务单板82,并且蓝牙网关83直接将串口数据发送至业务单板82时,该业务单板82直接根据该串口数据执行相应操作,并生成反馈数据,将反馈数据转换成蓝牙格式,发送给蓝牙网关83;蓝牙网关83根据反馈数据中的控制终端的信息,查询到电脑84对应的无线通信地址,根据该无线通信地址将该反馈数据发送给电脑84,电脑84接收该反馈数据。
显然,本领域的技术人员应该明白,上述本公开实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在计算机存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本公 开不限制于任何特定的硬件和软件结合。
以上内容是结合具体的实施方式对本公开实施例所作的进一步详细说明,不能认定本公开的具体实施只局限于这些说明。对于本公开所属技术领域的普通技术人员来说,在不脱离本公开构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本公开的保护范围。
工业实用性
本公开实施例提供的串口通信方法,通过使用无线通信方式来完成控制终端和单板之间串口数据和反馈信息的传输,使用户不连接串口线也能完成实现数据传输,使得对单板的配置,调试,测试,维护过程更加的简单,方便;尤其是针对复杂的核心网络,其大大的增加了调试,配置维护过程的便利性。

Claims (12)

  1. 一种串口通信方法,包括:
    控制终端生成串口数据,所述串口数据包括目标单板串口信息;
    控制终端将所述串口数据转换成无线传输数据格式;
    控制终端基于所述目标单板串口信息将所述串口数据通过无线通信发送给所述目标单板;
    控制终端接收所述目标单板根据所述串口数据、通过无线通信反馈的反馈数据。
  2. 如权利要求1所述的串口通信方法,其中,
    控制终端基于所述目标单板串口信息将所述串口数据通过无线通信发送给所述目标单板包括:
    控制终端根据所述目标单板串口信息查询本地的单板串口信息与无线通信地址对应关系表得到对应的目标无线通信地址,根据该目标无线通信地址将所述串口数据以无线通信方式发送给所述目标单板;
    控制终端通过存储有单板串口与无线通信地址对应关系路由表的无线路由网关将所述串口数据以无线通信方式发送给所述目标单板。
  3. 一种串口通信方法,包括:
    接收控制终端发送的无线传输数据格式的串口数据;
    根据所述串口数据执行相应控制操作,并根据执行结果得到反馈数据,所述反馈数据包括所述控制终端信息;
    将所述反馈数据转换成无线传输数据格式;
    基于所述控制终端信息将所述反馈数据通过无线通信反馈给所述控制终端。
  4. 如权利要求3所述的串口通信方法,其中,
    基于所述控制终端信息将所述反馈数据通过无线通信反馈给所述控制终端包括:
    根据所述控制终端信息查询本地的控制终端信息与无线通信地址对应关系表得到对应的控制终端无线通信地址,根据所述控制终端无线通信地址将所述反馈数据以无线通信方式发送给所述控制终端;
    通过存储有控制终端与无线通信地址对应关系路由表的无线路由网关将所述反馈数据以无线通信方式发送给所述控制终端。
  5. 如权利要求3所述的串口通信方法,其中,
    接收控制终端发送的无线传输数据格式的串口数据包括:接收蓝牙格式、WIFI格式或ZigBee格式的串口数据;
    将所述反馈数据转换成无线传输数据格式包括:将所述反馈数据转换成蓝牙格式、WIFI格式或ZigBee格式。
  6. 如权利要求3-5任一项所述的串口通信方法,其中,根据所述串口数据执行相应控制操作,并根据执行结果得到反馈数据包括:
    将所述串口数据发送给下一级单板;
    接收所述下一级单板根据所述串口数据生成的反馈数据。
  7. 一种控制终端,包括:串口数据生成模块、第一格式转换模块、第一处理模块和反馈数据接收模块;
    所述串口数据生成模块,设置为生成串口数据,所述串口数据包括目标单板串口信息;
    所述第一格式转换模块,设置为将所述串口数据转换成无线传输数据格式;
    所述第一处理模块,设置为基于所述目标单板串口信息将所述串口数据通过无线通信发送给所述目标单板;
    所述反馈数据接收模块,设置为接收所述目标单板根据所述串口数据、通过无线通信反馈的反馈数据。
  8. 如权利要求7所述的控制终端,其中,所述第一处理模块设置为,
    根据所述目标单板串口信息查询本地的单板串口信息与无线通信地址对应关系表得到对应的目标无线通信地址,根据该目标无线通信地址将所述串口数据以无线通信方式发送给所述目标单板;
    通过存储有单板串口与无线通信地址对应关系路由表的无线路由网关将所述串口数据以无线通信方式发送给所述目标单板。
  9. 一种单板,包括:串口数据接收模块、控制执行模块、第二转换模块、第二处理模块;
    所述串口数据接收模块,设置为接收控制终端发送的无线传输数据格式的串口数据;
    所述控制执行模块,设置为根据所述串口数据执行相应控制操作,并根据执行结果得到反馈数据,所述反馈数据包括所述控制终端信息;
    所述第二转换模块,设置为将所述反馈数据转换成无线传输数据格式;
    所述第二处理模块,设置为基于所述控制终端信息将所述反馈数据通过无线通信反馈给所述控制终端。
  10. 如权利要求9所述的单板,其中,所述第二处理模块设置为,
    根据所述控制终端信息查询本地的控制终端信息与无线通信地址对应关系表得到对应的控制终端无线通信地址,根据所述控制终端无线通信地址将所述反馈数据以无线通信方式发送给所述控制终端;
    通过存储有控制终端与无线通信地址对应关系路由表的无线路由网关将所述反馈数据以无线通信方式发送给所述控制终端。
  11. 如权利要求9或10所述的单板,其中,所述控制执行模块设置为,
    将所述串口数据发送给下一级单板;
    接收所述下一级单板根据所述串口数据生成的反馈数据。
    如权利要求9或10所述的单板,其中,还包括电源管理模块和使能控制模块,所述使能控制模块设置为根据所述串口数据接收模块、所述控制执行模块、所述第二转换模块的状况产生使能控制信号;所述电源管理模块根据所述使能控制信号,控制对所述第二转换模块的供电。
  12. 一种存储介质,设置为存储程序代码,所述程序代码用于执行权利要求1至6中任一项所述的串口通信方法。
PCT/CN2017/087187 2016-06-06 2017-06-05 一种串口通信方法、控制终端及单板 WO2017211253A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610397579.9A CN107465711A (zh) 2016-06-06 2016-06-06 一种串口通信方法、控制终端及单板
CN201610397579.9 2016-06-06

Publications (1)

Publication Number Publication Date
WO2017211253A1 true WO2017211253A1 (zh) 2017-12-14

Family

ID=60545776

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087187 WO2017211253A1 (zh) 2016-06-06 2017-06-05 一种串口通信方法、控制终端及单板

Country Status (2)

Country Link
CN (1) CN107465711A (zh)
WO (1) WO2017211253A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873484A (zh) * 2021-09-09 2021-12-31 中云汇(成都)物联科技有限公司 一种低功耗蓝牙到串口的透传设备及传送方法
CN114608695A (zh) * 2021-12-03 2022-06-10 北京复兴华创技术有限公司 电子秤读称系统、方法、介质及设备
CN115374033A (zh) * 2022-10-25 2022-11-22 湖南戎腾网络科技有限公司 一种跨板多路串口访问装置及方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801048A (zh) * 2004-12-31 2006-07-12 联想(北京)有限公司 一种接受移动终端远程控制的计算机
CN1801047A (zh) * 2004-12-31 2006-07-12 联想(北京)有限公司 一种远程控制计算机的系统及其实现方法
CN101631345A (zh) * 2009-08-13 2010-01-20 中兴通讯股份有限公司 单板运行状态的监控方法及装置
CN101902769A (zh) * 2010-07-06 2010-12-01 中兴通讯股份有限公司 单板的无线调试方法和装置
CN104219268A (zh) * 2013-06-04 2014-12-17 中兴通讯股份有限公司 无线控制方法、装置与终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8730818B2 (en) * 2010-04-16 2014-05-20 The Morey Corporation Converter/multiplexer for serial bus
CN205005075U (zh) * 2015-08-27 2016-01-27 成都英德思网络技术有限公司 一种可无线配置的工业以太网交换机
CN105335318A (zh) * 2015-12-14 2016-02-17 山东海量信息技术研究院 一种基于电子设备的无线串口信息收集方法
CN105550139B (zh) * 2015-12-28 2018-08-21 武汉科技大学 一种无线串口透传系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801048A (zh) * 2004-12-31 2006-07-12 联想(北京)有限公司 一种接受移动终端远程控制的计算机
CN1801047A (zh) * 2004-12-31 2006-07-12 联想(北京)有限公司 一种远程控制计算机的系统及其实现方法
CN101631345A (zh) * 2009-08-13 2010-01-20 中兴通讯股份有限公司 单板运行状态的监控方法及装置
CN101902769A (zh) * 2010-07-06 2010-12-01 中兴通讯股份有限公司 单板的无线调试方法和装置
CN104219268A (zh) * 2013-06-04 2014-12-17 中兴通讯股份有限公司 无线控制方法、装置与终端

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873484A (zh) * 2021-09-09 2021-12-31 中云汇(成都)物联科技有限公司 一种低功耗蓝牙到串口的透传设备及传送方法
CN114608695A (zh) * 2021-12-03 2022-06-10 北京复兴华创技术有限公司 电子秤读称系统、方法、介质及设备
CN114608695B (zh) * 2021-12-03 2024-01-19 北京复兴华创技术有限公司 电子秤读称系统、方法、介质及设备
CN115374033A (zh) * 2022-10-25 2022-11-22 湖南戎腾网络科技有限公司 一种跨板多路串口访问装置及方法
CN115374033B (zh) * 2022-10-25 2023-02-03 湖南戎腾网络科技有限公司 一种跨板多路串口访问装置及方法

Also Published As

Publication number Publication date
CN107465711A (zh) 2017-12-12

Similar Documents

Publication Publication Date Title
KR102409328B1 (ko) 착용가능 디바이스의 통신 방법, 통신 시스템 및 관련 디바이스
CN107683602B (zh) 对等设备的基于云端的接近配对和切换
EP3468068B1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN103458399B (zh) 智能wifi模块及将支持wifi连接的设备配置进wifi网络的方法
US11520712B2 (en) High-performance wireless side channel
CN104469789A (zh) 智能家电的连接配置方法以及系统
TW201409887A (zh) 智慧家庭網路系統及其智慧網關
WO2017211253A1 (zh) 一种串口通信方法、控制终端及单板
JP2013090321A (ja) 組合せ式モバイルホットスポットデバイス及びそのネットワークサービス提供方法、ネットワークアクセスデバイス及びワイヤレスサービス電源デバイス
TWM452554U (zh) 智慧家庭網路系統及其智慧網關
JP2013255219A (ja) インターネットにアクセスする方法および装置
WO2018053895A1 (zh) 物联网接入点基于类型的上行数据加密控制方法及装置
CN115550108A (zh) 基于混合网络的usb数据通信方法、装置及计算机设备
CN104617989A (zh) 基于蓝牙beacon改变终端工作模式的方法和终端
WO2021051674A1 (zh) 多模扩展连接器及多模微基站系统
CN114222369A (zh) 组网通信方法、装置及系统
TWI679870B (zh) 一種資訊處理方法及裝置
CN203445909U (zh) 一种对讲终端参数设置系统
CN102548053B (zh) 一种基于2.4g的无线路由器及其实现方法
WO2021121083A1 (zh) 电子设备间的通信控制方法、装置、电子设备以及介质
WO2014008869A1 (zh) 一种接入设备和系统、及数据发送方法
WO2017054284A1 (zh) 一种通信方法及相关设备
CN109976694A (zh) 数据传输的设备、终端、方法和处理器系统
CN112672374B (zh) 一种电力数据通信状态处理系统及终端机
WO2019015038A1 (zh) 物联网中继器基于类型的上行数据加密控制方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17809692

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17809692

Country of ref document: EP

Kind code of ref document: A1