CN102143458A - Multi-protocol converter based on GSM (Global System for Mobile Communications) short message transmission in wireless communication network - Google Patents

Multi-protocol converter based on GSM (Global System for Mobile Communications) short message transmission in wireless communication network Download PDF

Info

Publication number
CN102143458A
CN102143458A CN2011100776610A CN201110077661A CN102143458A CN 102143458 A CN102143458 A CN 102143458A CN 2011100776610 A CN2011100776610 A CN 2011100776610A CN 201110077661 A CN201110077661 A CN 201110077661A CN 102143458 A CN102143458 A CN 102143458A
Authority
CN
China
Prior art keywords
short message
gsm
module
data
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011100776610A
Other languages
Chinese (zh)
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 Normal University
University of Shanghai for Science and Technology
Original Assignee
Shanghai Normal University
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 Normal University filed Critical Shanghai Normal University
Priority to CN2011100776610A priority Critical patent/CN102143458A/en
Publication of CN102143458A publication Critical patent/CN102143458A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a multi-protocol converter based on GSM (Global System for Mobile Communications) short message transmission in a wireless communication network, and in particular relates to a device for converting a protocol (such as Modbus/PROFIBUS (PROcess Field Bus) protocol) into a protocol for GSM short message transmission in the wireless communication network and realizing a network protocol converting function for two-way transmission of remote data, relating to the technical field of remote network connection. The multi-protocol converter comprises a main controller component, a wireless receiving and transmitting component, an LED drive circuit, a keyboard, a protective circuit and an operating power supply, wherein the main controller component is an STC12C5A16S2 module, and the wireless receiving and transmitting component is a TC35i module. Due to the procedures of initialization of the microprocessor STC12C5A16S2 module including a main program, initialization of the TC35i module, sending SMS (Short Messaging Service) short messages, interrupting receiving SMS (Short Messaging Service) short messages and the like, the two-way transmission of the remote data is realized in the real sense, and the system design is simplified, thus the system construction cost and the maintenance cost are reduced.

Description

