CN101488943B - Method for data transmission by wireless communication module - Google Patents

Method for data transmission by wireless communication module Download PDF

Info

Publication number
CN101488943B
CN101488943B CN2008100326621A CN200810032662A CN101488943B CN 101488943 B CN101488943 B CN 101488943B CN 2008100326621 A CN2008100326621 A CN 2008100326621A CN 200810032662 A CN200810032662 A CN 200810032662A CN 101488943 B CN101488943 B CN 101488943B
Authority
CN
China
Prior art keywords
data
wireless communication
communication module
state
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2008100326621A
Other languages
Chinese (zh)
Other versions
CN101488943A (en
Inventor
曾垂喜
张栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Simcom Wireless Solutions Co Ltd
Original Assignee
Shanghai Simcom Ltd
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 Shanghai Simcom Ltd filed Critical Shanghai Simcom Ltd
Priority to CN2008100326621A priority Critical patent/CN101488943B/en
Publication of CN101488943A publication Critical patent/CN101488943A/en
Application granted granted Critical
Publication of CN101488943B publication Critical patent/CN101488943B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

A wireless communication module data transmission method comprises following steps: 1) a wireless communication module connecting a GPRS network, detecting whether a serial port enters a state of data channel; 2) the wireless communication module configuring a data channel parameter under the state of data channel; 3) the wireless communication module using a serial port pin to judge whether a prior asynchronous event arrives in the data transmission process under the state of data channel, if so, then switching to the process of preferentially processing the asynchronous event; 4) when finishing the data transmission, the wireless communication module switching to a state of command channel, at the same time, disconnecting the GPRS connection and stopping the data transmission. The wireless communication module of this invention provides two data transmission channels, each of which processes different functions, respectively, thereby realizing the high reliability, stability and real-time of the data transmission, and with excellent error processing method.

Description

