WO2013189326A1 - Data or signalling sending method and device - Google Patents

Data or signalling sending method and device Download PDF

Info

Publication number
WO2013189326A1
WO2013189326A1 PCT/CN2013/081116 CN2013081116W WO2013189326A1 WO 2013189326 A1 WO2013189326 A1 WO 2013189326A1 CN 2013081116 W CN2013081116 W CN 2013081116W WO 2013189326 A1 WO2013189326 A1 WO 2013189326A1
Authority
WO
WIPO (PCT)
Prior art keywords
signaling
processor
data
sub
target
Prior art date
Application number
PCT/CN2013/081116
Other languages
French (fr)
Chinese (zh)
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 WO2013189326A1 publication Critical patent/WO2013189326A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for transmitting data or signaling. Background technique
  • the Internet of Things is one of the most forward-looking technologies. Many countries and enterprises in the forefront of technology in the world have sensed a technological revolution and economic wave that will be triggered by the "Internet of Things". They have developed standards, researched new technologies and applications in order to master Market initiative.
  • the definition of the Internet of Things is: through information sensors, such as sensors, radio frequency IDentification, infrared sensors, global positioning systems, laser scanners, etc., according to the agreed agreement Any item connected to the Internet for information exchange and communication to enable intelligent identification, location, tracking, monitoring and management of a network.
  • the Internet of Things is generally recognized as having three levels.
  • the bottom layer is the sensing layer for sensing data
  • the second layer is the network layer for data transmission
  • the upper layer is the content application layer.
  • the sensing layer includes a sensor network based on various sensor-based wireless sensor networks, RFID-based RFID networks, such as ZigBee (Low Power Personal Area Network Protocol), Z-Wave, RUBEE (Wireless Networking Protocol), WirelessHART ( Interoperable Wireless Communication Standard), Internet Engineering Task Force (IETF), 6LowPAN, ANT (Antenna Interface)/ANT+, Wibree (Ultra Low Power Bluetooth Wireless Technology), Insteon (Two-way Hybrid Communication Technology) ) Sensor network technology.
  • ZigBee Low Power Personal Area Network Protocol
  • Z-Wave Z-Wave
  • RUBEE Wireless Networking Protocol
  • WirelessHART Interoperable Wireless Communication Standard
  • IETF Internet Engineering Task Force
  • 6LowPAN 6LowPAN
  • ANT Antenn
  • the network layer includes traditional communication networks such as the Internet and mobile communication networks, such as Code Division Multiple Access (CDMA), Wireless Fidelity (Wi-Fi), and Asymmetric Digital Subscriber Line (Asymmetric Digital Subscriber Line).
  • CDMA Code Division Multiple Access
  • Wi-Fi Wireless Fidelity
  • Asymmetric Digital Subscriber Line Asymmetric Digital Subscriber Line
  • ADSL second-generation mobile communication technology
  • 2G second-generation mobile communication technology
  • 3rd Generation 3rd Generation
  • the gateway is an important part of the Internet of Things. It is a device that connects the sensing layer to the network layer. In order to achieve wide area interconnection, the gateway needs to implement protocol conversion between the sensing network and the traditional communication network. To implement local area interconnection, the gateway needs to implement protocol conversion between different types of aware networks.
  • the gateway In the existing multi-protocol gateway technology, the gateway only converts between a limited number of protocols, such as conversion between a fieldbus protocol and an industrial Ethernet protocol. This type of protocol conversion method is bottom-up processing from the bottom of the protocol stack, and the processing is complicated, and does not have good versatility and scalability. There are various kinds of sensing networks and traditional communication networks in the Internet of Things, so the protocol conversion tasks undertaken by the gateway are extremely heavy.
  • the present invention provides a method and apparatus for transmitting data or signaling to solve the above-mentioned technical problems, in view of the complicated problem of the protocol conversion method in the related art.
  • the present invention provides a method for transmitting data or signaling, wherein the method includes: a main processor receiving data or signaling of a current sub-processor, converting the data or signaling into an intermediate Formatted data or signaling; the main processor processes the data or signaling of the intermediate format to obtain data or signaling results in an intermediate format; converts the data or signaling result of the intermediate format into target data or signaling; The target data or signaling follows the target protocol of the target sub-processor; the main processor sends the target data or signaling to the target sub-processor.
  • the foregoing converting data or signaling into data or signaling in an intermediate format includes: the foregoing main processor determining a protocol type of the current sub-processor, and using the conversion manner corresponding to the protocol type, the data or the letter Convert data or signaling to the above intermediate format.
  • the above data or signaling result of the intermediate format is converted into target data or signaling, include:
  • the main processor determines the target protocol type of the target sub-processor, and converts the data or signaling result of the intermediate format into the target data or signaling by using a conversion manner corresponding to the target protocol type.
  • the current sub-processor may be a sub-sub-processor, and the target sub-processor may be an upper sub-processor; or the current sub-processor and the target sub-processor may both be sub-processors; or
  • the current sub-processor may be an upper sub-processor, and the target sub-processor may be a sub-sub-processor; wherein the downward sub-processor is a sensing layer, and the main processor may pass the first interface and the foregoing The sub-processor performs data or signaling interaction; the main processor may perform data or signaling interaction with the foregoing sub-processor through the second interface; wherein the first interface may be a serial communication interface or a USB interface; The second interface may be a serial communication interface or a bus interface.
  • an embodiment of the present invention further provides a data or signaling sending apparatus, where the apparatus includes: a first converting module, a processing module, a second converting module, and a sending module;
  • the first conversion module is configured to receive data or signaling of the current sub-processor, and convert the data or signaling into data or signaling in an intermediate format;
  • a processing module configured to process data or signaling in the intermediate format to obtain data or signaling result in an intermediate format
  • the first conversion module may include: a protocol type determining unit and a first converting unit; a protocol type determining unit, configured to determine a protocol type of the current sub-processor; the first converting unit is configured to convert the data or signaling into data or signaling of the intermediate format by using a conversion manner corresponding to the foregoing protocol type .
  • the foregoing second conversion module may include: a target protocol type determining unit and a second converting unit;
  • a target protocol type determining unit configured to determine a target protocol type of the target sub-processor
  • the second converting unit is configured to convert the data or signaling result of the intermediate format into the target data or signaling by using a conversion manner corresponding to the target protocol type.
  • the current sub-processor may be a sub-sub-processor, and the target sub-processor may be an upper sub-processor; or the current sub-processor and the target sub-processor may both be sub-processors; or
  • the current sub-processor may be an upper sub-processor, and the target sub-processor may be a downward sub-processor; wherein, the lower sub-processor is a sensing layer, and the device may pass the first interface and the downward sub-processing
  • the device performs data or signaling interaction; the device may perform data or signaling interaction with the foregoing upper sub-processor through the second interface; wherein, the first interface may be a serial communication interface or a USB interface; It can be a serial communication interface or a bus interface.
  • the main processor After receiving the data or signaling of the current sub-processor, the main processor converts the data or signaling into data or signaling in an intermediate format; and then processes the data or signaling in the intermediate format. Obtaining data or signaling result in an intermediate format; then converting the data or signaling result of the above intermediate format into target data or signaling conforming to the target protocol of the target sub-processor; and finally the main processor is to the target data or signaling Send to the target sub-processor.
  • the invention solves the complicated problem of the protocol conversion method in the related art, thereby quickly and simply implementing data or signaling conversion between the sensing network and the traditional communication network, and various sensing networks, and the conversion borrows Helps a unified intermediate format to mask data or signaling formats from different sensing networks and traditional communication networks with low processing complexity and good scalability.
  • FIG. 1 is a flowchart of a method for transmitting data or signaling according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a hardware main structure of a multi-protocol gateway according to an embodiment of the present invention
  • FIG. 3 is a multi-protocol gateway according to an embodiment of the present invention
  • Schematic diagram of the software main structure
  • FIG. 4 is a schematic diagram of protocol conversion according to an embodiment of the present invention
  • FIG. 5 is a flow chart of data interaction from a lower sub-processor to an upper sub-processor according to an embodiment of the present invention
  • FIG. 6 is a structural block diagram of a transmitting apparatus for data or signaling according to an embodiment of the present invention
  • FIG. 7 is a block diagram showing a first specific structure of a transmitting apparatus of data or signaling according to an embodiment of the present invention
  • Figure 8 is a block diagram showing a second specific structure of a transmitting apparatus of data or signaling according to an embodiment of the present invention. detailed description
  • the embodiment of the present invention provides a Method and Apparatus for Transmitting Data or Signaling
  • the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • FIG. 1 is a flowchart of a method for transmitting data or signaling according to an embodiment of the present invention. The method includes the following steps:
  • Step S102 The main processor receives data or signaling of the current sub-processor, and the data or the letter Convert data or signaling to an intermediate format;
  • Step S104 The main processor processes the data or signaling of the intermediate format to obtain data or signaling result in an intermediate format; and converts the data or signaling result of the intermediate format into target data or signaling; wherein, the foregoing target The data or signaling follows the target protocol of the target sub-processor;
  • Step S106 The main processor sends the above-mentioned target data or signaling to the target sub-processor.
  • the complex processing problem of the protocol conversion method in the related art is solved, thereby quickly and simply implementing data or signaling conversion between the sensing network and the traditional communication network, and various sensing networks, and the conversion is performed by means of A unified intermediate format to mask data or signaling formats from different sensing networks and traditional communication networks with low processing complexity and good scalability.
  • the current sub-processor in this embodiment may be a downward sub-processor, and the target sub-processing
  • the current sub-processor is an up sub-processor
  • the target sub-processor is a down sub-processor
  • both the current sub-processor and the target sub-processor in this embodiment may be a downward sub-processor.
  • the downward sub-processor is a processor that interacts with various perceptual layer network nodes. Due to the diversity of the layer of the layer, the gateway may have multiple down sub-processors, such as a radio frequency processor in communication with the wireless sensor network, an RFID receiver processor in communication with the RFID node, and the like.
  • the up sub-processor is a processor that connects the gateway up to the Internet (Internet) or the mobile communication network.
  • the connection mode of the uplink connection may be a wired network such as xDSL (xDSL is a general term for various types of digital subscriber lines (DSL)), or may be 2G network general packet radio service (GPRS), 3G network, 4th generation mobile communication technology (4th generation, 4G) network, Wi-Fi and other wireless networks.
  • xDSL is a general term for various types of digital subscriber lines (DSL)
  • GPRS 2G network general packet radio service
  • 3G network 3G network
  • 4th generation mobile communication technology (4th generation, 4G) network 4th generation mobile communication technology
  • Wi-Fi Wi-Fi
  • the gateway should configure one or more upward sub-processors corresponding to the foregoing network according to the network provision situation of the application and the upward transmission traffic.
  • an Ethernet controller connected to the Internet
  • a GPRS module connected to the mobile communication network, and the like.
  • the main processor in this embodiment is configured to complete conversion between two types of protocols supported by the upper sub-processor and the lower sub-processor, and the protocol conversion is mainly divided into two aspects: data conversion and signaling conversion.
  • Protocol conversion refers to converting one party's data or signaling format into a data or signaling format that the other party can recognize, and transmitting it to the other party completely and correctly.
  • the above three layers of processors exchange information through two types of interfaces: a class A interface and a class B interface.
  • Class A interface refers to the communication interface between the main processor and the lower sub-processor. Class A interfaces should have two characteristics:
  • the interface should have versatility and standardity, including hardware and communication protocols, that is, various down-sub-processors can communicate with the main processor through this unified interface, and each sub-processor can Direct communication or indirect communication through the host processor;
  • the interface should be extensible.
  • a gateway with only sub-processor a can be externally connected with a module with sub-processor b, so that the gateway can allow access to the sensing network supported by sub-processor b.
  • the module with sub-processor b is called an expansion module
  • such an expansion module can still communicate with the main processor through the above-mentioned class A interface.
  • the class A interface is actually a multi-processor or multi-chip communication interface.
  • the communication mode generally adopted is serial communication, and a main multi-slave string is performed between the main processor and the down sub-processor.
  • Line communication, communication speed / baud rate is defined by the user or a standard organization.
  • the above expansion module can be directly connected to the computer, and the two together complete the function of the IoT gateway (ie, the computer acts as the gateway's main processor and the upper sub-processor, and upwardly accesses
  • the Internet is Ethernet or Wi-Fi, so the expansion module should have a USB interface. Therefore, the Type A interface can be considered to use a USB interface, or the Type A interface can be converted to a USB interface in some way.
  • Class B interface refers to the communication interface between the main processor and the upper sub-processor.
  • This type of interface technology is relatively mature at present, and there are many types of interfaces.
  • the upper sub-processor may be an Ethernet controller, and the interface between the main processor and the Ethernet controller may adopt a high-speed bus mode (including data lines and address lines). , control line), you can also use low-speed and low-line serial communication (send line, receive line, control line).
  • the gateway uses GPRS to access the Internet
  • the upper sub-processor is a GPRS module/processor, and the interface between the main processor and the GPRS module/processor is mostly serial communication.
  • the gateway uses Wi-Fi to access the Internet, the upper sub-processor is a Wi-Fi module/processor, and the interface between the main processor and the Wi-Fi module/processor can be either a bus or a serial. way of communication.
  • this embodiment provides a preferred implementation manner for improving the utility and application scope of the data or signaling transmission method. That is, the main processor performs data or signaling interaction with the lower sub-processor through the first interface (ie, the above-mentioned type A interface); the main processor performs data or data with the upper sub-processor through the second interface (ie, the above-mentioned type B interface) Signaling interaction; wherein, the first interface is a serial communication interface or a USB interface; and the second interface is a serial communication interface or a bus interface.
  • the hardware related to the protocol conversion function on the gateway mainly includes: a main processor, a downward sub-processor, and an upward sub-processor; among them, The main processor and the lower sub-processor perform data or signaling interaction through a class A interface;
  • the main processor and the upper sub-processor perform data or signaling interaction through a class B interface.
  • the main purpose is to convert the data or signaling conforming to the protocol of the current sub-processor, convert it into intermediate format data or signaling, and then convert the protocol. Converting intermediate formatted data or signaling into data or signaling that follows the target sub-processor protocol. In short, the data or signaling format of one party is converted into a data or signaling format that the other party can recognize.
  • FIG. 3 is a schematic diagram of a software main body architecture of a multi-protocol gateway according to an embodiment of the present invention. As shown in FIG. 3, there are three software main bodies related to protocol conversion on the gateway: A series protocol, B series protocol, and intermediate format. In addition, there are two processes of protocol conversion 1 and protocol conversion 2 between the A series protocol and the B series protocol and the intermediate format respectively.
  • the A-series protocol refers to the perceptual layer network protocol running/loading on the lower sub-processor, such as the ZigBee protocol of the wireless sensor network or other custom protocols.
  • the B-series protocol refers to the traditional communication network protocol that runs/loads on the upper sub-processor, such as the Ethernet protocol stack on the Ethernet controller and the GPRS protocol stack on the GSM module.
  • the intermediate format refers to a standard signaling format and data format that is run/loaded on the host processor.
  • the standard signaling is converted to the standard signaling. Format and data format. This conversion process is the protocol conversion 1 and protocol conversion 2 shown in Figure 3.
  • the implementer of protocol conversion 1 and protocol conversion 2 is the main processor in the gateway.
  • Protocol conversion 1 refers to the process of the main processor converting the data or signaling into an intermediate format when each of the downstream sub-processors sends data or signaling conforming to the A-series protocol to the main processor through the class A interface. And the reverse of the process.
  • Protocol conversion 2 when each of the upper sub-processors will follow the data of the B-series protocol or The process by which the primary processor translates the data or signaling into an intermediate format when the signaling is sent to the primary processor through the class B interface, and the reverse of the process.
  • the main processor includes: a protocol processing module configured to convert data or signaling into data or signaling in an intermediate format, and the reverse process of the process.
  • the protocol processing module includes: a data processing unit or a signaling processing unit, where the two units respectively perform a conversion operation on data or signaling.
  • FIG. 4 is a schematic diagram of protocol conversion according to an embodiment of the present invention. As shown in FIG. 4, three A series protocols are listed in FIG. 4: Al, A2, A3, and three B series protocols Bl, B2, and B3. The conversion between the protocol Al and the intermediate format is now described as an example.
  • the main processor analyzes the protocol type of the data or signaling, and then transfers the data or signaling to the protocol processing module TA1 according to the protocol type, and the protocol processing module TA1 The data or signaling is converted to data or signaling in an intermediate format.
  • the main processor processes the data or signaling in the intermediate format to obtain the data or signaling result in the intermediate format, and the main processor determines the protocol type of the target sub-processor (assumed to be the protocol B1), and corresponds to the protocol type.
  • the protocol processing module TBI converts the data or signaling results of the intermediate format into data or signaling that conforms to protocol B1.
  • the processing manners of the protocol A2 and the protocol A3 are the same as those of the protocol A1 described above, and are not described here.
  • this embodiment provides a preferred implementation manner, that is, the main processor converts data or signaling into intermediate format data or signaling, including: the main processor determines the current sub-processor.
  • the protocol type converts the above data or signaling into data or signaling in an intermediate format by using a conversion mode corresponding to the protocol type.
  • the main processor converts the data or signaling result of the intermediate format into the target data or signaling, including: the main processor determines the target protocol type of the target sub-processor, and adopts a conversion manner corresponding to the target protocol type, and the intermediate format is Data or signaling results are converted to target data or signaling. In this way, data or letters are simplified The conversion process improves the efficiency and accuracy of data or signaling conversion.
  • FIG. 5 is a sub-sub-processor to an upward sub-routine according to an embodiment of the present invention.
  • the data interaction flowchart of the processor, as shown in Figure 5, the process includes the following steps:
  • Step S502 The lower sub-processor A1 sends data or signaling to the main processor through the class A interface.
  • Step S504 The main processor analyzes the protocol type of the data or signaling (assuming the data or signaling follows the protocol A1), and transfers the data or signaling to the protocol processing module TA1 corresponding to the protocol A1.
  • Step S506 The protocol processing module TA1 in the main processor calls the corresponding data processing module/signaling processing module to convert the data or signaling into data or signaling in an intermediate format.
  • the protocol processing module TA1 determines whether the input data is data or signaling. If it is data, the data processing module is called to process the data and convert it into data in an intermediate format; if it is signaling, the signaling processing module is called. The signaling is processed and converted into signaling in an intermediate format.
  • Step S508 The main processor processes the data or signaling in the intermediate format to generate data or signaling results in the intermediate format.
  • Step S510 The main processor determines that the target sub-processor is set to the protocol type of the upper sub-processor B1) (assumed to be the protocol B1), and transfers the data or signaling result of the intermediate format to the protocol processing module corresponding to the protocol B1.
  • TB 1 The protocol type of the upper sub-processor B1) (assumed to be the protocol B1), and transfers the data or signaling result of the intermediate format to the protocol processing module corresponding to the protocol B1.
  • Step S512 The protocol processing module in the main processor TBI calls the corresponding data processing module/signaling processing module to convert the data or signaling result in the intermediate format into data or signaling complying with the protocol B1.
  • the protocol processing module TBI determines whether the input is data or signaling, if it is a number According to the data processing module, the data processing module is called to process the input, and the data result in the intermediate format is converted into the target data following the protocol B1; if it is signaling, the signaling processing module is called to process the input, and the signaling result in the intermediate format is used. Converted to target signaling following protocol B1.
  • Step S514 The main processor sends the data or signaling following the protocol B1 to the upper sub-processor Bl through the class B interface.
  • FIG. 6 is a structural block diagram of a data or signaling transmitting apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes: a first converting module 10, a processing module 20, a second converting module 30, and a sending module 40; among them,
  • the first conversion module 10 is configured to receive data or signaling of the current sub-processor, and convert the data or signaling into data or signaling in an intermediate format;
  • the processing module 20 is connected to the first conversion module 10, and configured to process data or signaling in the intermediate format to obtain data or signaling result in an intermediate format;
  • the second conversion module 30 is connected to the processing module 20, and configured to convert the data or signaling result of the intermediate format into target data or signaling; wherein the target data or signaling follows the target protocol of the target sub-processor;
  • the sending module 40 is connected to the second converting module 30 and configured to send the target data or signaling to the target sub-processor.
  • the complex processing problem of the protocol conversion method in the related art is solved, thereby quickly and simply implementing data or signaling conversion between the sensing network and the traditional communication network, and various sensing networks, and the conversion is performed by means of A unified intermediate format to mask data or signaling formats from different sensing networks and traditional communication networks with low processing complexity and good scalability.
  • the current sub-processor in this embodiment may be a downward sub-processor, and the target sub-processor may be an upward sub-processor; or, the current sub-processor is an upward sub-processor, and the target sub-processor is a downward sub-processor.
  • both the current sub-processor and the target sub-processor in this embodiment may be a downward sub-processor.
  • the downward sub-processor and the up sub-processor have been introduced separately, and will not be described here.
  • the main processor in this embodiment is configured to complete conversion between two types of protocols supported by the upper sub-processor and the lower sub-processor, and the protocol conversion is mainly divided into two aspects: data conversion and signaling conversion.
  • Protocol conversion refers to converting one party's data or signaling format into a data or signaling format that the other party can recognize, and transmitting it to the other party completely and correctly.
  • the above three layers of processors exchange information through two types of interfaces.
  • the present embodiment provides a preferred embodiment for improving the usability and scope of application of the data or signaling transmission method. That is, the main processor passes the first interface.
  • A-type interface performs data or signaling interaction with the lower sub-processor; the main processor performs data or signaling interaction with the upper sub-processor through the second interface (ie, the above-mentioned B-type interface);
  • One interface is a serial communication interface or a USB interface; the second interface is a serial communication interface or a bus interface.
  • FIG. 7 is a first structural block diagram of a device for transmitting data or signaling according to an embodiment of the present invention. As shown in FIG. 7, the device includes the above-described first conversion module 10 in addition to the modules in FIG. Includes:
  • the protocol type determining unit 102 is configured to determine a protocol type of the current sub-processor; the first converting unit 104 is connected to the protocol type determining unit 102, and configured to adopt a conversion manner corresponding to the foregoing protocol type, and the foregoing data or signaling Convert to data or signaling in the above intermediate format.
  • FIG. 8 is a second specific structure of a transmitting apparatus for data or signaling according to an embodiment of the present invention.
  • the target protocol type determining unit 302 is configured to determine a target protocol type of the target sub-processor
  • the second converting unit 304 is connected to the target protocol type determining unit 302, and configured to convert the data or signaling result of the intermediate format into the target data or signaling by using a conversion manner corresponding to the target protocol type.
  • the main processor of the gateway receives the data or signaling of the downlink sub-processor through the class A interface, or receives the upward sub-processor through the class B interface.
  • Data or signaling the main processor converts the above data or signaling into an intermediate format of data or signaling through a protocol processing module, and the main processor processes the data or signaling in the intermediate format to obtain data in an intermediate format.
  • signaling result the main processor converts the data or signaling result of the above intermediate format into data or signaling conforming to the target sub-processor protocol through the protocol processing module, and then sends the data to the corresponding down sub-processor through the class A interface.
  • the adaptation layer realizes protocol conversion between the sensing network and the traditional communication network, and various sensing networks, and the protocol conversion utilizes a unified intermediate format to shield data or letters from different sensing networks and traditional communication networks.
  • the format with low processing complexity and good scalability.
  • An embodiment of the present invention provides a method and an apparatus for transmitting data or signaling, where the method is: after receiving the data or signaling of the current sub-processor, the main processor converts the data or signaling into an intermediate format data. Or signaling; processing the data or signaling in the above intermediate format to obtain the middle Formatted data or signaling result; converting the data or signaling result of the above intermediate format into target data or signaling conforming to the target protocol of the target sub-processor; finally the main processor sends the target data or signaling to the target sub- processor.
  • the problem of complex processing of the protocol conversion method is solved, and the data or signaling conversion between the sensing network and the traditional communication network and various sensing networks is quickly and simply implemented to shield data or signals from different sensing networks and traditional communication networks.
  • the format with low processing complexity and good scalability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed are a method and device for data or signaling transmission, said method comprising: a main processor receives data or signaling from a sub-processor, and transforms same into an intermediate format; the main processor processes the data or signaling in said intermediate format and obtains results in said intermediate format; the data or signaling results in the intermediate format are converted to target data or signaling, said data or signaling results conforming to the target protocol of the target sub-processor; the main processor then sends the target data or signaling to the target sub-processor. Use of the present invention overcomes problems of complexity in relevant techniques for protocol transformation and processing, quickly and simply enables data or signaling transformation between aware networks and traditional communication networks and all types of other aware networks, said transformation being supported by a uniform formatting. By blocking data or signaling formats originating from different aware networks and traditional communication networks, the present invention features lower degrees of processing complexity and good expansibility.