Multiprotocol conversion device based on GSM short message transmission in the cordless communication network
Technical field
The present invention relates to telecommunication network interconnection technique field, specifically refer to a kind of agreement (as the Modbus/PROFIBUS agreement) is converted to another kind of agreement by GSM short message transmission in the cordless communication network, the equipment of the procotol translation function with relaying action of teledata transmitted in both directions is finished in realization.
Background technology
Long distance control system has two types at present, and a kind of is that the production scene does not have the on-site supervision system, but handles directly delivering to remote computer after the data acquisition; Another kind is on-site supervision and remote monitoring and deposits, and generally is that the transducer, watch-dog etc. that adopt field bus technique will be distributed in each equipment couple together.The advantage of long distance control system is: the information network (Intranet) of enterprises can be coupled together effectively with the control net by means of remote monitoring, realization is to producing, run the grasp at any time of situation, production and operation situation is combined closely with the business games of enterprise, thereby realize Enterprise automation.Can realize the real-time collection of on-the-spot service data and concentrated fast by remote monitoring, obtain the on-site supervision data, for the remote fault diagnosis technology provides material base; By remote monitoring, the technical staff need not be in the action or just can monitor and control the running status and the various parameter of production system and field apparatus in rugged environment, normal operation with service equipment, thereby reduce staff on duty, finally realize the unmanned or few man on duty of far-end, reach the purpose of personnel reduction and enlargement.More and more enterprises group is the development trend of cross-region, utilize network technology to realize remote monitoring, enterprise is reduced production costs, raise labour productivity, improve the scientific and technological content of enterprise product, and the aspects such as overall competitive strength of enhancing enterprise all has crucial meaning.
As everyone knows, the Modbus/PROFIBUS application protocol is a kind of all-purpose language on the industrial control field.By this agreement, controller each other, controller is via communicating by letter between network (for example Ethernet) and the miscellaneous equipment.It has become a universal industrial standard.It has been arranged, and the control appliance that different vendor produces can be linked to be industrial network, carries out centralized monitor.
Equally, as the GSM of global system for mobile communications, be one of main in the world cellular system.The GSM network is perfect through years of development, and very ripe now, the blind area is few, signal stabilization, and automatic roaming, and communication distance is not subjected to surrounding environment influence.Especially the GSM short message is flexible, can be trans-city, transprovincially even transnational transmission, and Short Message Service is the important service that this network provides.Users' favor has been won in its simple and efficient performance and relative cheap charge.While also provides technological means for the remote monitoring of many types, therefore utilizes SMS to realize that remote alarms, very-long-range remote control industrial equipment, transmission data are very good selections.Utilize gsm module to realize becoming important remote data transmission solution based on the transfer of data of short message.
Wherein, gsm module is a communication module that is similar to mobile phone, some functions of integrated mobile phone are on a little circuit board, it can send SMS message, and conversation or the like is though module is little, but it has possessed the function of a lot of mobile phones, have it and just equal to have had the core of mobile phone, it all has a wide range of applications in a lot of applications, and gsm module could be controlled it by using the AT instruction, module can link to each other with computer RS-232 serial ports, also can control with single-chip microcomputer.It has also opened the business of some intelligent such as international roaming etc. except standardized tabulation and signaling system are provided.The convenience of GSM mobile handset is that it provides a smart card, and people are referred to as SIM card, and the machine card can separate, and the user changes mobile phone and customization personal information this respect is all very convenient like this.
At present, control appliance of using always in the industrial control field such as PLC (Programmable Logic Controller) and RTU (remote controllers) all have RS-232/422/485 or UART-TTL standard interface circuit, but it does not have the gsm protocol interface of standard, can not carry out remote detection and control by the GSM network.
Summary of the invention
The objective of the invention is to overcome the gsm protocol interface that does not have standard that exists in the above-mentioned existing industrial control technology field, can not carry out the deficiency of remote detection and control etc. by the GSM network, propose a kind of multiprotocol conversion device based on GSM short message transmission in the cordless communication network.
A kind of multiprotocol conversion device based on GSM short message transmission in the cordless communication network of the present invention is exactly a Communication Gateway in essence, can realize and various industrial control equipment between seamless link.The serial equipment access employing standard Modbus/PROFIBUS agreement that will have RS-232/422/485 or UART-TTL interface based on the multiprotocol conversion device of GSM short message transmission in the cordless communication network, by this protocol converter, can realize the transmitted in both directions of teledata like this.Any terminal that the control information or the data of control centre can be dealt into the GSM network based on the multiprotocol conversion device of GSM short message transmission in the cordless communication network, simultaneously also can with remote collection to data transaction become the GSM data format of standard and by the GSM Network Transmission to control centre.No longer need to insert other network communication units and just can realize truly remote detection and control, thereby farthest be that the design of client's simplified system reduces system's construction cost and maintenance cost.
A kind of multiprotocol conversion device based on GSM short message transmission in the cordless communication network of the present invention, it comprises the master controller parts, wireless receiving and dispatching parts and liquid crystal display drive circuit, keyboard, protective circuit, working power.Wherein, described master controller parts are a microprocessor module, and described wireless receiving and dispatching parts are a GSM sending and receiving short messages module.
Described microprocessor module is a STC12C5A16S2 module, be integrated with keyboard and LCD liquid crystal interface, its serial ports one is designed to as RS-232/422/485 or the UART-TTL standard interface that adopts the Modbus/PROFIBUS agreement to communicate, and serial ports two is connected with GSM sending and receiving short messages module;
Described GSM sending and receiving short messages module is the TC35i module, and it is integrated with the RS-232 interface of standard, and SIM card can utilize the AT order that it is provided with.
The implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network of the present invention comprising main program, sends SMS messaging, interrupts receiving the processing of SMS messaging.
Described main program: comprise microprocessor STC12C5A16S2 module initialization program, TC35i module initialization program, button is handled, short message is handled, the data coding/decoding is handled protocol conversion.
Described microprocessor STC12C5A16S2 module initialization program comprises: it is 9600BPS that the serial ports baud rate is set, and adopts 8 asynchronous communication modes, 1 start bit, and 8 bit data positions, 1 position of rest, the no parity check position is provided with stack pointer and allows serial ports to interrupt; Also comprise the initialization of LCD liquid crystal display drive circuit, keyboard timing scan constant break period is set.
Described TC35i module initialization program comprises:
At first start the TC35i module, detect this module and whether land, as do not land, then restart the TC35i module, till this module is landed;
Send " AT " order to this module then, whether judge module loopback OK? if loopback OK, all are normal to represent this module communication, otherwise send " AT " order to this module again, till this module loopback OK;
It is PDU (Protocol Data Unit) pattern that the TC35i short messaging mode is set then, and short message service center is set, and short message is set arrives prompting automatically;
Described transmission SMS messaging comprises:
At first the GSM data format that becomes standard as Modbus/PROFIBUS protocol data format conversion to be sent.The module that sends SMS message receiving number AT+CMGS=receiving number judges whether to receive ">" sign? if receive ">" sign, expression TC35i module is working properly can to send data, and the data of having changed are gone out by the GSM Network Transmission.Judge whether then to send successfully? if send failure, then resend, send at most 3 times, if send successfully, then return; If send failure for 3 times, then put and send out mismark and return then;
If do not receive ">" sign, then repeat above-mentioned action, send at most 3 times, if 3 times send failure, then put and send out mismark and return then;
Described interruption receives SMS messaging and comprises:
At first judge whether to receive " CMTI " instruction? if receive " CMTI " instruction, then write serial ports " AT+CMGL=0 ", make module send the short message text, receive data, the GSM Data Format Transform of standard is become Modbus/PROFIBUS protocol data form, preserve the data receive and put and receive mark; For preventing because of short message in the SIM card too much no longer receives short message, after acknowledging receipt of this note, write serial ports " AT+CMGD=0 ", send the order of deletion short message, delete this note, interrupt returning.
Described button is handled and is comprised: serial port setting, baud rate setting, communication mode and communications protocol setting.
Described short message is handled and is comprised: judge at first whether short message data makes mistakes in transmission course, if data are correct, then remove information header in the short message, information tail, take out useful data, be saved in the units corresponding and go; If data are made mistakes, then put the mark of makeing mistakes of communicating by letter, require to retransmit this short message.
Described data coding/decoding is handled and is comprised: at first data are carried out the PDU coding, general PDU coding mode comprises: SMS service center address length, short message service center's type of number, short message service center's number, the file header byte, information type, called number length, the called number type, called number, protocol-identifier, data coding scheme, the term of validity, User Data Length, user data, wherein user data is the standard Modbus/PROFIBUS protocol data that needs transmission, finishes the GSM data format that Modbus/PROFIBUS protocol data format conversion becomes standard;
Otherwise, when short message arrives, take action based on the multiprotocol conversion device of GSM short message transmission in the cordless communication network, from gsm module, read short message data, the GSM Data Format Transform of standard is become Modbus/PROFIBUS protocol data form, by the protocol conversion decoding, take out the user data in the PDU coding mode, be the standard Modbus/PROFIBUS protocol data that was transmitted originally.
Described protocol conversion process comprises:
A. the communication protocol operating procedure that converts GSM to is as follows:
At first make P1.0 export a low level pulse by program, pulse duration is not less than 100mS;
When sending note, at first the data that are sent out are encoded, finish the GSM data format that Modbus/PROFIBUS protocol data format conversion becomes standard;
Then, AT instruction is sent to gsm module, after obtaining confirming to respond, send note after passing through protocol conversion to gsm module again by serial ports;
B. after entering the GSM network through the short message after the protocol conversion, operating procedure is as follows:
At first, after SMC handles, be transmitted to the multiprotocol conversion device based on GSM short message transmission in the cordless communication network of far-end with the received data that are stored in the SMC of short message service center of commmunication company (Short Message Center);
When short message arrives, take action based on the multiprotocol conversion device of GSM short message transmission in the cordless communication network, read short message data from gsm module, through the communication Protocol Conversion decoding, reducible is the Modbus/PROFIBUS communications protocol format of original standard.
The present invention utilizes short message to realize that remote data transmission uses, and has following characteristics: (1) utilizes mobile communications network broad covered area, global advantage that the network facilities is complete, no longer needs the investment base facility, realizes the service of " personalization " whenever and wherever possible; (2) enforcement is low with operating cost, only needs to increase terminal control system; (3) can be implemented in that unmanned situation, environment are abominable, the collection and the transmission of control information under the situation of overlength distance, the quality assurance of hardware communication security reliable; (4) system applies independence is good, utilizes MCU microprocessor control TC35i module, within the specific limits, if realize different application, only need make certain modification to foreground software and get final product.
Description of drawings
Fig. 1 is embedded microprocessor STC12C5A16S2 of the present invention and LCD liquid crystal interface circuit diagram;
Fig. 2 is TC35i module of the present invention and SIM card interface circuit figure;
Fig. 3 is RS-232/422/485 of the present invention or UART-TTL standard interface circuit diagram;
Fig. 4 is a main program flow block diagram of the present invention;
Fig. 5 is a TC35i initialize routine FB(flow block) of the present invention;
Fig. 6 is a transmission SMS messaging FB(flow block) of the present invention;
Fig. 7 is that interruption of the present invention receives the SMS messaging FB(flow block);
Fig. 8 is the theory diagram of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network of the present invention.
Embodiment
Below in conjunction with drawings and Examples the present invention is further described
Multiprotocol conversion device based on GSM short message transmission in the cordless communication network of the present invention, it comprises the master controller parts, wireless receiving and dispatching parts and liquid crystal display drive circuit, keyboard, protective circuit, working power.
Described master controller parts are a microprocessor module, and described wireless receiving and dispatching parts are a GSM sending and receiving short messages module.
Described microprocessor module is selected 8 embedded microprocessor STC12C5A16S2 of STC Corporation for use.
Described GSM sending and receiving short messages module is the gsm module TC35i of new generation of Siemens company, to realize the transmitted in both directions of teledata.
Wherein, the STC12C5A16S2 module is integrated with keyboard and LCD liquid crystal interface, and its serial ports one is designed to as RS-232/422/485 or the UART-TTL standard interface that adopts the Modbus/PROFIBUS agreement to communicate, and serial ports two is connected with GSM sending and receiving short messages module.
Described RS-232/422/485 or UART-TTL standard interface circuit (as shown in Figure 3), the serial ports transmission links to each other with RXD with the TXD of receiving terminal with microprocessor STC12C5A16S2 serial ports one, finishes the data double-way transmission.
Described embedded microprocessor STC12C5A16S2 highest frequency can reach 90MHz, has two serial ports.Wherein serial ports one is designed to RS-232/422/485 or UART-TTL standard interface circuit, links to each other with corresponding peripheral hardware.Serial ports two connects the TC35i module, and controls the switching on and shutting down of TC35i by P1.0.
Microprocessor STC12C5A16S2 and LCD liquid crystal interface circuit theory diagrams (as shown in Figure 1), wherein microprocessor STC12C5A16S2 wants data presented to send the LCD liquid crystal to by the data/address bus handle, and by control oral instructions send the relevant controlling order, control command comprises: the selection of liquid crystal register, read/write operation selection, liquid crystal enable signal, screen is selected about liquid crystal, opening or closing of LCD backlight controlled in LCD backlight control.
Described GSM sending and receiving short messages module is the TC35i module, possesses the repertoire of gsm wireless communication, and the UART serial line interface of standard is provided, and supports the instruction of the defined AT Command Set of GSM.Therefore, microprocessor can be connected with gsm module by the UART interface easily, and directly uses the AT order just can make things convenient for and realize Receiving and transmitting of SMS, inquiry and management compactly.
The RS-232 interface and the SIM card of standard that described TC35i module (as shown in Figure 2) is integrated can start the TC35i module by microprocessor P1.0.Wherein LED is a TC35i module working station indicator, and SIM card seat signal links to each other with the pin of TC35i module same numeral.The TXD of TC35i module, RXD pin connect the transmission and the receiving terminal of the serial ports two of microprocessor STC12C5A16S2.Microprocessor serial ports two and TC35i module all adopt 8 asynchronous communication modes, 1 start bit, and 8 bit data positions, 1 position of rest, the no parity check position, baud rate is optional between 300bps-115kbps, acquiescence 9600bps.
The implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network of the present invention comprising main program, sends SMS messaging, interrupts receiving the processing of SMS messaging.
Described main program (as shown in Figure 4): comprise microprocessor STC12C5A16S2 module initialization program, TC35i module initialization program, button is handled, short message is handled, the data coding/decoding is handled protocol conversion.
Described microprocessor STC12C5A16S2 module initialization program comprises: it is 9600BPS that the serial ports baud rate is set, and adopts 8 asynchronous communication modes, 1 start bit, and 8 bit data positions, 1 position of rest, the no parity check position is provided with stack pointer and allows serial ports to interrupt; Also comprise the initialization of LCD liquid crystal display drive circuit, keyboard timing scan constant break period is set.
Described TC35i module initialization program (as shown in Figure 5) comprising:
At first start the TC35i module, detect this module and whether land, as do not land, then restart the TC35i module, till this module is landed;
Send " AT " order to this module then, whether judge module loopback OK? if loopback OK, all are normal to represent this module communication, otherwise send " AT " order to this module again, till this module loopback OK;
It is PDU (Protocol Data Unit) pattern that the TC35i short messaging mode is set then, and short message service center is set, and short message is set arrives prompting automatically;
Described transmission SMS messaging (as shown in Figure 6) comprising:
At first the GSM data format that becomes standard as Modbus/PROFIBUS protocol data format conversion to be sent.The module that sends SMS message receiving number AT+CMGS=receiving number judges whether to receive ">" sign? if receive ">" sign, expression TC35i module is working properly can to send data, and the data of having changed are gone out by the GSM Network Transmission.Judge whether then to send successfully? if send failure, then resend, send at most 3 times, if send successfully, then return; If send failure for 3 times, then put and send out mismark and return then;
If do not receive ">" sign, then repeat above-mentioned action, send at most 3 times, if 3 times send failure, then put and send out mismark and return then;
Described interruption receives SMS messaging (as shown in Figure 7) and comprising:
At first judge whether to receive " CMTI " instruction? if receive " CMTI " instruction, then write serial ports " AT+CMGL=0 ", make module send the short message text, receive data, the GSM Data Format Transform of standard is become Modbus/PROFIBUS protocol data form, preserve the data receive and put and receive mark; For preventing because of short message in the SIM card too much no longer receives short message, after acknowledging receipt of this note, write serial ports " AT+CMGD=0 ", send the order of deletion short message, delete this note, interrupt returning.
Described button is handled and is comprised: serial port setting, baud rate setting, communication mode and communications protocol setting.
Described short message is handled and is comprised: judge at first whether short message data makes mistakes in transmission course, if data are correct, then remove information header in the short message, information tail, take out useful data, be saved in the units corresponding and go; If data are made mistakes, then put the mark of makeing mistakes of communicating by letter, require to retransmit this short message.
Described data coding/decoding is handled and is comprised: at first data are carried out the PDU coding, general PDU coding mode comprises: SMS service center address length, short message service center's type of number, short message service center's number, the file header byte, information type, called number length, the called number type, called number, protocol-identifier, data coding scheme, the term of validity, User Data Length, user data, wherein user data is the standard Modbus/PROFIBUS protocol data that needs transmission, finishes the GSM data format that Modbus/PROFIBUS protocol data format conversion becomes standard;
Otherwise, when short message arrives, take action based on the multiprotocol conversion device of GSM short message transmission in the cordless communication network, from gsm module, read short message data, the GSM Data Format Transform of standard is become Modbus/PROFIBUS protocol data form, by the protocol conversion decoding, take out the user data in the PDU coding mode, be the standard Modbus/PROFIBUS protocol data that was transmitted originally.
Described protocol conversion process comprises:
A. the communication protocol operating procedure that converts GSM to is as follows:
At first make P1.0 export a low level pulse by program, pulse duration is not less than 100mS;
When sending SMS message, at first the data that are sent out are encoded, finish the GSM data format that Modbus/PROFIBUS protocol data format conversion becomes standard;
Then, AT instruction is sent to gsm module, after obtaining confirming to respond, send short message after passing through protocol conversion to gsm module again by serial ports;
B. after entering the GSM network through the short message after the protocol conversion, operating procedure is as follows:
At first, after SMC handles, be transmitted to the multiprotocol conversion device based on GSM short message transmission in the cordless communication network of far-end with the received data that are stored in the SMC of short message service center of commmunication company (Short Message Center);
When short message arrives, take action based on the multiprotocol conversion device of GSM short message transmission in the cordless communication network, read short message data from gsm module, through the communication Protocol Conversion decoding, reducible is the Modbus/PROFIBUS communications protocol format of original standard.
Described multiprotocol conversion device based on GSM short message transmission in the cordless communication network is formed communication network (as shown in Figure 8), is used to transmit data.
In sum, the invention solves the deficiency that control appliance commonly used in the industrial control field such as PLC (Programmable Logic Controller) and RTU (remote controllers) can not carry out remote detection and control by the GSM network.In data communication, based on the multiprotocol conversion device of GSM short message transmission in the cordless communication network as a general module, can apply it to fast in the product development, simultaneously its part and product of also can be used as product combines, be implemented in radio message Industry Control, telecommunication, many field of wireless communication such as on-site supervision, and bring great convenience to work.Shorten the Products Development cycle.Meanwhile, any terminal that the control information or the data of control centre can be dealt into the GSM network by this protocol converter, simultaneously also can with remote collection to data transaction become the GSM data format of standard and by the GSM Network Transmission to control centre, no longer need to insert other network communication units and just can realize truly remote detection and control, thereby farthest be that the design of client's simplified system reduces system's construction cost and maintenance cost.

