WO2012175024A1 - 实现无线数据传输与短信收发并行的方法、系统及设备 - Google Patents

实现无线数据传输与短信收发并行的方法、系统及设备 Download PDF

Info

Publication number
WO2012175024A1
WO2012175024A1 PCT/CN2012/077262 CN2012077262W WO2012175024A1 WO 2012175024 A1 WO2012175024 A1 WO 2012175024A1 CN 2012077262 W CN2012077262 W CN 2012077262W WO 2012175024 A1 WO2012175024 A1 WO 2012175024A1
Authority
WO
WIPO (PCT)
Prior art keywords
short message
embedded device
terminal
tcp
internet
Prior art date
Application number
PCT/CN2012/077262
Other languages
English (en)
French (fr)
Inventor
王威
熊勇
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012175024A1 publication Critical patent/WO2012175024A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/04Network layer protocols, e.g. mobile IP [Internet Protocol]

Definitions

  • the present invention relates to the field of wireless communications, and in particular, to a method, system and device for implementing wireless data transmission and text messaging. Background technique
  • wireless modems can also be used.
  • the wireless MODEM is generally used to provide access to the wireless network.
  • the final product is only available to the user in a fixed interface mode (such as RS232). Since there is only one user interface, and the MODEM can only work in one mode of data mode or command mode, it is difficult to realize the control of the MODEM and the data transmission through the MODEM from the device resources, so that it is possible.
  • the application area of the wireless network monitoring field and some wireless data transmissions are uninterruptible, and at the same time, the application scenarios requiring short message prompting are limited.
  • TCP/IP Transfer Control Protocol/Internet Protocol
  • PPP Point to Point Protocol
  • GPRS/CDMA base station power and environment monitoring device which uses SMS and GPRS/CDMA to switch between each other.
  • the SMS is used to establish a link through the short message. After the GPRS data transmission ends, the GPRS connection is disconnected, and the short message mode is re-entered.
  • the embodiments of the present invention provide a method, a system, and a device for implementing wireless data transmission and short message transmission and reception in parallel, which are used to solve the wireless user interface and the mutually exclusive working mode of the wireless MODEM in the prior art, and it is difficult to implement wireless data transmission and short message control. Coexistence issues.
  • the embedded device establishes a connection with the Internet
  • the embedded device communicates with the data terminal and the short message terminal respectively through the Internet, wherein the Internet forwards the data flow between the embedded device and the data terminal through a TCP/IP channel, and forwards the data through the TCP/IP channel A text message between the embedded device and the short message terminal.
  • the embedded device is configured to start two independent threads to respectively control wireless data transmission and short message transmission and reception, and perform wireless data transmission with the data terminal through the TCP/IP channel through the Internet, and send and receive short messages with the short message terminal;
  • the Internet is configured to forward a data flow between the embedded device and the data terminal through a TCP/IP channel, and forward the short message between the embedded device and the short message terminal through a TCP/IP channel;
  • the data terminal is set to pass TCP/IP channel, via the Internet, with embedded devices Wireless data transmission;
  • the SMS gateway is configured to interact with the embedded device according to the gateway protocol
  • the short message network is set to connect the short message gateway and the short message terminal;
  • the short message terminal is set to send and receive text messages to and from the embedded device via the short message network and the short message gateway, and the TCP/IP channel through the Internet.
  • a first control unit configured to initiate a thread for controlling wireless data transmission, and perform wireless data transmission with the data terminal through a TCP/IP channel via the Internet;
  • a second control unit configured to initiate a thread for controlling the sending and receiving of text messages, through the Internet, through
  • the TCP/IP channel and the short message terminal perform short message sending and receiving;
  • An interface unit configured to connect the first control unit with the wireless MODEM, and connect the second control unit with the wireless MODEM;
  • a wireless MODEM configured to establish a connection between the embedded device and the Internet.
  • the embedded device in the process of implementing wireless data transmission and short message sending and receiving in parallel by using an embedded device, the embedded device establishes a connection with the Internet; and the embedded device communicates with the data terminal and the short message terminal respectively through the Internet.
  • the Internet forwards the data flow between the embedded device and the data terminal through a TCP/IP channel, and forwards the short message between the embedded device and the short message terminal through a TCP/IP channel. Therefore, the embodiment of the present invention is applicable to wireless network monitoring, requires wireless data transmission to be uninterruptible, and requires a short message prompt scene, and realizes wireless data transmission and text message transmission and reception in parallel.
  • FIG. 1 is a schematic structural view of a first embodiment of a system according to the present invention.
  • Embodiment 2 is a schematic structural diagram of Embodiment 2 of a system according to the present invention.
  • FIG. 3 is a schematic structural diagram of an embedded device according to an embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of a specific embodiment of a method according to the present invention.
  • FIG. 5 is a schematic flowchart of a wireless monitoring process according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a wireless network monitoring thread according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of a short message monitoring thread according to an embodiment of the present invention. detailed description
  • the embedded device establishes a connection with the Internet in the process of parallelizing the wireless data transmission and the short message transmission and reception by using the embedded device; the embedded device communicates with the data terminal and the short message terminal respectively through the Internet, wherein The Internet forwards the data flow between the embedded device and the data terminal through a TCP/IP channel, and forwards the short message between the embedded device and the short message terminal through a TCP/IP channel.
  • FIG. 1 is a schematic structural view of a first embodiment of a system according to the present invention.
  • the system of the embodiment of the present invention includes an embedded device 11, an Internet 12, a data terminal 13, a short message gateway 14, a short message network 15, and a short message terminal 16;
  • the embedded device 11 is configured to start two independent threads to respectively control wireless data transmission and short message transmission and reception, and perform wireless data transmission with the data terminal 13 through the TCP/IP channel via the Internet 12, and perform short message transmission and reception with the short message terminal 16;
  • the Internet 12 is configured to forward the data stream between the embedded device 11 and the data terminal 13 through the TCP/IP channel, and forward the short message between the embedded device 11 and the short message terminal 16 through the TCP/IP channel;
  • the data terminal 13 configured to perform wireless data transmission with the embedded device 11 via the Internet 12 via a TCP/IP channel;
  • the short message gateway 14 is configured to interact with the embedded device 11 according to the gateway protocol; the short message network 15 is configured to connect the short message gateway 14 and the short message terminal 16; the short message terminal 16 is configured to pass through the short message network 15 and the short message gateway 14, and
  • the TCP/IP channel transmits and receives text messages to and from the embedded device 11 via the Internet 12.
  • the embodiment of the present invention can be applied to a GPRS network based on Unicom.
  • Wireless network monitoring uses the access point name (APN) of the private network.
  • APN access point name
  • Unicom assigns a private network APN to the system, and activates the corresponding listening port and open SMS gateway protocol to make the system IP address. Static allocation.
  • the communication protocol between the embedded device and the remote background uses the standard 1104 communication protocol, and the communication protocol with the Unicom SMS gateway uses the China Unicom SMS gateway protocol SGIP1.2.
  • the system for performing wireless network monitoring based on the GPRS network of the Unicom is described in detail below. It should be noted that the interaction between the embedded device and the short message terminal described in the present invention is performed through the short message gateway.
  • the embedded device 11 accesses the GPRS network 21, and the PPP dial-up connection issues a GPRS login request, and the request includes the private network APN provided by China Unicom.
  • the GPRS service support node (SGSN) 22 from the domain name
  • the corresponding GPRS Support Node (GGSN) 23 is queried in the Domain Name System (DNS) server, and the user request is sent to the GGSN23, and the GGSN23 sends the user authentication information to the remote user dialing authentication system through the dedicated line.
  • DNS Domain Name System
  • the Internet 12 forwards the data stream between the embedded device 11 and the data terminal 13 over the TCP/IP channel, and forwards the short message between the embedded device 11 and the short message gateway 14 over the TCP/IP channel.
  • the short message gateway 14 sends and receives text messages to and from the short message terminal 16 via the short message network 15.
  • FIG. 3 is a schematic structural diagram of an embedded device according to an embodiment of the present invention.
  • the embedded device of the embodiment of the present invention includes: a first control unit 31, a second control unit 32, an interface unit 33, and a wireless MODEM 34;
  • the first control unit 31 is configured to start a thread for controlling wireless data transmission, and perform wireless data transmission with the data terminal 13 through the TCP/IP channel via the Internet 12;
  • the second control unit 32 is configured to start a thread for controlling the sending and receiving of the short message, and send and receive a short message to and from the short message terminal 16 via the TCP/IP channel through the Internet 12;
  • the interface unit 33 is configured to connect the first control unit 31 and the wireless MODEM 34, and connect the second control unit 32 with the wireless MODEM 34;
  • the wireless MODEM 34 is arranged to establish a connection between the embedded device 11 and the Internet 12.
  • 4 is a schematic flow chart of a specific embodiment of the method of the present invention.
  • the method of the embodiment of the present invention includes the following steps:
  • Step 401 The embedded device establishes a connection with the Internet.
  • the TCP/IP protocol stack and the PPP module in the Linux system are migrated to the core processor of the embedded device, where the PPP module includes a PPP protocol stack, and therefore, the embedded device acquires the configuration for The TCP/IP protocol stack and PPP protocol stack required to connect to the Internet, script files needed to connect to the Internet.
  • the embedded device cross-compiles the PPPD and chat modules using the installed cross compiler to generate an executable program to obtain an upper layer application of the PPP protocol stack.
  • the embedded device starts the PPPD process, and the PPPD process performs a dial-up operation according to the control flow defined by the script file.
  • Step 402 The embedded device communicates with the data terminal and the short message terminal respectively through the Internet, wherein the Internet forwards the data flow between the embedded device and the data terminal through a TCP/IP channel, and passes the TCP/IP The channel forwards the short message between the embedded device and the short message terminal.
  • the embedded device and the data terminal perform wireless data transmission according to an existing protocol or a customized protocol.
  • the embedded device and the short message gateway interact according to the short message gateway protocol established by the operator, and the short message gateway sends and receives the short message through the short message network and the short message terminal.
  • the embedded device controls the wireless data transmission between itself and the data terminal, and the short message transmission and reception of the user and the short message terminal respectively by starting two independent threads.
  • the embedded device forwards the short message between the embedded device and the short message terminal through the TCP/IP channel, including the communication device initializing communication with the short message gateway, and binding the embedded device to the short message gateway by using a Bind command;
  • the embedded device determines whether there is a short message to be sent or to be connected Receive, if yes, send or receive a text message, otherwise, enter the maintenance phase. Before the short message is sent and received, it is determined whether the IP address of the embedded device is changed. If yes, the embedded device re-registers the IP address, otherwise, the short message transmission and reception control is directly performed. In the process of sending and receiving a short message, the embedded device needs to convert the encoding format of the short message content into an encoding format supported by the short message gateway.
  • FIG. 5 is a schematic flowchart of a wireless monitoring process according to an embodiment of the present invention.
  • the wireless monitoring process in the embodiment of the present invention includes the following steps: Step 501: The wireless monitoring process is initialized, including serial device initialization, internal buffer initialization, and the like, which communicate with the wireless MODEM.
  • Step 502 Wireless MODEM initialization.
  • Step 503 Start the PPPD process.
  • Step 504 Dial-up connection.
  • Step 503 and step 504 the PPPD process performs a dial-up operation according to the control flow defined by the gprs script file, and the disconnection reconnection setting is performed in the script file, so the PPPD process automatically reconnects after the dialing is unsuccessful or dropped.
  • Step 505 Determine whether the dial-up connection is successful. If yes, go to step 506. Otherwise, go back to step 504.
  • Step 506 Start the wireless network monitoring thread.
  • Step 507 Start the SMS monitoring thread.
  • Step 508 Enter the wireless monitoring process maintenance state.
  • the IP address will be fixed each time a dial-up connection is made. After the dial-up connection is successful, the wireless network monitoring thread and the SMS monitoring thread are started, and then the maintenance state of the process is entered.
  • FIG. 6 is a schematic flowchart of a wireless network monitoring thread according to an embodiment of the present invention.
  • the wireless network monitoring thread in the embodiment of the present invention includes the following steps: Step 601: The wireless network monitors the thread initialization, including IP address binding, listening port setting, internal buffer initialization, and the like.
  • Step 602 Determine whether the IP address is changed. If yes, go to step 603. Otherwise, go to step 605.
  • Step 603 Reinitialize the socket.
  • Step 604 Register an IP address.
  • Step 605 Process the new connection.
  • the active alarm link is disconnected and the link established by the new connection is used. This is done to bring the link control to the remote background, which is suitable for a remote background monitoring of multiple power devices.
  • Step 606 Determine whether there is data to be received. If yes, go to step 607. Otherwise, go to step 609.
  • Step 607 Receive data.
  • Step 608 Process the data.
  • Step 610
  • Step 609 Active alarm processing.
  • Step 610 Determine whether there is data to be sent. If yes, go to step 611. Otherwise, go to step 612.
  • Step 611 Send data.
  • Step 612 Record processing and output some necessary debugging information.
  • Step 613 Thread maintenance.
  • FIG. 7 is a schematic flowchart of a short message monitoring thread according to an embodiment of the present invention.
  • the short message monitoring thread in the embodiment of the present invention includes the following steps: Step 701: The short message monitoring thread is initialized, including socket initialization, internal buffer initialization, and the like.
  • Step 702 Determine whether the IP address is changed. If yes, perform step 703. Otherwise, execute Line 705.
  • Step 703 Reinitialize the socket.
  • Step 704 Register an IP address.
  • Step 705 Determine whether there is a short message to be sent. If yes, go to step 706. Otherwise, go to step 711.
  • Step 706 Escape.
  • Step 707 Initialize communication with the SMS gateway, and use the Bind command to perform communication binding.
  • Step 708 Send a text message.
  • Step 709 Determine whether the short message transmission is successful. If yes, go to step 711. Otherwise, go to step 710.
  • Step 710 Resending the timeout, and returning to step 707.
  • step 708 step 709, and step 710
  • the submit command is used to send the short message, and then the current execution status information of the short message is parsed by reading the Report command, and it is determined whether the short message is sent successfully. If the short message is sent unsuccessfully, the reliability is ensured.
  • the timeout period can be set to 5 minutes or other values.
  • the number of retransmissions can be set to 3 times or other values.
  • Step 711 Determine whether a Deliver command is received. If yes, go to step 712. Otherwise, go to step 713.
  • Step 712 Receive a text message.
  • step 711 and step 712 the Ddiver_Resp command is firstly sent to the SMS gateway, and then the short message content is extracted, the code is parsed, the short message content is parsed, and the short message command is responded.
  • Step 713 Thread maintenance.
  • the embedded device in the process of implementing wireless data transmission and short message sending and receiving in parallel by using an embedded device, the embedded device establishes a connection with the Internet; and the embedded device communicates with the data terminal and the short message terminal respectively through the Internet.
  • the The network forwards the data flow between the embedded device and the data terminal through the TCP/IP channel, and forwards the short message between the embedded device and the short message terminal through the TCP/IP channel. Therefore, the embodiment of the present invention is applicable to a scenario in which wireless network transmission is required to be uninterruptible in wireless network monitoring, and a short message prompt is required.
  • the wireless data transmission and the short message sending and receiving are realized in parallel.
  • the embedded device In the process of implementing the wireless data transmission and the short message transmission and reception in parallel by using the embedded device, the embedded device establishes a connection with the Internet; the embedded device communicates with the data terminal and the short message terminal respectively through the Internet, wherein The Internet forwards the data flow between the embedded device and the data terminal through a TCP/IP channel, and forwards the short message between the embedded device and the short message terminal through a TCP/IP channel. Therefore, the embodiment of the present invention is applicable to wireless network monitoring, requires wireless data transmission to be uninterruptible, and requires a short message prompting scenario, thereby implementing parallel data transmission and text messaging.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明涉及了一种实现无线数据传输与短信收发并行的方法,该方法包括:嵌入式设备与因特网建立连接;所述嵌入式设备通过因特网分别与数据终端和短信终端进行通信,其中,所述因特网通过TCP/IP信道转发所述嵌入式设备与数据终端之间的数据流,且通过TCP/IP信道转发所述嵌入式设备与短信终端之间的短信。应用本发明,实现了无线数据传输与短信收发并行,适用于无线网络监控中,要求无线数据传输不可中断,同时又需要短信提示的场景。