Description

一种数据或信令的发送方法及装置 技术领域  Method and device for transmitting data or signaling
本发明涉及通讯领域, 特别是涉及一种数据或信令的发送方法及装置。 背景技术  The present invention relates to the field of communications, and in particular, to a method and apparatus for transmitting data or signaling. Background technique
物联网是当前最前瞻的技术之一, 世界众多位于技术前沿的国家和企 业感应到一场即将由 "物联网" 引发的科技革命与经济浪潮, 纷纷制定标 准、研究新技术和应用,以期掌握市场主动权。物联网( The Internet of things ) 的定义是: 通过传感器、射频 i只别(RFID, Radio Frequency IDentification ), 红外感应器、 全球定位系统、 激光扫描器等信息传感设备, 按约定的协议, 把任何物品与互联网连接起来, 进行信息交换和通讯, 以实现智能化识别、 定位、 跟踪、 监控和管理的一种网络。  The Internet of Things is one of the most forward-looking technologies. Many countries and enterprises in the forefront of technology in the world have sensed a technological revolution and economic wave that will be triggered by the "Internet of Things". They have developed standards, researched new technologies and applications in order to master Market initiative. The definition of the Internet of Things is: through information sensors, such as sensors, radio frequency IDentification, infrared sensors, global positioning systems, laser scanners, etc., according to the agreed agreement Any item connected to the Internet for information exchange and communication to enable intelligent identification, location, tracking, monitoring and management of a network.
在业界, 物联网大致被公认为有三个层次, 底层是用来感知数据的感 知层, 第二层是数据传输的网络层, 最上层则是内容应用层。 其中, 感知 层包括基于各种传感器的无线传感器网络、基于射频识别的 RFID网络等感 知网络, 例如 ZigBee (低功耗个域网协议)、 Z- Wave、 RUBEE (无线连网 协议)、 WirelessHART(可互操作无线通信标准)、互联网工程任务组( Internet Engineering Task Force,简称为 IETF )、 6LowPAN、 ANT(天线接口)/ANT+、 Wibree (超低功耗蓝牙无线技术)、 Insteon (双向混合通信技术)等传感网 技术。 网络层包括互联网、 移动通信网络等传统通信网络, 例如码分多址 ( Code Division Multiple Access, CDMA )、 无线保真 ( WirelessFidelity, Wi- Fi )、非对称数字用户环路( Asymmetric Digital Subscriber Line, ADSL )、 第二代移动通信技术 ( 2ndGeneration, 2G )、 第三代移动通信技术 ( 3rdGeneration, 3G )等。 网关是物联网的重要组成部分, 是一种连接感知层与网络层的设备。 为实现广域互联, 所述网关需要实现感知网络与传统通信网络之间的协议 转换。 为实现局域互联, 所述网关需要实现不同类型感知网络之间的协议 转换。 In the industry, the Internet of Things is generally recognized as having three levels. The bottom layer is the sensing layer for sensing data, the second layer is the network layer for data transmission, and the upper layer is the content application layer. The sensing layer includes a sensor network based on various sensor-based wireless sensor networks, RFID-based RFID networks, such as ZigBee (Low Power Personal Area Network Protocol), Z-Wave, RUBEE (Wireless Networking Protocol), WirelessHART ( Interoperable Wireless Communication Standard), Internet Engineering Task Force (IETF), 6LowPAN, ANT (Antenna Interface)/ANT+, Wibree (Ultra Low Power Bluetooth Wireless Technology), Insteon (Two-way Hybrid Communication Technology) ) Sensor network technology. The network layer includes traditional communication networks such as the Internet and mobile communication networks, such as Code Division Multiple Access (CDMA), Wireless Fidelity (Wi-Fi), and Asymmetric Digital Subscriber Line (Asymmetric Digital Subscriber Line). ADSL), second-generation mobile communication technology (2nd Generation, 2G), third-generation mobile communication technology (3rd Generation, 3G), etc. The gateway is an important part of the Internet of Things. It is a device that connects the sensing layer to the network layer. In order to achieve wide area interconnection, the gateway needs to implement protocol conversion between the sensing network and the traditional communication network. To implement local area interconnection, the gateway needs to implement protocol conversion between different types of aware networks.
现有的多协议网关技术中, 所述网关只在有限的几种协议之间进行转 换, 如现场总线协议与工业以太网协议之间的转换等。 这类协议转换方法 从协议栈的底层自下而上处理, 处理复杂, 且不具有良好的通用性和扩展 性。 物联网中存在着各种各样的感知网络与传统通信网络, 因此网关承担 的协议转换任务也是极其繁重的。  In the existing multi-protocol gateway technology, the gateway only converts between a limited number of protocols, such as conversion between a fieldbus protocol and an industrial Ethernet protocol. This type of protocol conversion method is bottom-up processing from the bottom of the protocol stack, and the processing is complicated, and does not have good versatility and scalability. There are various kinds of sensing networks and traditional communication networks in the Internet of Things, so the protocol conversion tasks undertaken by the gateway are extremely heavy.
针对相关技术中的协议转换方法处理复杂的问题, 目前尚未提出有效 的解决方案。 发明内容  In view of the complicated problem of the protocol conversion method in the related art, an effective solution has not been proposed yet. Summary of the invention
针对相关技术中的协议转换方法处理复杂的问题, 本发明提供了一种 数据或信令的发送方法及装置, 用以解决上述技术问题。  The present invention provides a method and apparatus for transmitting data or signaling to solve the above-mentioned technical problems, in view of the complicated problem of the protocol conversion method in the related art.
根据本发明的一个方面, 本发明提供了一种数据或信令的发送方法, 其中, 该方法包括: 主处理器接收当前子处理器的数据或信令, 将该数据 或信令转换为中间格式的数据或信令; 主处理器对上述中间格式的数据或 信令进行处理, 得到中间格式的数据或信令结果; 将上述中间格式的数据 或信令结果转换为目标数据或信令; 其中, 上述目标数据或信令遵循目标 子处理器的目标协议; 主处理器将上述目标数据或信令发送至上述目标子 处理器。  According to an aspect of the present invention, the present invention provides a method for transmitting data or signaling, wherein the method includes: a main processor receiving data or signaling of a current sub-processor, converting the data or signaling into an intermediate Formatted data or signaling; the main processor processes the data or signaling of the intermediate format to obtain data or signaling results in an intermediate format; converts the data or signaling result of the intermediate format into target data or signaling; The target data or signaling follows the target protocol of the target sub-processor; the main processor sends the target data or signaling to the target sub-processor.
优选地, 上述将数据或信令转换为中间格式的数据或信令, 包括: 上 述主处理器确定上述当前子处理器的协议类型, 采用与上述协议类型对应 的转换方式, 将上述数据或信令转换为上述中间格式的数据或信令。  Preferably, the foregoing converting data or signaling into data or signaling in an intermediate format includes: the foregoing main processor determining a protocol type of the current sub-processor, and using the conversion manner corresponding to the protocol type, the data or the letter Convert data or signaling to the above intermediate format.
优选地, 上述将中间格式的数据或信令结果转换为目标数据或信令, 包括: Preferably, the above data or signaling result of the intermediate format is converted into target data or signaling, include:
上述主处理器确定上述目标子处理器的目标协议类型, 采用与上述目 标协议类型对应的转换方式, 将上述中间格式的数据或信令结果转换为上 述目标数据或信令。  The main processor determines the target protocol type of the target sub-processor, and converts the data or signaling result of the intermediate format into the target data or signaling by using a conversion manner corresponding to the target protocol type.
优选地, 上述当前子处理器可以为向下子处理器, 上述目标子处理器 可以为向上子处理器; 或者, 上述当前子处理器与上述目标子处理器均可 以为向下子处理器; 或者, 上述当前子处理器可以为向上子处理器, 上述 目标子处理器可以为向下子处理器; 其中, 上述向下子处理器是与感知层 优选地, 上述主处理器可以通过第一接口与上述向下子处理器进行数 据或信令的交互; 上述主处理器可以通过第二接口与上述向上子处理器进 行数据或信令的交互; 其中, 上述第一接口可以为串行通信接口或者 USB 接口; 上述第二接口可以为串行通信接口或者总线接口。  Preferably, the current sub-processor may be a sub-sub-processor, and the target sub-processor may be an upper sub-processor; or the current sub-processor and the target sub-processor may both be sub-processors; or The current sub-processor may be an upper sub-processor, and the target sub-processor may be a sub-sub-processor; wherein the downward sub-processor is a sensing layer, and the main processor may pass the first interface and the foregoing The sub-processor performs data or signaling interaction; the main processor may perform data or signaling interaction with the foregoing sub-processor through the second interface; wherein the first interface may be a serial communication interface or a USB interface; The second interface may be a serial communication interface or a bus interface.
根据本发明实施例的另一方面, 本发明实施例还提供了一种数据或信 令的发送装置, 该装置包括: 第一转换模块、 处理模块、 第二转换模块和 发送模块; 其中,  According to another aspect of the present invention, an embodiment of the present invention further provides a data or signaling sending apparatus, where the apparatus includes: a first converting module, a processing module, a second converting module, and a sending module;
第一转换模块, 配置为接收当前子处理器的数据或信令, 将该数据或 信令转换为中间格式的数据或信令;  The first conversion module is configured to receive data or signaling of the current sub-processor, and convert the data or signaling into data or signaling in an intermediate format;
处理模块, 配置为对上述中间格式的数据或信令进行处理, 得到中间 格式的数据或信令结果;  a processing module, configured to process data or signaling in the intermediate format to obtain data or signaling result in an intermediate format;
第二转换模块, 配置为将上述中间格式的数据或信令结果转换为目标 数据或信令; 其中, 上述目标数据或信令遵循目标子处理器的目标协议; 发送模块, 配置为将上述目标数据或信令发送至上述目标子处理器。 优选地, 上述第一转换模块可以包括: 协议类型确定单元和第一转换 单元; 其中, 协议类型确定单元, 配置为确定上述当前子处理器的协议类型; 第一转换单元, 配置为采用与上述协议类型对应的转换方式, 将上述 数据或信令转换为上述中间格式的数据或信令。 a second conversion module, configured to convert the data or signaling result of the intermediate format into target data or signaling; wherein the target data or signaling follows a target protocol of the target sub-processor; and the sending module is configured to: Data or signaling is sent to the target sub-processor described above. Preferably, the first conversion module may include: a protocol type determining unit and a first converting unit; a protocol type determining unit, configured to determine a protocol type of the current sub-processor; the first converting unit is configured to convert the data or signaling into data or signaling of the intermediate format by using a conversion manner corresponding to the foregoing protocol type .
优选地, 上述第二转换模块可以包括: 目标协议类型确定单元和第二 转换单元; 其中,  Preferably, the foregoing second conversion module may include: a target protocol type determining unit and a second converting unit;
目标协议类型确定单元, 配置为确定上述目标子处理器的目标协议类 型;  a target protocol type determining unit configured to determine a target protocol type of the target sub-processor;
第二转换单元, 配置为采用与上述目标协议类型对应的转换方式, 将 上述中间格式的数据或信令结果转换为上述目标数据或信令。  The second converting unit is configured to convert the data or signaling result of the intermediate format into the target data or signaling by using a conversion manner corresponding to the target protocol type.
优选地, 上述当前子处理器可以为向下子处理器, 上述目标子处理器 可以为向上子处理器; 或者, 上述当前子处理器与上述目标子处理器均可 以为向下子处理器; 或者, 上述当前子处理器可以为向上子处理器, 上述 目标子处理器可以为向下子处理器; 其中, 上述向下子处理器是与感知层 优选地, 上述装置可以通过第一接口与上述向下子处理器进行数据或 信令的交互; 上述装置可以通过第二接口与上述向上子处理器进行数据或 信令的交互; 其中, 上述第一接口可以为串行通信接口或者 USB接口; 上 述第二接口可以为串行通信接口或者总线接口。  Preferably, the current sub-processor may be a sub-sub-processor, and the target sub-processor may be an upper sub-processor; or the current sub-processor and the target sub-processor may both be sub-processors; or The current sub-processor may be an upper sub-processor, and the target sub-processor may be a downward sub-processor; wherein, the lower sub-processor is a sensing layer, and the device may pass the first interface and the downward sub-processing The device performs data or signaling interaction; the device may perform data or signaling interaction with the foregoing upper sub-processor through the second interface; wherein, the first interface may be a serial communication interface or a USB interface; It can be a serial communication interface or a bus interface.
通过本发明实施例, 主处理器接收到当前子处理器的数据或信令后, 将该数据或信令转换为中间格式的数据或信令; 然后对上述中间格式的数 据或信令进行处理, 得到中间格式的数据或信令结果; 然后将上述中间格 式的数据或信令结果转换为遵循目标子处理器的目标协议的目标数据或信 令; 最后主处理器将该目标数据或信令发送至目标子处理器。 解决了相关 技术中的协议转换方法处理复杂的问题, 从而快速简单的实现了感知网络 与传统通信网络、 以及各种感知网络之间的数据或信令转换, 且该转换借 助于统一的中间格式, 以屏蔽来自不同感知网络和传统通信网络的数据或 信令格式, 具有较低的处理复杂度和良好的扩展性。 附图说明 After receiving the data or signaling of the current sub-processor, the main processor converts the data or signaling into data or signaling in an intermediate format; and then processes the data or signaling in the intermediate format. Obtaining data or signaling result in an intermediate format; then converting the data or signaling result of the above intermediate format into target data or signaling conforming to the target protocol of the target sub-processor; and finally the main processor is to the target data or signaling Send to the target sub-processor. The invention solves the complicated problem of the protocol conversion method in the related art, thereby quickly and simply implementing data or signaling conversion between the sensing network and the traditional communication network, and various sensing networks, and the conversion borrows Helps a unified intermediate format to mask data or signaling formats from different sensing networks and traditional communication networks with low processing complexity and good scalability. DRAWINGS
图 1 是根据本发明实施例的数据或信令的发送方法的流程图; 图 2 是根据本发明实施例的多协议网关的硬件主体架构示意图; 图 3 是根据本发明实施例的多协议网关的软件主体架构示意图; 图 4是根据本发明实施例的协议转换示意图;  1 is a flowchart of a method for transmitting data or signaling according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a hardware main structure of a multi-protocol gateway according to an embodiment of the present invention; FIG. 3 is a multi-protocol gateway according to an embodiment of the present invention; Schematic diagram of the software main structure; FIG. 4 is a schematic diagram of protocol conversion according to an embodiment of the present invention;
图 5 是根据本发明实施例的从向下子处理器到向上子处理器的数据交 互流程图;  5 is a flow chart of data interaction from a lower sub-processor to an upper sub-processor according to an embodiment of the present invention;
图 6是根据本发明实施例的数据或信令的发送装置的结构框图; 图 7 是根据本发明实施例的数据或信令的发送装置的第一种具体结构 框图;  6 is a structural block diagram of a transmitting apparatus for data or signaling according to an embodiment of the present invention; FIG. 7 is a block diagram showing a first specific structure of a transmitting apparatus of data or signaling according to an embodiment of the present invention;
图 8 是根据本发明实施例的数据或信令的发送装置的第二种具体结构 框图。 具体实施方式  Figure 8 is a block diagram showing a second specific structure of a transmitting apparatus of data or signaling according to an embodiment of the present invention. detailed description
由于相关技术中的协议转换方法的处理过程较为复杂, 如何设计一种 简单、 高效的协议转换方法, 是物联网网关设计及应用中面临的主要问题, 基于此, 本发明实施例提供了一种数据或信令的发送方法及装置, 以下结 合附图以及实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描 述的具体实施例仅仅用以解释本发明, 并不限定本发明。  Because the processing of the protocol conversion method in the related art is complicated, how to design a simple and efficient protocol conversion method is a major problem in the design and application of the Internet of Things gateway. Based on this, the embodiment of the present invention provides a Method and Apparatus for Transmitting Data or Signaling The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本实施例提供了一种数据或信令的发送方法, 该方法可以在设备侧实 现, 图 1 是根据本发明实施例的数据或信令的发送方法的流程图, 如图 1 所示, 该方法包括以下步骤:  This embodiment provides a method for transmitting data or signaling, which may be implemented on the device side. FIG. 1 is a flowchart of a method for transmitting data or signaling according to an embodiment of the present invention. The method includes the following steps:
步骤 S102: 主处理器接收当前子处理器的数据或信令, 将该数据或信 令转换为中间格式的数据或信令; Step S102: The main processor receives data or signaling of the current sub-processor, and the data or the letter Convert data or signaling to an intermediate format;
步骤 S104: 主处理器对上述中间格式的数据或信令进行处理, 得到中 间格式的数据或信令结果; 将上述中间格式的数据或信令结果转换为目标 数据或信令; 其中, 上述目标数据或信令遵循目标子处理器的目标协议; 步骤 S106:主处理器将上述目标数据或信令发送至上述目标子处理器。 通过上述方法, 解决了相关技术中的协议转换方法处理复杂的问题, 从而快速简单的实现了感知网络与传统通信网络、 以及各种感知网络之间 的数据或信令转换, 且该转换借助于统一的中间格式, 以屏蔽来自不同感 知网络和传统通信网络的数据或信令格式, 具有较低的处理复杂度和良好 的扩展性。  Step S104: The main processor processes the data or signaling of the intermediate format to obtain data or signaling result in an intermediate format; and converts the data or signaling result of the intermediate format into target data or signaling; wherein, the foregoing target The data or signaling follows the target protocol of the target sub-processor; Step S106: The main processor sends the above-mentioned target data or signaling to the target sub-processor. Through the above method, the complex processing problem of the protocol conversion method in the related art is solved, thereby quickly and simply implementing data or signaling conversion between the sensing network and the traditional communication network, and various sensing networks, and the conversion is performed by means of A unified intermediate format to mask data or signaling formats from different sensing networks and traditional communication networks with low processing complexity and good scalability.
为了简单高效的实现感知网络与传统通信网络之间的数据或信令转 换, 本实施例中所述当前子处理器可以是向下子处理器, 所述目标子处理
Figure imgf000008_0001
In order to implement the data or signaling conversion between the sensing network and the traditional communication network in a simple and efficient manner, the current sub-processor in this embodiment may be a downward sub-processor, and the target sub-processing
Figure imgf000008_0001
或者, 所述当前子处理器是向上子处理器, 所述目标子处理器是向下 子处理器。  Alternatively, the current sub-processor is an up sub-processor, and the target sub-processor is a down sub-processor.
为了简单高效的实现各种感知网络之间的数据或信令转换, 本实施例 中的上述当前子处理器与目标子处理器均可以是向下子处理器。 In order to implement data or signaling conversion between various sensing networks in a simple and efficient manner, both the current sub-processor and the target sub-processor in this embodiment may be a downward sub-processor.
Figure imgf000008_0002
Figure imgf000008_0002
所述向下子处理器为跟各种感知层网络节点进行交互的处理器。 由于 感知层网络的多样性, 网关可能具有多个向下子处理器, 例如与无线传感 器网络通信的射频处理器、 与 RFID节点通信的 RFID接收处理器等。  The downward sub-processor is a processor that interacts with various perceptual layer network nodes. Due to the diversity of the layer of the layer, the gateway may have multiple down sub-processors, such as a radio frequency processor in communication with the wireless sensor network, an RFID receiver processor in communication with the RFID node, and the like.
所述向上子处理器为将网关向上连入 Internet (国际互联网 )或移动通 信网的处理器。  The up sub-processor is a processor that connects the gateway up to the Internet (Internet) or the mobile communication network.
其中, 所述向上连入的连接方式可能是 xDSL ( xDSL是各种类型数字 用户线路 (Digital Subscribe Line, DSL ) 的总称)等有线网络, 也可能是 2G网络的通用分组无线服务技术( General Packet Radio Service, GPRS )、 3G 网络、 第四代移动通信技术( 4thGeneration, 4G ) 网络、 Wi-Fi等无线 网络。 The connection mode of the uplink connection may be a wired network such as xDSL (xDSL is a general term for various types of digital subscriber lines (DSL)), or may be 2G network general packet radio service (GPRS), 3G network, 4th generation mobile communication technology (4th generation, 4G) network, Wi-Fi and other wireless networks.
所述网关应根据应用场合的网络提供情况和向上传输流量情况, 配置 一种或几种上述网络对应的向上子处理器。例如接入 Internet的以太网控制 器、 接入移动通信网的 GPRS模块等。  The gateway should configure one or more upward sub-processors corresponding to the foregoing network according to the network provision situation of the application and the upward transmission traffic. For example, an Ethernet controller connected to the Internet, a GPRS module connected to the mobile communication network, and the like.
本实施例中的主处理器, 配置为完成向上子处理器与向下子处理器所 支持的两类协议之间的转换, 协议转换主要分为数据转换和信令转换两方 面。 协议转换是指将一方的数据或信令格式转换为另一方能够识别的数据 或信令格式, 并完整正确地传至对方。  The main processor in this embodiment is configured to complete conversion between two types of protocols supported by the upper sub-processor and the lower sub-processor, and the protocol conversion is mainly divided into two aspects: data conversion and signaling conversion. Protocol conversion refers to converting one party's data or signaling format into a data or signaling format that the other party can recognize, and transmitting it to the other party completely and correctly.
上述三层处理器 (主处理器、 向下处理器、 向上处理器)之间通过两 类接口进行信息交互: A类接口和 B类接口。 下面分别对 A类接口和 B类 接口进行介绍。  The above three layers of processors (the main processor, the down processor, and the up processor) exchange information through two types of interfaces: a class A interface and a class B interface. The following describes the Type A interface and the Type B interface.
A类接口, 是指主处理器与向下子处理器之间的通信接口。 A类接口 应当具有两方面的特性:  Class A interface refers to the communication interface between the main processor and the lower sub-processor. Class A interfaces should have two characteristics:
( 1 )接口应当具有通用性和标准性, 包括在硬件上和通信协议上, 即 各种向下子处理器都能通过这个统一的接口与主处理器进行通信, 且各子 处理器之间能够直接通信或通过主处理器间接通信;  (1) The interface should have versatility and standardity, including hardware and communication protocols, that is, various down-sub-processors can communicate with the main processor through this unified interface, and each sub-processor can Direct communication or indirect communication through the host processor;
( 2 )接口应当具有可扩展性, 例如一个只具有子处理器 a的网关, 可 以外接一个具有子处理器 b的模块, 这样网关就可以允许子处理器 b所支 持的感知网络的接入, 从而扩展网关的感知接入能力。 假设将具有子处理 器 b的模块称为扩展模块, 此类扩展模块仍然可以通过上述 A类接口与主 处理器通信。  (2) The interface should be extensible. For example, a gateway with only sub-processor a can be externally connected with a module with sub-processor b, so that the gateway can allow access to the sensing network supported by sub-processor b. Thereby expanding the cognitive access capability of the gateway. Assuming that the module with sub-processor b is called an expansion module, such an expansion module can still communicate with the main processor through the above-mentioned class A interface.
因此, A类接口实际上是多处理器或多芯片的通信接口, 一般采用的 通信方式为串行通信, 主处理器与向下子处理器之间进行一主多从式的串 行通信, 通信速度 /波特率由用户或某个标准组织定义。 另外, 有一种应用 需求是可能的, 即上述扩展模块可以直接连在电脑上, 两者一起完成物联 网网关的功能 (即电脑充当网关的主处理器和向上子处理器, 向上接入Therefore, the class A interface is actually a multi-processor or multi-chip communication interface. The communication mode generally adopted is serial communication, and a main multi-slave string is performed between the main processor and the down sub-processor. Line communication, communication speed / baud rate is defined by the user or a standard organization. In addition, there is an application requirement that the above expansion module can be directly connected to the computer, and the two together complete the function of the IoT gateway (ie, the computer acts as the gateway's main processor and the upper sub-processor, and upwardly accesses
Internet的方式为以太网或 Wi-Fi ), 所以扩展模块应具备 USB接口, 因此, A类接口可以考虑采用 USB接口,或者 A类接口可以通过某种方式转换为 USB接口。 The Internet is Ethernet or Wi-Fi, so the expansion module should have a USB interface. Therefore, the Type A interface can be considered to use a USB interface, or the Type A interface can be converted to a USB interface in some way.
B 类接口, 是指主处理器与向上子处理器之间的通信接口。 该类接口 技术目前较为成熟,接口类型也比较多。 例如, 如果网关采用 xDSL的有线 方式接入 Internet, 则向上子处理器可能为以太网控制器, 主处理器与以太 网控制器之间的接口可以采用高速的总线方式(包括数据线、 地址线、 控 制线),也可以采用低速而少线的串行通信方式(发送线、接收线、控制线)。 如果网关采用 GPRS接入 Internet, 则向上子处理器为 GPRS模块 /处理器, 主处理器与 GPRS模块 /处理器之间的接口多采用串行通信方式。 如果网关 采用 Wi-Fi方式接入 Internet, 则向上子处理器为 Wi-Fi模块 /处理器, 主处 理器与 Wi-Fi模块 /处理器之间的接口可以采用总线方式, 也可以采用串行 通信方式。  Class B interface refers to the communication interface between the main processor and the upper sub-processor. This type of interface technology is relatively mature at present, and there are many types of interfaces. For example, if the gateway uses xDSL wired connection to the Internet, the upper sub-processor may be an Ethernet controller, and the interface between the main processor and the Ethernet controller may adopt a high-speed bus mode (including data lines and address lines). , control line), you can also use low-speed and low-line serial communication (send line, receive line, control line). If the gateway uses GPRS to access the Internet, the upper sub-processor is a GPRS module/processor, and the interface between the main processor and the GPRS module/processor is mostly serial communication. If the gateway uses Wi-Fi to access the Internet, the upper sub-processor is a Wi-Fi module/processor, and the interface between the main processor and the Wi-Fi module/processor can be either a bus or a serial. way of communication.
基于上述对 A类接口和 B类接口的介绍, 本实施例提供了一种优选实 施方式, 用以提高数据或信令的发送方法的实用性和适用范围。 即主处理 器通过第一接口 (即上述 A类接口) 与向下子处理器进行数据或信令的交 互; 主处理器通过第二接口 (即上述 B类接口 ) 与向上子处理器进行数据 或信令的交互; 其中, 第一接口为串行通信接口或者 USB接口; 第二接口 为串行通信接口或者总线接口。  Based on the foregoing description of the class A interface and the class B interface, this embodiment provides a preferred implementation manner for improving the utility and application scope of the data or signaling transmission method. That is, the main processor performs data or signaling interaction with the lower sub-processor through the first interface (ie, the above-mentioned type A interface); the main processor performs data or data with the upper sub-processor through the second interface (ie, the above-mentioned type B interface) Signaling interaction; wherein, the first interface is a serial communication interface or a USB interface; and the second interface is a serial communication interface or a bus interface.
图 2是根据本发明实施例的多协议网关的硬件主体架构示意图,如图 2 所示, 网关上与协议转换功能相关的硬件主要包括: 主处理器、 向下子处 理器、 向上子处理器; 其中, 所述主处理器与所述向下子处理器通过 A类接口进行数据或信令的交 互; 2 is a schematic diagram of a hardware main body architecture of a multi-protocol gateway according to an embodiment of the present invention. As shown in FIG. 2, the hardware related to the protocol conversion function on the gateway mainly includes: a main processor, a downward sub-processor, and an upward sub-processor; among them, The main processor and the lower sub-processor perform data or signaling interaction through a class A interface;
所述主处理器与所述向上子处理器通过 B类接口进行数据或信令的交 互。  The main processor and the upper sub-processor perform data or signaling interaction through a class B interface.
对于本实施例介绍的数据或信令的发送方法, 其主要目的是将遵循当 前子处理器的协议的数据或信令, 通过协议转换, 转换为中间格式的数据 或信令, 再通过协议转换, 将中间格式的数据或信令转换为遵循目标子处 理器协议的数据或信令。 简而言之, 就是将一方的数据或信令格式转换为 另一方能够识别的数据或信令格式。  For the data or signaling sending method introduced in this embodiment, the main purpose is to convert the data or signaling conforming to the protocol of the current sub-processor, convert it into intermediate format data or signaling, and then convert the protocol. Converting intermediate formatted data or signaling into data or signaling that follows the target sub-processor protocol. In short, the data or signaling format of one party is converted into a data or signaling format that the other party can recognize.
图 3是根据本发明实施例的多协议网关的软件主体架构示意图,如图 3 所示,网关上与协议转换相关的软件主体有三个: A系列协议、 B系列协议、 中间格式。 此外, A系列协议和 B系列协议分别与中间格式之间存在着协 议转换 1和协议转换 2这两个处理过程。  FIG. 3 is a schematic diagram of a software main body architecture of a multi-protocol gateway according to an embodiment of the present invention. As shown in FIG. 3, there are three software main bodies related to protocol conversion on the gateway: A series protocol, B series protocol, and intermediate format. In addition, there are two processes of protocol conversion 1 and protocol conversion 2 between the A series protocol and the B series protocol and the intermediate format respectively.
A系列协议, 是指运行 /加载在向下子处理器上的感知层网络协议, 例 如无线传感器网络的 ZigBee协议或其他自定义协议。  The A-series protocol refers to the perceptual layer network protocol running/loading on the lower sub-processor, such as the ZigBee protocol of the wireless sensor network or other custom protocols.
B 系列协议, 是指运行 /加载在向上子处理器上的传统通信网络协议, 例如以太网控制器上的以太网协议栈、 GSM模块上的 GPRS协议栈。  The B-series protocol refers to the traditional communication network protocol that runs/loads on the upper sub-processor, such as the Ethernet protocol stack on the Ethernet controller and the GPRS protocol stack on the GSM module.
中间格式, 是指运行 /加载在主处理器上的一种标准的信令格式和数据 格式, A系列协议与 B系列协议之间进行信令和数据交互前, 都要转换为 该标准信令格式和数据格式。 这一转换过程即为图 3 中所示的协议转换 1 与协议转换 2。 协议转换 1与协议转换 2的实施者为网关中的主处理器。  The intermediate format refers to a standard signaling format and data format that is run/loaded on the host processor. Before the signaling and data interaction between the A series protocol and the B series protocol, the standard signaling is converted to the standard signaling. Format and data format. This conversion process is the protocol conversion 1 and protocol conversion 2 shown in Figure 3. The implementer of protocol conversion 1 and protocol conversion 2 is the main processor in the gateway.
协议转换 1, 是指当每个向下子处理器将其遵循 A系列协议的数据或 信令通过 A类接口发至主处理器时, 主处理器将该数据或信令转换为中间 格式的过程, 以及该过程的相反过程。  Protocol conversion 1, refers to the process of the main processor converting the data or signaling into an intermediate format when each of the downstream sub-processors sends data or signaling conforming to the A-series protocol to the main processor through the class A interface. And the reverse of the process.
协议转换 2, 是指当每个向上子处理器将其遵循 B 系列协议的数据或 信令通过 B类接口发至主处理器时, 主处理器将该数据或信令转换为中间 格式的过程, 以及该过程的相反过程。 Protocol conversion 2, when each of the upper sub-processors will follow the data of the B-series protocol or The process by which the primary processor translates the data or signaling into an intermediate format when the signaling is sent to the primary processor through the class B interface, and the reverse of the process.
在本实施例中, 所述主处理器包括: 协议处理模块, 配置为将数据或 信令转换为中间格式的数据或信令, 以及该过程的相反过程。  In this embodiment, the main processor includes: a protocol processing module configured to convert data or signaling into data or signaling in an intermediate format, and the reverse process of the process.
优选地, 所述协议处理模块包括: 数据处理单元或者信令处理单元, 这两个单元分别对数据或者信令进行转换操作。  Preferably, the protocol processing module includes: a data processing unit or a signaling processing unit, where the two units respectively perform a conversion operation on data or signaling.
图 4是根据本发明实施例的协议转换示意图, 如图 4所示, 图 4中列 举了三种 A系列协议: Al、 A2、 A3 , 以及三种 B系列协议 Bl、 B2、 B3。 现以协议 Al与中间格式的转换为例进行相应说明。 当协议 A1的数据或信 令通过 A类接口到达主处理器时, 主处理器分析数据或信令的协议类型, 然后根据协议类型将数据或信令转至协议处理模块 TA1,协议处理模块 TA1 将该数据或信令转换为中间格式的数据或信令。  4 is a schematic diagram of protocol conversion according to an embodiment of the present invention. As shown in FIG. 4, three A series protocols are listed in FIG. 4: Al, A2, A3, and three B series protocols Bl, B2, and B3. The conversion between the protocol Al and the intermediate format is now described as an example. When the data or signaling of the protocol A1 reaches the main processor through the class A interface, the main processor analyzes the protocol type of the data or signaling, and then transfers the data or signaling to the protocol processing module TA1 according to the protocol type, and the protocol processing module TA1 The data or signaling is converted to data or signaling in an intermediate format.
然后, 主处理器对中间格式的数据或信令进行处理, 得到中间格式的 数据或信令结果,主处理器判断目标子处理器的协议类型(假设是协议 B1 ), 则与该协议类型对应的协议处理模块 TBI将中间格式的数据或信令结果转 换为遵循协议 B1的数据或信令。  Then, the main processor processes the data or signaling in the intermediate format to obtain the data or signaling result in the intermediate format, and the main processor determines the protocol type of the target sub-processor (assumed to be the protocol B1), and corresponds to the protocol type. The protocol processing module TBI converts the data or signaling results of the intermediate format into data or signaling that conforms to protocol B1.
同样的, 对于协议 A2和协议 A3的处理方式与上述介绍的协议 A1的 处理方式相同, 在此不再赘述。  Similarly, the processing manners of the protocol A2 and the protocol A3 are the same as those of the protocol A1 described above, and are not described here.
基于上述图 4介绍的协议转换流程, 本实施例提供了一种优选实施方 式, 即主处理器将数据或信令转换为中间格式的数据或信令包括: 主处理 器确定当前子处理器的协议类型, 采用与该协议类型对应的转换方式, 将 上述数据或信令转换为中间格式的数据或信令。 主处理器将中间格式的数 据或信令结果转换为目标数据或信令包括: 主处理器确定目标子处理器的 目标协议类型, 采用与该目标协议类型对应的转换方式, 将上述中间格式 的数据或信令结果转换为目标数据或信令。 通过该方式, 简化了数据或信 令转换流程, 提高了数据或信令转换效率和准确率。 Based on the protocol conversion process introduced in FIG. 4 above, this embodiment provides a preferred implementation manner, that is, the main processor converts data or signaling into intermediate format data or signaling, including: the main processor determines the current sub-processor. The protocol type converts the above data or signaling into data or signaling in an intermediate format by using a conversion mode corresponding to the protocol type. The main processor converts the data or signaling result of the intermediate format into the target data or signaling, including: the main processor determines the target protocol type of the target sub-processor, and adopts a conversion manner corresponding to the target protocol type, and the intermediate format is Data or signaling results are converted to target data or signaling. In this way, data or letters are simplified The conversion process improves the efficiency and accuracy of data or signaling conversion.
下面结合附图和优选实施例对本发明的实现方法进行进一步解释和说 明。  The method for carrying out the invention will be further explained and illustrated in conjunction with the accompanying drawings and preferred embodiments.
本实施例对向下子处理器 A1产生数据或信令,经主处理器处理后发至 向上子处理器 B1的过程进行介绍, 图 5是根据本发明实施例的从向下子处 理器到向上子处理器的数据交互流程图, 如图 5 所示, 该流程包括以下步 骤:  This embodiment introduces the process of generating data or signaling to the lower sub-processor A1, which is sent to the upper sub-processor B1 after being processed by the main processor, and FIG. 5 is a sub-sub-processor to an upward sub-routine according to an embodiment of the present invention. The data interaction flowchart of the processor, as shown in Figure 5, the process includes the following steps:
步骤 S502: 向下子处理器 A1将数据或信令通过 A类接口发至主处理 器。  Step S502: The lower sub-processor A1 sends data or signaling to the main processor through the class A interface.
步骤 S504: 主处理器分析数据或信令的协议类型 (假设该数据或信令 遵循协议 A1 ),将该数据或信令转至与协议 A1相对应的协议处理模块 TA1。  Step S504: The main processor analyzes the protocol type of the data or signaling (assuming the data or signaling follows the protocol A1), and transfers the data or signaling to the protocol processing module TA1 corresponding to the protocol A1.
步骤 S506: 主处理器中的协议处理模块 TA1调用相应的数据处理模块 /信令处理模块, 将数据或信令转换为中间格式的数据或信令。  Step S506: The protocol processing module TA1 in the main processor calls the corresponding data processing module/signaling processing module to convert the data or signaling into data or signaling in an intermediate format.
该步骤中, 协议处理模块 TA1判断输入的是数据还是信令, 如果为数 据, 则调用数据处理模块对数据进行处理, 转换为中间格式的数据; 如果 为信令, 则调用信令处理模块对信令进行处理, 转换为中间格式的信令。  In this step, the protocol processing module TA1 determines whether the input data is data or signaling. If it is data, the data processing module is called to process the data and convert it into data in an intermediate format; if it is signaling, the signaling processing module is called. The signaling is processed and converted into signaling in an intermediate format.
步骤 S508: 主处理器对中间格式的数据或信令进行处理, 产生中间格 式的数据或信令结果。  Step S508: The main processor processes the data or signaling in the intermediate format to generate data or signaling results in the intermediate format.
步骤 S510: 主处理器判断目标子处理器 艮设为向上子处理器 B1 )的 协议类型 (假设是协议 B1 ), 将中间格式的数据或信令结果转至与协议 B1 相对应的协议处理模块 TB 1。  Step S510: The main processor determines that the target sub-processor is set to the protocol type of the upper sub-processor B1) (assumed to be the protocol B1), and transfers the data or signaling result of the intermediate format to the protocol processing module corresponding to the protocol B1. TB 1.
步骤 S512: 主处理器中的协议处理模块 TBI调用相应的数据处理模块 /信令处理模块, 将中间格式的数据或信令结果转换为遵循协议 B1 的数据 或信令。  Step S512: The protocol processing module in the main processor TBI calls the corresponding data processing module/signaling processing module to convert the data or signaling result in the intermediate format into data or signaling complying with the protocol B1.
该步骤中, 协议处理模块 TBI判断输入的是数据还是信令, 如果为数 据, 则调用数据处理模块对输入进行处理, 将中间格式的数据结果转换为 遵循协议 B1的目标数据; 如果为信令, 则调用信令处理模块对输入进行处 理, 将中间格式的信令结果转换为遵循协议 B1的目标信令。 In this step, the protocol processing module TBI determines whether the input is data or signaling, if it is a number According to the data processing module, the data processing module is called to process the input, and the data result in the intermediate format is converted into the target data following the protocol B1; if it is signaling, the signaling processing module is called to process the input, and the signaling result in the intermediate format is used. Converted to target signaling following protocol B1.
步骤 S514: 主处理器将遵循协议 B1的数据或信令通过 B类接口发至 向上子处理器 Bl。  Step S514: The main processor sends the data or signaling following the protocol B1 to the upper sub-processor Bl through the class B interface.
对应于上述实施例介绍的数据或信令的发送方法, 本实施例提供了一 种数据或信令的发送装置, 该装置可以设置在设备侧, 用以实现上述实施 例。 图 6是根据本发明实施例的数据或信令的发送装置的结构框图, 如图 6 所示, 该装置包括: 第一转换模块 10、 处理模块 20、 第二转换模块 30和 发送模块 40; 其中,  Corresponding to the data or signaling sending method introduced in the foregoing embodiment, this embodiment provides a data or signaling sending device, which can be set on the device side to implement the above embodiment. FIG. 6 is a structural block diagram of a data or signaling transmitting apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes: a first converting module 10, a processing module 20, a second converting module 30, and a sending module 40; among them,
第一转换模块 10, 配置为接收当前子处理器的数据或信令, 将该数据 或信令转换为中间格式的数据或信令;  The first conversion module 10 is configured to receive data or signaling of the current sub-processor, and convert the data or signaling into data or signaling in an intermediate format;
处理模块 20, 连接至第一转换模块 10, 配置为对上述中间格式的数据 或信令进行处理, 得到中间格式的数据或信令结果;  The processing module 20 is connected to the first conversion module 10, and configured to process data or signaling in the intermediate format to obtain data or signaling result in an intermediate format;
第二转换模块 30, 连接至处理模块 20, 配置为将上述中间格式的数据 或信令结果转换为目标数据或信令; 其中, 上述目标数据或信令遵循目标 子处理器的目标协议;  The second conversion module 30 is connected to the processing module 20, and configured to convert the data or signaling result of the intermediate format into target data or signaling; wherein the target data or signaling follows the target protocol of the target sub-processor;
发送模块 40, 连接至第二转换模块 30, 配置为将上述目标数据或信令 发送至上述目标子处理器。  The sending module 40 is connected to the second converting module 30 and configured to send the target data or signaling to the target sub-processor.
通过上述装置, 解决了相关技术中的协议转换方法处理复杂的问题, 从而快速简单的实现了感知网络与传统通信网络、 以及各种感知网络之间 的数据或信令转换, 且该转换借助于统一的中间格式, 以屏蔽来自不同感 知网络和传统通信网络的数据或信令格式, 具有较低的处理复杂度和良好 的扩展性。  Through the above device, the complex processing problem of the protocol conversion method in the related art is solved, thereby quickly and simply implementing data or signaling conversion between the sensing network and the traditional communication network, and various sensing networks, and the conversion is performed by means of A unified intermediate format to mask data or signaling formats from different sensing networks and traditional communication networks with low processing complexity and good scalability.
为了简单高效的实现感知网络与传统通信网络之间的数据或信令转 换, 本实施例中的当前子处理器可以是向下子处理器, 目标子处理器可以 是向上子处理器; 或者, 当前子处理器是向上子处理器, 目标子处理器是 向下子处理器。 为了简单高效的实现各种感知网络之间的数据或信令转换, 本实施例中的上述当前子处理器与目标子处理器均可以是向下子处理器。 前面已经分别对向下子处理器以及向上子处理器进行了介绍, 在此不再赘 述。 For simple and efficient implementation of data or signaling between the sensing network and the traditional communication network In this case, the current sub-processor in this embodiment may be a downward sub-processor, and the target sub-processor may be an upward sub-processor; or, the current sub-processor is an upward sub-processor, and the target sub-processor is a downward sub-processor. . In order to implement data or signaling conversion between various sensing networks in a simple and efficient manner, both the current sub-processor and the target sub-processor in this embodiment may be a downward sub-processor. The downward sub-processor and the up sub-processor have been introduced separately, and will not be described here.
本实施例中的主处理器, 配置为完成向上子处理器与向下子处理器所 支持的两类协议之间的转换, 协议转换主要分为数据转换和信令转换两方 面。 协议转换是指将一方的数据或信令格式转换为另一方能够识别的数据 或信令格式, 并完整正确地传至对方。  The main processor in this embodiment is configured to complete conversion between two types of protocols supported by the upper sub-processor and the lower sub-processor, and the protocol conversion is mainly divided into two aspects: data conversion and signaling conversion. Protocol conversion refers to converting one party's data or signaling format into a data or signaling format that the other party can recognize, and transmitting it to the other party completely and correctly.
上述三层处理器 (主处理器、 向下处理器、 向上处理器)之间通过两 类接口进行信息交互。 对此, 本实施例提供了一种优选实施方式, 用以提 高数据或信令的发送方法的实用性和适用范围。 即主处理器通过第一接口 The above three layers of processors (main processor, down processor, up processor) exchange information through two types of interfaces. In this regard, the present embodiment provides a preferred embodiment for improving the usability and scope of application of the data or signaling transmission method. That is, the main processor passes the first interface.
(即上述 A类接口 )与向下子处理器进行数据或信令的交互; 主处理器通 过第二接口 (即上述 B类接口 )与向上子处理器进行数据或信令的交互; 其中, 第一接口为串行通信接口或者 USB接口; 第二接口为串行通信接口 或者总线接口。 (ie, the above-mentioned A-type interface) performs data or signaling interaction with the lower sub-processor; the main processor performs data or signaling interaction with the upper sub-processor through the second interface (ie, the above-mentioned B-type interface); One interface is a serial communication interface or a USB interface; the second interface is a serial communication interface or a bus interface.
图 7是根据本发明实施例的数据或信令的发送装置的第一种具体结构 框图, 如图 7所示, 该装置除了包括上述图 6中的各个模块之外, 上述第 一转换模块 10包括:  FIG. 7 is a first structural block diagram of a device for transmitting data or signaling according to an embodiment of the present invention. As shown in FIG. 7, the device includes the above-described first conversion module 10 in addition to the modules in FIG. Includes:
协议类型确定单元 102, 配置为确定上述当前子处理器的协议类型; 第一转换单元 104, 连接至协议类型确定单元 102, 配置为采用与上述 协议类型对应的转换方式, 将上述数据或信令转换为上述中间格式的数据 或信令。  The protocol type determining unit 102 is configured to determine a protocol type of the current sub-processor; the first converting unit 104 is connected to the protocol type determining unit 102, and configured to adopt a conversion manner corresponding to the foregoing protocol type, and the foregoing data or signaling Convert to data or signaling in the above intermediate format.
图 8是根据本发明实施例的数据或信令的发送装置的第二种具体结构 框图, 如图 8所示, 该装置除了包括上述图 7中的各个模块之外, 上述第 二转换模块 30包括: FIG. 8 is a second specific structure of a transmitting apparatus for data or signaling according to an embodiment of the present invention. The block diagram, as shown in FIG. 8, the device includes: in addition to the modules in FIG. 7, the second conversion module 30 includes:
目标协议类型确定单元 302,配置为确定上述目标子处理器的目标协议 类型;  The target protocol type determining unit 302 is configured to determine a target protocol type of the target sub-processor;
第二转换单元 304, 连接至目标协议类型确定单元 302, 配置为采用与 上述目标协议类型对应的转换方式, 将上述中间格式的数据或信令结果转 换为上述目标数据或信令。  The second converting unit 304 is connected to the target protocol type determining unit 302, and configured to convert the data or signaling result of the intermediate format into the target data or signaling by using a conversion manner corresponding to the target protocol type.
从以上的描述中可以看出, 在本发明实施例的具体实现过程中, 网关 的主处理器通过 A类接口接收向下子处理器的数据或信令, 或者通过 B类 接口接收向上子处理器的数据或信令; 主处理器通过协议处理模块将上述 数据或信令转换为一种中间格式的数据或信令, 主处理器对中间格式的数 据或信令进行处理, 得到中间格式的数据或信令结果; 主处理器通过协议 处理模块将上述中间格式的数据或信令结果, 转换为遵循目标子处理器协 议的数据或信令, 再通过 A类接口发至相应的向下子处理器, 或通过 B类 接口发至相应的向上子处理器。 从而通过适配层实现了感知网络与传统通 信网络、 以及各种感知网络之间的协议转换, 且该协议转换借助于统一的 中间格式, 以屏蔽来自不同感知网络和传统通信网络的数据或信令格式, 具有较低的处理复杂度和良好的扩展性。  As can be seen from the above description, in the specific implementation process of the embodiment of the present invention, the main processor of the gateway receives the data or signaling of the downlink sub-processor through the class A interface, or receives the upward sub-processor through the class B interface. Data or signaling; the main processor converts the above data or signaling into an intermediate format of data or signaling through a protocol processing module, and the main processor processes the data or signaling in the intermediate format to obtain data in an intermediate format. Or signaling result; the main processor converts the data or signaling result of the above intermediate format into data or signaling conforming to the target sub-processor protocol through the protocol processing module, and then sends the data to the corresponding down sub-processor through the class A interface. Or sent to the corresponding upper sub-processor through the class B interface. Thus, the adaptation layer realizes protocol conversion between the sensing network and the traditional communication network, and various sensing networks, and the protocol conversion utilizes a unified intermediate format to shield data or letters from different sensing networks and traditional communication networks. The format, with low processing complexity and good scalability.
尽管为示例目的, 已经公开了本发明的优选实施例, 本领域的技术人 员将意识到各种改进、 增加和取代也是可能的, 因此, 本发明的范围应当 不限于上述实施例。 工业实用性  While the preferred embodiments of the present invention have been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above. Industrial applicability
本发明实施例提供了一种数据或信令的发送方法及装置, 其中方法为: 主处理器接收到当前子处理器的数据或信令后, 将该数据或信令转换为中 间格式的数据或信令; 对上述中间格式的数据或信令进行处理, 得到中间 格式的数据或信令结果; 将上述中间格式的数据或信令结果转换为遵循目 标子处理器的目标协议的目标数据或信令; 最后主处理器将该目标数据或 信令发送至目标子处理器。 解决了协议转换方法处理复杂的问题, 快速简 单的实现了感知网络与传统通信网络、 以及各种感知网络之间的数据或信 令转换, 以屏蔽来自不同感知网络和传统通信网络的数据或信令格式, 具 有较低的处理复杂度和良好的扩展性。 An embodiment of the present invention provides a method and an apparatus for transmitting data or signaling, where the method is: after receiving the data or signaling of the current sub-processor, the main processor converts the data or signaling into an intermediate format data. Or signaling; processing the data or signaling in the above intermediate format to obtain the middle Formatted data or signaling result; converting the data or signaling result of the above intermediate format into target data or signaling conforming to the target protocol of the target sub-processor; finally the main processor sends the target data or signaling to the target sub- processor. The problem of complex processing of the protocol conversion method is solved, and the data or signaling conversion between the sensing network and the traditional communication network and various sensing networks is quickly and simply implemented to shield data or signals from different sensing networks and traditional communication networks. The format, with low processing complexity and good scalability.