Claims (12)

1. multiprotocol conversion device based on GSM short message transmission in the cordless communication network; it comprises the master controller parts; wireless receiving and dispatching parts and liquid crystal display drive circuit, keyboard, protective circuit, working power; it is characterized in that: described master controller parts are a microprocessor module, and described wireless receiving and dispatching parts are a GSM sending and receiving short messages module.
2. the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 1, it is characterized in that: described microprocessor module is a STC12C5A16S2 module, be integrated with keyboard and LCD liquid crystal interface, its serial ports one is designed to as RS-232/422/485 or the UART-TTL standard interface that adopts the Modbus/PROFIBUS agreement to communicate, and serial ports two is connected with GSM sending and receiving short messages module;
Described GSM sending and receiving short messages module is the TC35i module, and it is integrated with the RS-232 interface of standard, and SIM card can utilize the AT order that it is provided with.
3. the implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 1 is characterized in that: comprise main program, send SMS messaging, interrupt receiving the processing of SMS messaging.
4. the implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 3, it is characterized in that: described main program: comprise microprocessor STC12C5A16S2 module initialization program, TC35i module initialization program, button are handled, short message is handled, the data coding/decoding is handled protocol conversion.
5. the implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 4, it is characterized in that: described microprocessor STC12C5A16S2 module initialization program comprises: it is 9600BPS that the serial ports baud rate is set, adopt 8 asynchronous communication modes, 1 start bit, 8 bit data positions, 1 position of rest, the no parity check position is provided with stack pointer and allows serial ports to interrupt;
Also comprise the initialization of LCD liquid crystal display drive circuit, keyboard timing scan constant break period is set.
6. the implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 4, it is characterized in that: described TC35i module initialization program comprises:
At first start the TC35i module, detect this module and whether land, as do not land, then restart the TC35i module, till this module is landed;
Send " AT " order to this module then, whether judge module loopback OK? if loopback OK, all are normal to represent this module communication, otherwise send " AT " order to this module again, till this module loopback OK;
It is PDU (Protocol Data Unit) pattern that the TC35i short messaging mode is set then, and short message service center is set, and short message is set arrives prompting automatically.
7. the implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 3, it is characterized in that: described transmission SMS messaging comprises:
At first the GSM data format that becomes standard as Modbus/PROFIBUS protocol data format conversion to be sent;
The module that sends SMS message receiving number AT+CMGS=receiving number judges whether to receive ">" sign? if receive ">" sign, expression TC35i module is working properly can to send data, and the data of having changed are gone out by the GSM Network Transmission;
Judge whether then to send successfully? if send failure, then resend, send at most 3 times, if send successfully, then return; If send failure for 3 times, then put and send out mismark and return then;
If do not receive ">" sign, then repeat above-mentioned action, send at most 3 times, if 3 times send failure, then put and send out mismark and return then.
8. the implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 3 is characterized in that: described interruption receives SMS messaging and comprises:
At first judge whether to receive " CMTI " instruction? if receive " CMTI " instruction, then write serial ports " AT+CMGL=0 ", make module send the short message text, receive data, the GSM Data Format Transform of standard is become Modbus/PROFIBUS protocol data form, preserve the data receive and put and receive mark;
For preventing because of short message in the SIM card too much no longer receives short message, after acknowledging receipt of this note, write serial ports " AT+CMGD=0 ", send the order of deletion short message, delete this note, interrupt returning.
9. the implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 4 is characterized in that: described button is handled and is comprised: serial port setting, baud rate setting, communication mode and communications protocol setting.
10. the implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 4, it is characterized in that: described short message is handled and is comprised: judge at first whether short message data makes mistakes in transmission course, if data are correct, then remove information header in the short message, information tail, take out useful data, be saved in the units corresponding and go;
If data are made mistakes, then put the mark of makeing mistakes of communicating by letter, require to retransmit this note.
11. the implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 4, it is characterized in that: described data coding/decoding is handled and is comprised: at first data are carried out the PDU coding, general PDU coding mode comprises: SMS service center address length, short message service center's type of number, short message service center's number, the file header byte, information type, called number length, the called number type, called number, protocol-identifier, data coding scheme, the term of validity, User Data Length, user data, wherein user data is the standard Modbus/PROFIBUS protocol data that needs transmission, finishes the GSM data format that Modbus/PROFIBUS protocol data format conversion becomes standard;
Otherwise, when short message arrives, take action based on the multiprotocol conversion device of GSM short message transmission in the cordless communication network, from gsm module, read short message data, the GSM Data Format Transform of standard is become Modbus/PROFIBUS protocol data form, by the protocol conversion decoding, take out the user data in the PDU coding mode, be the standard Modbus/PROFIBUS protocol data that was transmitted originally.
12. the implementation method of the multiprotocol conversion device based on GSM short message transmission in the cordless communication network as claimed in claim 4, it is characterized in that: described protocol conversion process comprises:
A. the communication protocol operating procedure that converts GSM to is as follows:
At first make P1.0 export a low level pulse by program, pulse duration is not less than 100mS;
When sending SMS message, at first the data that are sent out are encoded, finish the GSM data format that Modbus/PROFIBUS protocol data format conversion becomes standard;
Then, AT instruction is sent to gsm module, after obtaining confirming to respond, send short message after passing through protocol conversion to gsm module again by serial ports;
B. after entering the GSM network through the short message after the protocol conversion, operating procedure is as follows:
At first, after SMC handles, be transmitted to the multiprotocol conversion device based on GSM short message transmission in the cordless communication network of far-end with the received data that are stored in the SMC of short message service center of commmunication company (Short Message Center);
When short message arrives, take action based on the multiprotocol conversion device of GSM short message transmission in the cordless communication network, read short message data from gsm module, through the communication Protocol Conversion decoding, reducible is the Modbus/PROFIBUS communications protocol format of original standard.
CN2011100776610A 2011-03-30 2011-03-30 Multi-protocol converter based on GSM (Global System for Mobile Communications) short message transmission in wireless communication network Pending CN102143458A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100776610A CN102143458A (en) 2011-03-30 2011-03-30 Multi-protocol converter based on GSM (Global System for Mobile Communications) short message transmission in wireless communication network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100776610A CN102143458A (en) 2011-03-30 2011-03-30 Multi-protocol converter based on GSM (Global System for Mobile Communications) short message transmission in wireless communication network