Description

实现无线数据传输与短信收发并行的方法、 系统及设备 技术领域
本发明涉及无线通信领域, 特别是一种实现无线数据传输与短信收发 并行的方法、 系统及设备。 背景技术
随着无线通信技术的发展和移动终端设备的大量应用, 拓展了人们关 于网络应用的思路, 除了传统的有线网络外, 还可以通过无线调制解调器
( MODEM )、 手机上网等方式随时随地的接入无线网络。
无线网络的快速发展给远程监控提供了一种新的无线组网监控方式。 在无线组网的实现方法上, 一般都会使用无线 MODEM提供无线网络的接 入。 最终的成品提供给用户的只会是一个固定的接口模式(如 RS232 )。 由 于用户接口只有一个, 同时 MODEM只能工作在数据模式或命令模式中的 一种模式下, 所以 , 对于 MODEM的控制和通过 MODEM进行数据传输从 设备资源上讲是很难实现并存的, 从而可能对无线组网监控领域和一些无 线数据传输不可中断, 同时又需要短信提示的应用场景造成限制。
当此,有些 MODEM厂家进行改进,提供了在数据模式下能够接收 AT 指令的 MODEM。 但是, 在进行拨号上网的过程中, 需要用户自己编写传 输控制 /网际协议 ( Transfer Control Protocol/Internet Protocol, TCP/IP )协议 栈和点对点协议(Point to point protocol, PPP )协议栈, 这就局限了嵌入式 系统在无线组网领域的应用。 针对 TCP/IP协议栈和 PPP协议栈的问题, 也 有 MODEM厂家从用户的角度进行了定制开发,在其生产的 MODEM内部 集成了 TCP/IP协议栈和 PPP协议栈, 通过提供厂家定制 AT指令的方式提 供 PPP拨号上网的接口给用户。 但由于 AT指令标准中并没有对厂家定制 AT指令的要求, 各厂家提供给用户的 AT指令是没有一个统一的规范的。 现有技术中有一种基于短信与通用分组无线业务 /码分多址接入 ( General Packet Radio Service/Code Division Multiple Access,
GPRS/CDMA ) 的基站动力与环境监控装置, 其采用短信与 GPRS/CDMA 互相切换的方式实现。通过短信提示 GPRS建立链路, GPRS数据传输结束 后断开 GPRS连接, 重新进入短信模式。
可以看出, 现有技术中无线数据传输和短信控制无法共存。 发明内容
本发明实施例提供一种实现无线数据传输与短信收发并行的方法、 系 统及设备, 用以解决现有技术中无线 MODEM唯一的用户接口和互斥的工 作模式较难实现无线数据传输和短信控制共存的问题。
本发明实施例提供的一种实现无线数据传输与短信收发并行的方法包 括:
嵌入式设备与因特网建立连接;
所述嵌入式设备通过因特网分别与数据终端和短信终端进行通信, 其 中, 所述因特网通过 TCP/IP信道转发所述嵌入式设备与数据终端之间的数 据流, 且通过 TCP/IP信道转发所述嵌入式设备与短信终端之间的短信。
本发明实施例提供的一种实现无线数据传输与短信收发并行的系统包 括:
嵌入式设备, 设置为启动两个独立的线程分别控制无线数据传输和短 信收发, 经过因特网, 通过 TCP/IP信道与数据终端进行无线数据传输, 且 与短信终端进行短信收发;
因特网, 设置为通过 TCP/IP信道转发所述嵌入式设备与数据终端之间 的数据流,且通过 TCP/IP信道转发所述嵌入式设备与短信终端之间的短信; 数据终端, 设置为通过 TCP/IP信道, 经过因特网, 与嵌入式设备进行 无线数据传输;
短信网关, 设置为与嵌入式设备根据网关协议进行交互;
短信网络, 设置为将短信网关与短信终端相互连接;
短信终端, 设置为通过短信网络和短信网关, 以及 TCP/IP信道, 经过 因特网, 与嵌入式设备进行短信收发。
本发明实施例提供的一种嵌入式设备, 包括:
第一控制单元, 设置为启动控制无线数据传输的线程, 经过因特网, 通过 TCP/IP信道与数据终端进行无线数据传输;
第二控制单元, 设置为启动控制短信收发的线程, 经过因特网, 通过
TCP/IP信道与短信终端进行短信收发;
接口单元, 设置为连接第一控制单元与无线 MODEM, 且, 连接第二 控制单元与无线 MODEM;
无线 MODEM, 设置为将所述嵌入式设备与因特网建立连接。
通过以上技术方案可知, 本发明实施例利用嵌入式设备实现无线数据 传输与短信收发并行的过程中, 嵌入式设备与因特网建立连接; 所述嵌入 式设备通过因特网分别与数据终端和短信终端进行通信, 其中, 所述因特 网通过 TCP/IP信道转发所述嵌入式设备与数据终端之间的数据流, 且通过 TCP/IP信道转发所述嵌入式设备与短信终端之间的短信。 因此, 本发明实 施例适用于无线网络监控中, 要求无线数据传输不可中断, 同时又需要短 信提示的场景, 实现了无线数据传输与短信收发并行。 附图说明
图 1为本发明系统实施例一的结构示意图;
图 2为本发明系统实施例二的结构示意图;
图 3为本发明实施例的嵌入式设备的结构示意图;
图 4为本发明方法的具体实施例的流程示意图; 图 5为本发明实施例的无线监控进程的流程示意图;
图 6为本发明实施例的无线网络监控线程的流程示意图;
图 7为本发明实施例的短信监控线程的流程示意图。 具体实施方式
在本发明实施例中, 利用嵌入式设备实现无线数据传输与短信收发并 行的过程中, 嵌入式设备与因特网建立连接; 所述嵌入式设备通过因特网 分别与数据终端和短信终端进行通信, 其中, 所述因特网通过 TCP/IP信道 转发所述嵌入式设备与数据终端之间的数据流, 且通过 TCP/IP信道转发所 述嵌入式设备与短信终端之间的短信。
图 1为本发明系统实施例一的结构示意图。
参见图 1所示, 本发明实施例的系统包括嵌入式设备 11、 因特网 12、 数据终端 13、 短信网关 14、 短信网络 15和短信终端 16; 其中,
嵌入式设备 11 , 设置为启动两个独立的线程分别控制无线数据传输和 短信收发, 经过因特网 12, 通过 TCP/IP信道与数据终端 13进行无线数据 传输, 且与短信终端 16进行短信收发;
因特网 12, 设置为通过 TCP/IP信道转发所述嵌入式设备 11与数据终 端 13之间的数据流, 且通过 TCP/IP信道转发所述嵌入式设备 11与短信终 端 16之间的短信;
数据终端 13, 设置为通过 TCP/IP信道, 经过因特网 12, 与嵌入式设 备 11进行无线数据传输;
短信网关 14, 设置为与嵌入式设备 11根据网关协议进行交互; 短信网络 15, 设置为将短信网关 14与短信终端 16相互连接; 短信终端 16, 设置为通过短信网络 15和短信网关 14, 以及 TCP/IP信 道, 经过因特网 12, 与嵌入式设备 11进行短信收发。
参见图 2所示, 本发明实施例可以适用于基于联通的 GPRS网络进行 无线组网监控, 采用专网接入点名称( Access Point Name, APN ) 的方式, 由联通公司为系统专门分配一个专网 APN, 并开通相应的监听端口和开放 短信网关协议, 使系统 IP地址静态分配。 嵌入式设备与远程后台的通讯协 议采用标准的 1104通讯协议, 与联通短信网关的通讯协议采用中国联通短 信网关协议 SGIP1.2。
下面对基于联通的 GPRS网络进行无线组网监控的系统进行详细描述, 需要说明的是, 本发明中所述的嵌入式设备与短信终端之间的交互均是通 过短信网关进行的。
嵌入式设备 11接入 GPRS网络 21 , PPP拨号连接发出 GPRS登录请求, 请求中包括联通公司提供的专网 APN, 根据请求中的 APN, GPRS服务支 持节点( Servicing GPRS Support Node, SGSN )22从域名系统( Domain Name System, DNS )服务器中查询到对应的 GPRS支持节点网关( Gateway GPRS Support Node, GGSN ) 23 , 并将用户请求发送给 GGSN23 , GGSN23将用户 认证信息通过专线送至远程用户拨号认证系统进行认证, 并得到携带用户 地址的确认信息, 最终经过认证后连上因特网 12。 因特网 12通过 TCP/IP 信道转发所述嵌入式设备 11与数据终端 13之间的数据流, 且通过 TCP/IP 信道转发所述嵌入式设备 11与短信网关 14之间的短信。 短信网关 14通过 短信网络 15与短信终端 16进行短信收发。
图 3为本发明实施例的嵌入式设备的结构示意图。
参见图 3所示, 本发明实施例的嵌入式设备包括: 第一控制单元 31、 第二控制单元 32、 接口单元 33和无线 MODEM34; 其中,
第一控制单元 31 , 设置为启动控制无线数据传输的线程, 经过因特网 12, 通过 TCP/IP信道与数据终端 13进行无线数据传输;
第二控制单元 32, 设置为启动控制短信收发的线程, 经过因特网 12, 通过 TCP/IP信道与短信终端 16进行短信收发; 接口单元 33, 设置为连接第一控制单元 31与无线 MODEM34, 且, 连 接第二控制单元 32与无线 MODEM34;
无线 MODEM34, 设置为将所述嵌入式设备 11与因特网 12建立连接。 图 4为本发明方法的具体实施例的流程示意图。
参见图 4所示, 本发明实施例的方法包括如下步驟:
步驟 401 : 嵌入式设备与因特网建立连接。
这里, 将 Linux系统中的 TCP/IP协议栈和 PPP模块移植到所述嵌入式 设备的核心处理器, 其中, 所述 PPP模块包含 PPP协议栈, 因此, 所述嵌 入式设备获取配置的用于连接因特网所需要的 TCP/IP协议栈和 PPP协议 栈、 用于连接因特网所需要的脚本文件。 所述嵌入式设备使用安装好的交 叉编译器交叉编译 PPPD和 chat模块, 生成可执行程序, 获取 PPP协议栈 的上层应用。 所述嵌入式设备启动 PPPD进程, 由 PPPD进程按照所述脚本 文件定义的控制流程进行拨号上网操作。
步驟 402:所述嵌入式设备通过因特网分别与数据终端和短信终端进行 通信, 其中, 所述因特网通过 TCP/IP信道转发所述嵌入式设备与数据终端 之间的数据流, 且通过 TCP/IP信道转发所述嵌入式设备与短信终端之间的 短信。
这里, 所述嵌入式设备与所述数据终端根据现有协议或自定义的协议 进行无线数据传输。 所述嵌入式设备与短信网关根据运营商制定的短信网 关协议进行交互 , 由短信网关通过短信网络与所述短信终端进行短信收发。 所述嵌入式设备通过启动两个独立的线程分别控制自身与数据终端的无线 数据传输, 以及自身与短信终端的短信收发。
所述嵌入式设备通过 TCP/IP信道转发其与短信终端之间的短信, 包括 所述嵌入式设备与短信网关通讯初始化, 使用 Bind命令将所述嵌入式设备 与短信网关进行通讯绑定; 所述嵌入式设备判断是否有短信待发送或待接 收, 如果是, 则进行短信发送或接收, 否则, 进入维护阶段。 在进行短信 收发之前, 要先判断所述嵌入式设备的 IP地址是否改变, 如果是, 则所述 嵌入式设备重新注册 IP地址, 否则, 直接进行短信收发控制。 在短信收发 过程中, 所述嵌入式设备需要将短信内容的编码格式转换成短信网关支持 的编码格式。
图 5为本发明实施例的无线监控进程的流程示意图。
参见图 5所示, 本发明实施例的无线监控进程包括以下步驟: 步驟 501: 无线监控进程初始化,包括与无线 MODEM通信的串口设备 初始化, 内部緩沖区初始化等。
步驟 502: 无线 MODEM初始化。
步驟 503: 启动 PPPD进程。
步驟 504: 拨号连接。
步驟 503和步驟 504, PPPD进程按照 gprs脚本文件定义的控制流程进 行拨号上网操作,脚本文件中进行了掉线重连设置,所以 PPPD进程会在拨 号不成功或掉线后自动进行重新连接。
步驟 505: 判断拨号连接是否成功, 如果是, 则执行步驟 506, 否则, 返回步驟 504。
步驟 506: 启动无线网络监控线程。
步驟 507: 启动短信监控线程。
步驟 508: 进入无线监控进程维护状态。
由于采用专网 APN的方式,每次拨号连接时 IP地址都会固定。拨号连 接成功后, 先后启动无线网络监控线程和短信监控线程, 然后进入本进程 的维护状态。
图 6为本发明实施例的无线网络监控线程的流程示意图。
参见图 6所示, 本发明实施例的无线网络监控线程包括以下步驟: 步驟 601 : 无线网络监控线程初始化, 包括 IP地址绑定, 监听端口设 置, 内部緩沖区初始化等。
步驟 602: 判断 IP地址是否改变, 如果是, 则执行步骤 603 , 否则直接 执行步驟 605。
步驟 603: 重新初始化 socket。
步驟 604: 注册 IP地址。
步驟 605: 处理新连接。
这里,如果新连接的远端 IP地址和主动告警的远端 IP地址一致, 则断 开主动告警链路, 采用新连接建立的链路。 这样做是为了将链路控制权交 到远程后台处, 适用于一个远程后台监控多个电源设备的场景。
步驟 606: 判断是否有数据待接收, 如果是, 则执行步驟 607, 否则, 执行步驟 609。
步驟 607: 接收数据。
步驟 608: 处理数据。 执行步骤 610
步驟 609: 主动告警处理。
步驟 610: 判断是否有数据待发送, 如果是, 则执行步驟 611 , 否则, 执行步驟 612。
步骤 611 : 发送数据。
步驟 612: 记录处理并输出一些必要的调试信息。
步驟 613: 线程维护。
图 7为本发明实施例的短信监控线程的流程示意图。
参见图 7所示, 本发明实施例的短信监控线程包括以下步骤: 步驟 701 : 短信监控线程初始化, 包括 socket初始化、 内部緩沖区初始 化等。
步驟 702: 判断 IP地址是否改变, 如果是, 则执行步骤 703 , 否则, 执 行步驟 705。
步驟 703: 重新初始化 socket。
步驟 704: 注册 IP地址。
步驟 705: 判断是否有短信待发送, 如果是, 则执行步驟 706, 否则, 执行步驟 711。
步驟 706: 换码。
步驟 707: 与短信网关通讯初始化, 使用 Bind命令进行通讯绑定。 步驟 708: 发送短信。
步驟 709: 判断短信发送是否成功, 如果是, 则执行步驟 711 , 否则, 执行步驟 710。
步驟 710: 超时重发, 返回步驟 707。
这里, 在步驟 708、 步驟 709与步驟 710中, 使用 Submit命令进行短 信发送, 接着通过读取 Report命令解析出短信当前执行状态信息, 判断短 信发送是否成功, 如果短信发送不成功, 为了保证可靠性进入短信超时重 发流程, 超时时间可设置为 5分钟或其他数值, 重发次数可设置为 3次或 其他数值。
步驟 711 : 判断是否收到传输(Deliver )命令, 如果是, 则执行步驟 712, 否则, 执行步驟 713。
步驟 712: 接收短信。
在步驟 711与步驟 712中, 首先回应 Ddiver_Resp命令给短信网关, 然后提取短信内容, 换码, 解析短信内容, 并响应短信命令。
步驟 713: 线程维护。
通过以上技术方案可知, 本发明实施例利用嵌入式设备实现无线数据 传输与短信收发并行的过程中, 嵌入式设备与因特网建立连接; 所述嵌入 式设备通过因特网分别与数据终端和短信终端进行通信, 其中, 所述因特 网通过 TCP/IP信道转发所述嵌入式设备与数据终端之间的数据流, 且通过 TCP/IP信道转发所述嵌入式设备与短信终端之间的短信。 因此, 本发明实 施例适用于无线网络监控中, 要求无线数据传输不可中断, 同时又需要短 信提示的场景。 实现了无线数据传输与短信收发并行。
显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离 本发明的精神和范围。 这样, 倘若对本发明的这些修改和变型属于本发明 权利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型 在内。 工业实用性 本发明实施例利用嵌入式设备实现无线数据传输与短信收发并行的过 程中, 嵌入式设备与因特网建立连接; 所述嵌入式设备通过因特网分别与 数据终端和短信终端进行通信, 其中, 所述因特网通过 TCP/IP信道转发所 述嵌入式设备与数据终端之间的数据流, 且通过 TCP/IP信道转发所述嵌入 式设备与短信终端之间的短信。 因此, 本发明实施例适用于无线网络监控 中, 要求无线数据传输不可中断, 同时又需要短信提示的场景, 实现了无 线数据传输与短信收发并行。