The method of wireless communication module transfer of data
Technical field
The present invention relates to a kind of method of wireless communication module transfer of data, particularly relate to wireless communication module data in real time transparent transmission.
Background technology
Along with the global mobile communication technology rapid development, the wireless communication module data transmission service has been applied to every field now, as electricity meter-reading, monitoring of environment, the monitoring of industrial or agricultural letter feelings, vehicle monitoring management etc.Yet, though the data transmission service of traditional wireless communication module provides data-transformation facility, order data and the same passage of non-order data sharing during owing to transfer of data, thereby reliability of data transmission and poor stability, ageing hysteresis.And receive data and for example send a telegram here, come after the note isopreference asynchronous event, serial ports output will be disturbed the correct reading of data of MCU (microprocessor), send data simultaneously and also can have similar problem.If module is made mistakes, there is uncontrollable possibility in interval and the number of times that retransmits of makeing mistakes, and cumulative retransmission mechanism also may lose efficacy.
Summary of the invention
The method that the purpose of this invention is to provide the transmission of the real-time transparent data of a kind of wireless communication module, the data-transformation facility of the wireless communication module that this method realizes have reliably, stable, real-time and good characteristics such as error handling processing mechanism.
The objective of the invention is to be achieved through the following technical solutions:
A kind of method of wireless communication module transfer of data, its characteristics are that it may further comprise the steps:
1) wireless communication module connects GPRS network, detects serial ports and whether can enter state of data channel;
2) if can enter state of data channel, then go forward side by side line data transmission of configuration data channel parameters, otherwise, enter the command channel state;
3) in the data transmission procedure, utilize serial port pin to judge whether that preferential asynchronous event arrives, if having, then switches to priority treatment asynchronous event flow process under the state of command channel;
4), judge whether that then transfer of data finishes if there is not the priority treatment asynchronous event.If then wireless communication module switches back under the state of command channel, disconnect connection simultaneously, stop transfer of data; Otherwise, continue transfer of data.
Wherein, the priority treatment asynchronous event flow process in this step 3) may further comprise the steps:
1) this wireless communication module switches to the command channel state from state of data channel, handles this asynchronous event;
2) handle this asynchronous event after, from the order channel status switches back state of data channel, and the continuation transfer of data.
Wherein, this asynchronous event comprises and calls or come note etc. to need the thing of priority treatment.
Wherein, this configuration data channel parameters comprises the length and the transmission frequency of configuration data bag, regularly fixed length transmission, and packet is at the number of retransmissions of makeing mistakes of protocol layer.
Positive progressive effect of the present invention is: wireless communication module provides two kinds of data transmission channels, and each passage is handled different functions respectively.Thereby realized high reliability, stability and the real-time of transfer of data, and had good error handling processing mechanism.
Description of drawings
Fig. 1 is the flow chart of wireless communication module data in real time transparent transmission of the present invention.
Fig. 2 is the flow chart of wireless communication module priority treatment asynchronous event of the present invention.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail.
Wireless communication module of the present invention provides two kinds of data transmission channels, comprises command channel and data channel.The command channel is the general passage of wireless communication module, can normally use various operations as coming note etc. under this passage; Data channel is the designated lane that module realizes real-time transparent data transmission, the serial ports that detects module as MCU is under the state of data channel, all serial ports outputs are as the data that receive packet under this channel status, and the serial ports input is as the data that send packet.
As shown in Figure 1, this figure is the flow chart of wireless communication module data in real time transparent transmission, this figure has realized GPRS (General Packet Radio Service, GPRS) connection and disconnection, come the processing of asynchronous events such as note, the mutual switching of two kinds of transmission channels of module, the functions such as parameter configuration under the state of data channel.
Step 101, when wireless communication module initiatively or passive set up GPRS and connect after, detect serial ports and whether can enter under the state of data channel and move.
Step 102, module under the data channel pattern, length and transmission frequency that can the configuration data bag, regularly fixed length transmission, and can configuration data wrap in the number of retransmissions of makeing mistakes of protocol layer.
Step 103, module is under data channel in the data transmission procedure, utilize serial port pin to judge whether that incoming call or note isopreference asynchronous event arrive, and can switch under the state of step 106 command channel the priority treatment note of sending a telegram here at any time, module can be switched back under the state of data channel and continue transfer of data after the asynchronous event of finishing dealing with.
After the transmission of step 104 module data was finished, module can be switched back under the state of command channel, and execution in step 105 disconnects GPRS and connects, and stops data-transformation facility; Otherwise, continue step 103 and carry out transfer of data.
As shown in Figure 2, this figure switches after the wireless communication module priority treatment asynchronous event to get back to the flow chart of data channel.This figure can gain state of data channel in command channel state incision.
Idiographic flow is as follows:
Step 201, module run into incoming call or come asynchronous event such as note in data transmission procedure, module switches under the state of command channel under state of data channel.
Step 202, priority treatment are sent a telegram here or are come note;
Step 203, module in the process of command channel, finish dealing with incoming call or come asynchronous event such as note after, module gains under the state of data channel from the incision of order channel status, execution in step 204 continues the data channel transmission.
Though more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, under the prerequisite that does not deviate from principle of the present invention and essence, can make numerous variations or modification to these execution modes.Therefore, protection scope of the present invention is limited by appended claims.

Claims (3)

1. the method for a wireless communication module transfer of data is characterized in that, it may further comprise the steps:
1) wireless communication module connects GPRS network, detects serial ports and whether can enter state of data channel;
2) if can enter state of data channel, then go forward side by side line data transmission of configuration data channel parameters, otherwise, enter the command channel state;
3) in the data transmission procedure, utilize serial port pin to judge whether that preferential asynchronous event arrives, if having, then switches to priority treatment asynchronous event flow process;
4) after transfer of data was finished, this wireless communication module switched back under the state of command channel, disconnected GPRS network simultaneously and connected, and stopped transfer of data;
Wherein the priority treatment asynchronous event flow process in the step 3) may further comprise the steps:
(1) this wireless communication module switches to the command channel state from state of data channel, handles this asynchronous event;
(2) handle this asynchronous event after, switch back state of data channel from this command channel state, and continue transfer of data.
2. the method for wireless communication module transfer of data according to claim 1 is characterized in that,
This asynchronous event comprises calls or comes note.
3. according to the method for each described wireless communication module transfer of data of claim 1-2, it is characterized in that, described configuration data channel parameters comprises the length and the transmission frequency of configuration data bag, regularly fixed length transmission, and packet is at the number of retransmissions of makeing mistakes of protocol layer.
CN2008100326621A 2008-01-15 2008-01-15 Method for data transmission by wireless communication module Expired - Fee Related CN101488943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100326621A CN101488943B (en) 2008-01-15 2008-01-15 Method for data transmission by wireless communication module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100326621A CN101488943B (en) 2008-01-15 2008-01-15 Method for data transmission by wireless communication module