Claims

权利要求书 claims
1、 一种数据或信令的发送方法, 所述方法包括: 1. A method for sending data or signaling, the method includes:
主处理器接收当前子处理器的数据或信令, 将所述数据或信令转换为 中间格式的数据或信令; The main processor receives the data or signaling from the current sub-processor and converts the data or signaling into data or signaling in an intermediate format;
所述主处理器对所述中间格式的数据或信令进行处理, 得到中间格式 的数据或信令结果; 将所述中间格式的数据或信令结果转换为目标数据或 信令; 其中, 所述目标数据或信令遵循目标子处理器的目标协议; The main processor processes the data or signaling in the intermediate format to obtain the data or signaling result in the intermediate format; converts the data or signaling result in the intermediate format into target data or signaling; wherein, The target data or signaling follows the target protocol of the target sub-processor;
所述主处理器将所述目标数据或信令发送至所述目标子处理器。 The main processor sends the target data or signaling to the target sub-processor.
2、 如权利要求 1所述的方法, 其中, 所述将数据或信令转换为中间格 式的数据或信令, 包括: 2. The method of claim 1, wherein said converting data or signaling into intermediate format data or signaling includes:
所述主处理器确定所述当前子处理器的协议类型, 采用与所述协议类 型对应的转换方式, 将所述数据或信令转换为所述中间格式的数据或信令。 The main processor determines the protocol type of the current sub-processor, and uses a conversion method corresponding to the protocol type to convert the data or signaling into the data or signaling in the intermediate format.
3、 如权利要求 1所述的方法, 其中, 所述将中间格式的数据或信令结 果转换为目标数据或信令, 包括: 3. The method of claim 1, wherein converting the intermediate format data or signaling result into target data or signaling includes:
所述主处理器确定所述目标子处理器的目标协议类型, 采用与所述目 标协议类型对应的转换方式, 将所述中间格式的数据或信令结果转换为所 述目标数据或信令。 The main processor determines the target protocol type of the target sub-processor, and uses a conversion method corresponding to the target protocol type to convert the data or signaling result in the intermediate format into the target data or signaling.
4、 如权利要求 1所述的方法, 其中, 4. The method of claim 1, wherein,
所述当前子处理器为向下子处理器, 所述目标子处理器为向上子处理 器; 或者, 所述当前子处理器为向上子处理器, 所述目标子处理器为向下子处理 器; 其中, 所述向下子处理器是与感知层进行交互的处理器, 所述向上子 处理器是与网络层进行交互的处理器。 The current sub-processor is a downward sub-processor, and the target sub-processor is an upward sub-processor; or, the current sub-processor is an upward sub-processor, and the target sub-processor is a downward sub-processor; Wherein, the downward sub-processor is a processor that interacts with the perception layer, and the upward sub-processor is a processor that interacts with the network layer.
5、 如权利要求 4所述的方法, 其中, 所述主处理器通过第一接口与所 述向下子处理器进行数据或信令的交互; 所述主处理器通过第二接口与所 述向上子处理器进行数据或信令的交互; 其中, 所述第一接口为串行通信 接口或者 USB接口; 所述第二接口为串行通信接口或者总线接口。 5. The method of claim 4, wherein the main processor communicates with the The following exchanges data or signaling with the downward sub-processor; The main processor interacts with the upward sub-processor with data or signaling through a second interface; Wherein, the first interface is a serial communication interface or USB interface; The second interface is a serial communication interface or a bus interface.
6、 一种数据或信令的发送装置, 所述装置包括: 第一转换模块、 处理 模块、 第二转换模块和发送模块; 其中, 6. A data or signaling sending device, the device includes: a first conversion module, a processing module, a second conversion module and a sending module; wherein,
第一转换模块, 配置为接收当前子处理器的数据或信令, 将所述数据 或信令转换为中间格式的数据或信令; The first conversion module is configured to receive data or signaling from the current sub-processor and convert the data or signaling into intermediate format data or signaling;
处理模块, 配置为对第一转换模块转换得到的所述中间格式的数据或 信令进行处理, 得到中间格式的数据或信令结果; A processing module configured to process the intermediate format data or signaling converted by the first conversion module to obtain an intermediate format data or signaling result;
第二转换模块, 配置为将处理模块处理得到的所述中间格式的数据或 信令结果转换为目标数据或信令; 其中, 所述目标数据或信令遵循目标子 处理器的目标协议; The second conversion module is configured to convert the intermediate format data or signaling result processed by the processing module into target data or signaling; wherein, the target data or signaling follows the target protocol of the target sub-processor;
发送模块, 配置为将第二转换模块转换得到的所述目标数据或信令发 送至所述目标子处理器。 A sending module configured to send the target data or signaling converted by the second conversion module to the target sub-processor.
7、 如权利要求 6所述的装置, 其中, 所述第一转换模块包括: 协议类 型确定单元和第一转换单元; 其中, 7. The device according to claim 6, wherein the first conversion module includes: a protocol type determination unit and a first conversion unit; wherein,
协议类型确定单元, 配置为确定所述当前子处理器的协议类型; 第一转换单元, 配置为采用与协议类型确定单元中确定的所述协议类 型对应的转换方式, 将所述数据或信令转换为所述中间格式的数据或信令。 The protocol type determination unit is configured to determine the protocol type of the current sub-processor; the first conversion unit is configured to use a conversion method corresponding to the protocol type determined in the protocol type determination unit to convert the data or signaling Convert data or signaling to said intermediate format.
8、 如权利要求 6所述的装置, 其中, 所述第二转换模块包括: 目标协 议类型确定单元和第二转换单元; 其中, 8. The device according to claim 6, wherein the second conversion module includes: a target protocol type determination unit and a second conversion unit; wherein,
目标协议类型确定单元, 配置为确定所述目标子处理器的目标协议类 型; A target protocol type determination unit configured to determine the target protocol type of the target sub-processor;
第二转换单元, 配置为采用与所述目标协议类型对应的转换方式, 将 所述中间格式的数据或信令结果转换为所述目标数据或信令。 The second conversion unit is configured to use a conversion method corresponding to the target protocol type to convert the data or signaling result in the intermediate format into the target data or signaling.
9、 如权利要求 6所述的装置, 其中, 9. The device of claim 6, wherein,
所述当前子处理器为向下子处理器, 所述目标子处理器为向上子处理 器; 或者, 所述当前子处理器为向上子处理器, 所述目标子处理器为向下子处理 器; 其中, 所述向下子处理器是与感知层进行交互的处理器, 所述向上子 处理器是与网络层进行交互的处理器。 The current sub-processor is a downward sub-processor, and the target sub-processor is an upward sub-processor; or, the current sub-processor is an upward sub-processor, and the target sub-processor is a downward sub-processor; Wherein, the downward sub-processor is a processor that interacts with the perception layer, and the upward sub-processor is a processor that interacts with the network layer.
10、 如权利要求 9所述的装置, 其中, 所述装置通过第一接口与所述 向下子处理器进行数据或信令的交互; 所述装置通过第二接口与所述向上 子处理器进行数据或信令的交互; 其中, 所述第一接口为串行通信接口或 者 USB接口; 所述第二接口为串行通信接口或者总线接口。 10. The device of claim 9, wherein: the device interacts with the downward sub-processor through a first interface for data or signaling; and the device interacts with the upward sub-processor through a second interface. Interaction of data or signaling; wherein, the first interface is a serial communication interface or a USB interface; and the second interface is a serial communication interface or a bus interface.
PCT/CN2013/081116 2013-01-22 2013-08-08 Data or signalling sending method and device WO2013189326A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310022727.5A CN103051426B (en) 2013-01-22 2013-01-22 The sending method of a kind of data or signaling and device
CN201310022727.5 2013-01-22