Publications (1)

Publication Number Publication Date
CN102143458A true CN102143458A (en) 2011-08-03

Family

ID=44410626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100776610A Pending CN102143458A (en) 2011-03-30 2011-03-30 Multi-protocol converter based on GSM (Global System for Mobile Communications) short message transmission in wireless communication network

Country Status (1)

Country Link
CN (1) CN102143458A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497012A (en) * 2011-11-11 2012-06-13 江苏正佰电气有限公司 Short message notification device for monitoring switch apparatuses
CN103281199A (en) * 2013-04-30 2013-09-04 上海铁路通信有限公司 Identity (ID)-based unified identification method for sensing layer equipment on network layer
CN103491267A (en) * 2013-09-26 2014-01-01 山东思达特测控设备有限公司 Setting method of wireless intelligent RTU
CN103945347A (en) * 2013-01-23 2014-07-23 苏州市伏泰信息科技有限公司 LBS-based environmental sanitation operation short message scheduling system
WO2015035825A1 (en) * 2013-09-16 2015-03-19 华为终端有限公司 Sim card signal conversion method and device
CN106027686A (en) * 2016-08-02 2016-10-12 山东乐通达物联网科技有限公司 Enhanced type MODBUS communication protocol based on MPEG-2
CN106130965A (en) * 2016-06-20 2016-11-16 中冶赛迪电气技术有限公司 Industrial bus and telecommunications network interconnected method and gateway controller
CN106899900A (en) * 2017-04-20 2017-06-27 上海兰宝环保科技有限公司 A kind of long-range transmission control system of short message for low-concentration organic exhaust gas recovery processing technique
CN106959659A (en) * 2017-04-20 2017-07-18 上海兰宝环保科技有限公司 A kind of long-range transmission control system of intelligent environment protection equipment short message for high-performance bio filter bed waste gas purification apparatus
CN106959660A (en) * 2017-04-20 2017-07-18 上海兰宝环保科技有限公司 A kind of long-range transmission control system of short message that organic exhaust gas process intelligent environmental protection equipment under operating mode is fluctuated for exhaust gas concentration
CN110032908A (en) * 2019-04-23 2019-07-19 福州符号信息科技有限公司 A kind of bar code processing circuit that supporting various communications protocols and bar code reading module
WO2021152316A1 (en) * 2020-01-28 2021-08-05 Control Station Ltd Monitoring a field machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6185198B1 (en) * 1996-03-20 2001-02-06 Aeris Communications, Inc. Time division multiple access downlink personal communications system voice and data debit billing method
CN1424845A (en) * 2002-12-20 2003-06-18 蔡虹 Wireless access systems with wiring alarm devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6185198B1 (en) * 1996-03-20 2001-02-06 Aeris Communications, Inc. Time division multiple access downlink personal communications system voice and data debit billing method
CN1424845A (en) * 2002-12-20 2003-06-18 蔡虹 Wireless access systems with wiring alarm devices

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
宏晶: "STC12C5A60S2系列单片机器件手册", 《宏晶STC单片机》 *
王忠等: "GSM协议转换器的设计与实现", 《四川大学学报》 *
郭红霞: "基于GSM模块TC35i的收发短信的无线终端的设计", 《西南石油学院硕士学位论文》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497012A (en) * 2011-11-11 2012-06-13 江苏正佰电气有限公司 Short message notification device for monitoring switch apparatuses
CN103945347A (en) * 2013-01-23 2014-07-23 苏州市伏泰信息科技有限公司 LBS-based environmental sanitation operation short message scheduling system
CN103281199A (en) * 2013-04-30 2013-09-04 上海铁路通信有限公司 Identity (ID)-based unified identification method for sensing layer equipment on network layer
CN104463304B (en) * 2013-09-16 2018-03-27 华为终端有限公司 A kind of SIM card signal conversion method and device
CN104463304A (en) * 2013-09-16 2015-03-25 华为终端有限公司 SIM card signal conversion method and device
WO2015035825A1 (en) * 2013-09-16 2015-03-19 华为终端有限公司 Sim card signal conversion method and device
US10142831B2 (en) 2013-09-16 2018-11-27 Huawei Device (Shenzhen) Co., Ltd. SIM card signal conversion method and apparatus
CN103491267A (en) * 2013-09-26 2014-01-01 山东思达特测控设备有限公司 Setting method of wireless intelligent RTU
CN103491267B (en) * 2013-09-26 2015-11-18 山东思达特测控设备有限公司 The method to set up of a kind of intelligent wireless RTU
CN106130965A (en) * 2016-06-20 2016-11-16 中冶赛迪电气技术有限公司 Industrial bus and telecommunications network interconnected method and gateway controller
CN106027686A (en) * 2016-08-02 2016-10-12 山东乐通达物联网科技有限公司 Enhanced type MODBUS communication protocol based on MPEG-2
CN106027686B (en) * 2016-08-02 2020-02-18 山东乐通达物联网科技有限公司 Enhanced MODBUS communication method based on MPEG-2
CN106959660A (en) * 2017-04-20 2017-07-18 上海兰宝环保科技有限公司 A kind of long-range transmission control system of short message that organic exhaust gas process intelligent environmental protection equipment under operating mode is fluctuated for exhaust gas concentration
CN106959659A (en) * 2017-04-20 2017-07-18 上海兰宝环保科技有限公司 A kind of long-range transmission control system of intelligent environment protection equipment short message for high-performance bio filter bed waste gas purification apparatus
CN106899900A (en) * 2017-04-20 2017-06-27 上海兰宝环保科技有限公司 A kind of long-range transmission control system of short message for low-concentration organic exhaust gas recovery processing technique
CN110032908A (en) * 2019-04-23 2019-07-19 福州符号信息科技有限公司 A kind of bar code processing circuit that supporting various communications protocols and bar code reading module
WO2021152316A1 (en) * 2020-01-28 2021-08-05 Control Station Ltd Monitoring a field machine