Claims

权利要求书
1、一种实现无线数据传输与短信收发并行的方法,其中, 该方法包括: 嵌入式设备与因特网建立连接; 中, 所述因特网通过 TCP/IP信道转发所述嵌入式设备与数据终端之间的数 据流, 且通过 TCP/IP信道转发所述嵌入式设备与短信终端之间的短信。
2、 如权利要求 1所述的方法, 其中, 所述嵌入式设备与因特网建立连 接为:
嵌入式设备获取配置的用于连接因特网所需要的 TCP/IP协议栈和 PPP 协议栈、 用于连接因特网所需要的脚本文件, 以及获取 PPP协议栈的上层 应用;
嵌入式设备启动 PPPD进程,由 PPPD进程按照所述脚本文件定义的控 制流程进行拨号上网操作。
3、 如权利要求 2所述的方法, 其中, 所述嵌入式设备获取配置的用于 连接因特网所需要的 TCP/IP协议栈和 PPP协议栈为:
将 Linux系统中的 TCP/IP协议栈和 PPP模块移植到所述嵌入式设备的 核心处理器, 其中, 所述 PPP模块包含 PPP协议栈。
4、 如权利要求 2所述的方法, 其中, 所述获取 PPP协议栈的上层应用 为:
所述嵌入式设备使用安装好的交叉编译器交叉编译 PPPD和 chat模块, 生成可执行程序。
5、 如权利要求 1所述的方法, 其中, 所述嵌入式设备与所述数据终端 根据现有协议或自定义的协议进行无线数据传输。
6、 如权利要求 1所述的方法, 其中, 所述嵌入式设备与短信网关根据 运营商制定的短信网关协议进行交互, 由短信网关通过短信网络与所述短 信终端进行短信收发。
7、 如权利要求 5和 6所述的方法, 其中, 所述嵌入式设备通过启动两 个独立的线程分别控制自身与数据终端的无线数据传输, 以及自身与短信 终端的短信收发。
8、 如权利要求 1所述的方法, 其中, 所述嵌入式设备通过 TCP/IP信 道转发其与短信终端之间的短信为:
所述嵌入式设备与短信网关通讯初始化, 使用 Bind命令将所述嵌入式 设备与短信网关进行通讯绑定;
所述嵌入式设备判断是否有短信待发送或待接收, 如果是, 则进行短 信发送或接收, 否则, 进入维护阶段。
9、 如权利要求 8所述的方法, 其中, 所述嵌入式设备通过 TCP/IP信 道转发其与短信终端之间的短信为:
判断所述嵌入式设备的 IP地址是否改变, 如果是, 则所述嵌入式设备 重新注册 IP地址, 否则, 直接进行短信收发控制。
10、 如权利要求 8所述的方法, 其中, 所述嵌入式设备通过 TCP/IP信 道转发其与短信终端之间的短信为:
将短信内容的编码格式转换成短信网关支持的编码格式。
11、 一种实现无线数据传输与短信收发并行的系统, 其中, 该系统包 括:
嵌入式设备, 设置为启动两个独立的线程分别控制无线数据传输和短 信收发, 经过因特网, 通过 TCP/IP信道与数据终端进行无线数据传输, 且 与短信终端进行短信收发;
因特网, 设置为通过 TCP/IP信道转发所述嵌入式设备与数据终端之间 的数据流,且通过 TCP/IP信道转发所述嵌入式设备与短信终端之间的短信; 数据终端, 设置为通过 TCP/IP信道, 经过因特网, 与嵌入式设备进行 无线数据传输;
短信网关, 设置为与嵌入式设备根据网关协议进行交互;
短信网络, 设置为将短信网关与短信终端相互连接;
短信终端, 设置为通过短信网络和短信网关, 以及 TCP/IP信道, 经过 因特网, 与嵌入式设备进行短信收发。
12、 一种嵌入式设备, 其中, 该嵌入式设备包括:
第一控制单元, 设置为启动控制无线数据传输的线程, 经过因特网, 通过 TCP/IP信道与数据终端进行无线数据传输;
第二控制单元, 设置为启动控制短信收发的线程, 经过因特网, 通过 TCP/IP信道与短信终端进行短信收发;
接口单元, 设置为连接第一控制单元与无线 MODEM, 且, 连接第二 控制单元与无线 MODEM;
无线 MODEM, 设置为将所述嵌入式设备与因特网建立连接。
PCT/CN2012/077262 2011-06-20 2012-06-20 实现无线数据传输与短信收发并行的方法、系统及设备 WO2012175024A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110165881.9 2011-06-20
CN2011101658819A CN102843388A (zh) 2011-06-20 2011-06-20 实现无线数据传输与短信收发并行的方法、系统及设备