Publications (2)

Publication Number Publication Date
CN101488943A CN101488943A (en) 2009-07-22
CN101488943B true CN101488943B (en) 2011-12-21

Family

ID=40891624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100326621A Expired - Fee Related CN101488943B (en) 2008-01-15 2008-01-15 Method for data transmission by wireless communication module

Country Status (1)

Country Link
CN (1) CN101488943B (en)

Also Published As

Publication number Publication date
CN101488943A (en) 2009-07-22

Similar Documents

Publication Publication Date Title
CN100561977C (en) Fast rerouting method during a kind of a plurality of ports share transmission link
CN101984606A (en) Device-level redundancy protection method and system based on LACP
CN101588298A (en) Method for switching flow in stacking system and stacking system
CN102857956A (en) Master-slave communication method and device
CN101355466A (en) Method and apparatus for transmitting continuous check information message
CN106685486A (en) Multi-user duplex talkback system and method based on Bluetooth
CN101841432A (en) Port backup method, device and system for service access router
CN103368849A (en) OAM (Operations, Administration and Management) message processing method and device
CN102143238B (en) Communication interface, switching circuit and switching method of communication interfaces
CN103107940A (en) Redundant gateway system for device level ring networks
CN103532863A (en) Method and device for realizing software stacking
CN104427012A (en) Port negotiation method and device
CN103259687A (en) Air traffic control data access platform in civil aviation
CN101902769A (en) Single board wireless debugging method and device
CN101488943B (en) Method for data transmission by wireless communication module
CN101610217B (en) Method for implementing message transmission between extensible processor and switch chip and system thereof
CN105406972A (en) Wired and wireless switching control system and switching control method based on microcontroller
CN105337947A (en) Information diffluence conversion tool, semiconductor production system and communication method thereof
CN205283567U (en) Wired and wireless switching control system based on microcontroller
CN101753486A (en) Industrial automation field bus gateway equipment
CN1330163C (en) Wireless terminal with double mode and realization thereof
CN102571398A (en) Method and system for protecting channels among communication equipment
CN203277916U (en) A junction box
CN203277915U (en) Multifunctional communication conjunction box
CN105763412A (en) Communication method in virtual switching cluster and apparatus thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160223

Address after: 200000 Shanghai city Changning District Admiralty Road No. 633 building A Room 201

Patentee after: SIMCOM WIRELESS SOLUTIONS Ltd.

Address before: 200051 2683-K room, building B, 100 Zunyi Road, Shanghai, Changning District

Patentee before: Shanghai SIMCom Ltd.

TR01 Transfer of patent right

Effective date of registration: 20200206

Address after: 201201 room 606-a, building a, 3000 Longdong Avenue, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: LONGSUNG TECHNOLOGY (SHANGHAI) CO.,LTD.

Address before: 200000 Shanghai city Changning District Admiralty Road No. 633 building A Room 201

Patentee before: SIMCOM WIRELESS SOLUTIONS Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220406

Address after: 200335 8th floor, building 3, No. 289, Linhong Road, Changning District, Shanghai

Patentee after: SIMCOM WIRELESS SOLUTIONS Ltd.

Address before: Room 606-a, building a, 3000 Longdong Avenue, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai 201201

Patentee before: LONGSUNG TECHNOLOGY (SHANGHAI) CO.,LTD.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111221

Termination date: 20220115

CF01 Termination of patent right due to non-payment of annual fee