Publications (1)

Publication Number Publication Date
WO2013189326A1 true WO2013189326A1 (en) 2013-12-27

Family

ID=48063936

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081116 WO2013189326A1 (en) 2013-01-22 2013-08-08 Data or signalling sending method and device

Country Status (2)

Country Link
CN (1) CN103051426B (en)
WO (1) WO2013189326A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051426B (en) * 2013-01-22 2015-12-23 中兴通讯股份有限公司 The sending method of a kind of data or signaling and device
CN103634949A (en) * 2013-11-26 2014-03-12 安徽海聚信息科技有限责任公司 Zigbee and Z-Wave technology-based wireless gateway
CN103634947A (en) * 2013-11-26 2014-03-12 安徽海聚信息科技有限责任公司 Zigbee and Z-Wave technology-based wireless gateway
CN105763435A (en) * 2014-12-15 2016-07-13 镇江市星禾物联科技有限公司 Multifunctional internet-of-thing gateway equipment
CN105915500A (en) * 2015-12-22 2016-08-31 美的集团股份有限公司 Method, protocol conversion service end and Internet of things terminal for conversion of different Internet of things protocols
CN106302499B (en) * 2016-08-26 2019-08-27 迈普通信技术股份有限公司 A kind of security log acquisition method, apparatus and system
CN107888539A (en) * 2016-09-29 2018-04-06 中兴通讯股份有限公司 Internet-of-things terminal access device and method
US10855367B2 (en) * 2017-10-02 2020-12-01 Fisher Controls International Llc Methods and apparatus to bridge communications between devices using low-energy devices

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355697A (en) * 2010-08-12 2012-02-15 美商威睿电通公司 Data processing method for processing machine type communication data, and device and system
CN102378223A (en) * 2010-08-24 2012-03-14 中国电信股份有限公司 M2M (Machine-to-Machine) communication module, M2M terminal, and system and method for remote management on M2M terminal
CN102790781A (en) * 2011-05-17 2012-11-21 南京中兴新软件有限责任公司 Middleware, M2M (machine-to-machine) system with industrial application middleware and application method of system
CN103051426A (en) * 2013-01-22 2013-04-17 中兴通讯股份有限公司 Data or signaling sending method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355697A (en) * 2010-08-12 2012-02-15 美商威睿电通公司 Data processing method for processing machine type communication data, and device and system
CN102378223A (en) * 2010-08-24 2012-03-14 中国电信股份有限公司 M2M (Machine-to-Machine) communication module, M2M terminal, and system and method for remote management on M2M terminal
CN102790781A (en) * 2011-05-17 2012-11-21 南京中兴新软件有限责任公司 Middleware, M2M (machine-to-machine) system with industrial application middleware and application method of system
CN103051426A (en) * 2013-01-22 2013-04-17 中兴通讯股份有限公司 Data or signaling sending method and device