Publications (1)

Publication Number Publication Date
WO2012175024A1 true WO2012175024A1 (zh) 2012-12-27

Family

ID=47370448

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077262 WO2012175024A1 (zh) 2011-06-20 2012-06-20 实现无线数据传输与短信收发并行的方法、系统及设备

Country Status (2)

Country Link
CN (1) CN102843388A (zh)
WO (1) WO2012175024A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104066064A (zh) * 2014-06-26 2014-09-24 深圳市东信时代信息技术有限公司 基于并发的短信网关分布式控制系统及方法

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015070422A1 (zh) * 2013-11-14 2015-05-21 华为终端有限公司 一种建立数据业务链路的方法和设备
CN107273321A (zh) * 2016-04-08 2017-10-20 上海大潮电子技术有限公司 车载调度终端设备及车载调度终端设备的串口复用方法
CN110611892B (zh) * 2019-11-04 2021-09-10 福州汇思博信息技术有限公司 一种Modem短信上报的方法、装置、系统、设备和介质
CN111726763A (zh) * 2020-06-18 2020-09-29 深圳市诚立业科技发展有限公司 一种无线数据传输短信的方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756161A (zh) * 2004-09-28 2006-04-05 华为技术有限公司 设备远程维护系统及方法
CN101127992A (zh) * 2007-09-20 2008-02-20 中兴通讯股份有限公司 多业务并发执行的实现方法及实现该方法的移动终端
CN101132646A (zh) * 2007-09-10 2008-02-27 保定市天河电子技术有限公司 无线网络信号监测方法、装置及系统
CN101374053A (zh) * 2007-08-22 2009-02-25 上海基信通讯技术有限公司 无线上网卡实现多通道以达到多任务同时并行执行的方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100797701B1 (ko) * 2002-07-25 2008-01-23 엘지노텔 주식회사 사설 교환 시스템에서 sms 서비스를 이용하기 위한방법 및 장치
CN100502445C (zh) * 2003-12-31 2009-06-17 深圳市朗科科技股份有限公司 一种无线数据通信方法及装置
CN1649443A (zh) * 2005-02-05 2005-08-03 上海贝豪通讯电子有限公司 实现同时通话、收发短信息和收发彩信的方法
CN100459772C (zh) * 2006-07-04 2009-02-04 北京航空航天大学 基于gsm和cdma短消息的双模无线控制器
CN101001409A (zh) * 2006-12-22 2007-07-18 周南 一种基于短消息服务的交通信息及道路导航的查询方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756161A (zh) * 2004-09-28 2006-04-05 华为技术有限公司 设备远程维护系统及方法
CN101374053A (zh) * 2007-08-22 2009-02-25 上海基信通讯技术有限公司 无线上网卡实现多通道以达到多任务同时并行执行的方法
CN101132646A (zh) * 2007-09-10 2008-02-27 保定市天河电子技术有限公司 无线网络信号监测方法、装置及系统
CN101127992A (zh) * 2007-09-20 2008-02-20 中兴通讯股份有限公司 多业务并发执行的实现方法及实现该方法的移动终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104066064A (zh) * 2014-06-26 2014-09-24 深圳市东信时代信息技术有限公司 基于并发的短信网关分布式控制系统及方法