Similar Documents

Publication Publication Date Title
CN102143458A (en) Multi-protocol converter based on GSM (Global System for Mobile Communications) short message transmission in wireless communication network
CN106549863A (en) A kind of things-internet gateway, terminal and its protocol self-adapting method and apparatus
CN102215263B (en) Data transmission and remote control method for self-organizing wireless internet of things (IoT) system
CN105005280B (en) A kind of industrial equipment man-machine interactive system and its control method based on intelligent wireless terminal
CN104077909A (en) Wireless intelligent terminal based remote wireless monitoring method for oxygen stations
CN109884978A (en) A kind of remote system and its method for PLC device debugging
CN102624593A (en) Intelligent terminal used for integrating variant equipment of internet of things (IOT)
CN106888271A (en) A kind of software and hardware interactive interface applied in BLE5.0 protocol systems and system
CN102833137B (en) A kind of digital family system based on intelligent gateway
CN107204666A (en) The remote sensing information joint debugging method of transformer station four and system based on mobile message technology
CN207319431U (en) A kind of intelligent meter data recording system based on NB-IoT
CN106657023A (en) Information communication device based on cloud host
CN104916098A (en) Online enable method of wireless control system
CN210780850U (en) Internet of things radio frequency control intelligent gateway
CN201821350U (en) Fault signal relay delivery device for power transmission line poles and towers
CN202838004U (en) Controller used for ozone generator and ozone generator
CN202671044U (en) Remote electric control module of hoisting equipment based on GPRS (General Packet Radio Service) radio communication network
CN205384605U (en) Meteorological conversion of message ware of civil aviation
CN201467168U (en) Communication protocol converter capable of converting MODBUS protocol to Profibus protocol
CN2703366Y (en) Single direction transmission gateway for computer network
CN110262930A (en) A kind of intelligent safety protection terminal, system and method
JP3964236B2 (en) Joint meter reading system, master meter for meter reading, and meter reading method for gas meter and watt hour meter
CN109714189A (en) A kind of power communication mould group initial method based on state machine
CN104468298A (en) An MODBUS based remote smart communication system
CN216792723U (en) Device for controlling circular communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110803