Also Published As

Publication number Publication date
CN103051426A (en) 2013-04-17
CN103051426B (en) 2015-12-23

Similar Documents

Publication Publication Date Title
WO2013189326A1 (en) Data or signalling sending method and device
KR101726773B1 (en) Systems and methods for power savings in wireless communications
EP3869895A1 (en) System and method for radio access virtualization
CN110166194A (en) A kind of pilot signal generation method and device
WO2012152133A1 (en) Method and system for implementing sensor adaptation
CN101267376B (en) Gateway data transmission method for Zigbee network extension
CN105657865B (en) A kind of data relay transmission method, system and the UE for having relay function
WO2013182128A1 (en) Service processing method and device
WO2021204293A1 (en) Positioning signal processing method and apparatus
WO2011130965A1 (en) Wireless sensor network, mobile terminal and interconnection method and system thereof
CN109150379A (en) A kind of communication means, the network equipment and terminal device
EP2959730A1 (en) Systems and methods for wireless coexistence
CN107872308A (en) Data transmission method for uplink, method of reseptance and equipment
CN101815041A (en) Multiple play gateway
CN102624769A (en) Pipeline network device and related data transmission method
US11595972B2 (en) Devices, systems and methods for power optimization using transmission slot availability mask
US8185050B2 (en) Coexistance device communication between a Bluetooth device and a wireless local area network device
CN102420734A (en) System for realizing topological structure of controller area network (CAN) bus
WO2012152070A1 (en) Method for communication between gateways in wsn, initiator gateway, and target gateway
CN106302767A (en) A kind of Internet of Things application system based on WMMP agreement
CN202513948U (en) Master-slave mode protocol conversion gateway from Ethernet to ProfiBus decentralized periphery (PROFIBUS-DP)
TWI524688B (en) Bluetooth service estimation apparatus and bluetooth service estimation method thereof
CN103199890B (en) A kind of Ethernet radio network gateway based on many output ZigBee technology
WO2009063272A1 (en) Hid adaptation to attribute protocol
CN202364388U (en) Wireless networking system applied to mobile security detecting equipment

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: 13806224

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: 13806224

Country of ref document: EP

Kind code of ref document: A1