Also Published As

Publication number Publication date
CN102843388A (zh) 2012-12-26

Similar Documents

Publication Publication Date Title
US8856290B2 (en) Method and apparatus for exchanging configuration information in a wireless local area network
US9774704B2 (en) Home gateway, cloud server, and method for communication therebetween
WO2017045276A1 (zh) 终端互联方法、装置和存储介质
WO2018071773A2 (en) Enabling multicast for service layer group operation
EP2853082A1 (en) Devices and methods for facilitating direct pairing in a wireless docking system
WO2013143352A1 (zh) 无线网络连接的建立方法及终端设备
WO2017215215A1 (zh) 一种切换下载方式的方法、及其控制方法与控制系统
KR102258608B1 (ko) 홈 네트워크 서비스를 제공하기 위한 장치 및 그 방법
CN108632798A (zh) 一种物联家电设备快速绑定方法、系统及相关装置
WO2013071709A1 (zh) 支持以3G及Wi-Fi方式接入网络的无线宽带数据卡
US20150249946A1 (en) Network connection method and device supporting same
WO2012175024A1 (zh) 实现无线数据传输与短信收发并行的方法、系统及设备
JP2016206940A (ja) 情報処理装置及びその制御方法、並びにプログラム
WO2015000379A1 (zh) 空调器的远程控制方法和空调器的远程控制系统
JP2010509833A (ja) コンテンツプッシュサービス提供装置およびその方法、そのための移動端末およびその運用方法
EP2687000A1 (en) Hybrid networking simple-connect setup via proxy device
WO2011091667A1 (zh) 一种数据卡及其快速建立拨号连接的方法
EP2693691B1 (en) Method and apparatus for initializing gateway in device management system
US10070289B1 (en) Client association for provisioning devices in a communication network
WO2014179972A1 (zh) 一种传输数据的方法、装置及系统
CN111884938B (zh) 路由器信息采集方法及装置
WO2013185696A2 (zh) 一种数据处理的方法与设备
CN104797004A (zh) 主从设备间实现自动组网的方法
EP2891299B1 (en) Systems and methods for efficient remote security panel configuration and management
CN113055971A (zh) 基于专用ssid来将智能终端接入网络的方法和装置

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

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

Country of ref document: EP

Kind code of ref document: A1