CN103889018A - Data transmitting method and device - Google Patents

Data transmitting method and device Download PDF

Info

Publication number
CN103889018A
CN103889018A CN201410141274.2A CN201410141274A CN103889018A CN 103889018 A CN103889018 A CN 103889018A CN 201410141274 A CN201410141274 A CN 201410141274A CN 103889018 A CN103889018 A CN 103889018A
Authority
CN
China
Prior art keywords
module
data
connection
quality
bluetooth
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
CN201410141274.2A
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.)
Shang Kang Kang (beijing) Technology Co Ltd
Original Assignee
Shang Kang Kang (beijing) Technology Co 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 Shang Kang Kang (beijing) Technology Co Ltd filed Critical Shang Kang Kang (beijing) Technology Co Ltd
Priority to CN201410141274.2A priority Critical patent/CN103889018A/en
Publication of CN103889018A publication Critical patent/CN103889018A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a data transmitting method and device. The data transmitting method comprises the steps that when data need to be transmitted, a module transmitting the data is determined according to the connecting state and connecting quality of a Bluetooth module and the connecting state and connecting quality of a GSM global mobile communication module, and the determined module is used for transmitting the data. An appropriate data transmission mode is automatically selected according to the connecting state of the Bluetooth and the comparison state of the Bluetooth signal strength and the GSM signal connecting state, a user can monitor the data in real time, and the frequency of data errors, data loss and other phenomena caused by instable data transmission and connection is reduced.

Description

A kind of data transmission method and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of data transmission method and device.
Background technology
GSM(Global System for Mobile Communication, global system for mobile communications), be a kind of European mobile communication technology standard that originates from, be 2nd generation mobile communication technology.Gsm module, is that GSM radio frequency chip, baseband processing chip, memory, power discharging device etc. are integrated on a wiring board, has independently operating system, GSM radio frequency processing, Base-Band Processing and the functional module of standard interface is provided.
Bluetooth is a kind of radiotechnics of support equipment short haul connection.Mobile phone, PDA(Personal Digital Assistant can comprised, palmtop PC), carry out wireless messages exchange between numerous equipment such as wireless headset, notebook computer, relevant peripheral hardware, can effectively simplify the communication between mobile communication terminal device, also communicating by letter between simplified apparatus and internet Internet successfully, efficient more rapidly thereby transfer of data becomes.Bluetooth module refers to the chip basic circuit set of integrated with Bluetooth function, for wireless network communication.
But, also do not realize at present gsm module and bluetooth module and merge advantage separately and realize the transmission means of data transmission method and automatic switchover.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of data transmission method and device, guarantees the transmission of data.
The object of the embodiment of the present invention is achieved through the following technical solutions:
A kind of data transmission method, comprising:
In the time that needs transmit data, according to the connection status of bluetooth module and quality of connection, the connection status of GSM global mobile communication module and the module of the described data of the definite transmission of quality of connection;
The described module that use is determined is transmitted described data.
A kind of data transmission device, the bluetooth module that comprise control module, is connected with described control module and the GSM global mobile communication module being connected with described control module
Described control module: in the time that needs transmit data, according to the connection status of described bluetooth module and quality of connection, the connection status of the full module of described GSM and the module of the described data of the definite transmission of quality of connection;
Described bluetooth module: for transmitting described data according to the indication of described control module;
Described gsm module: for transmitting described data according to the indication of described control module.
The technical scheme being provided by the invention described above embodiment can be found out, according to the connection status of bluetooth and Bluetooth signal intensity and GSM signal connection status comparative result, automatically select a suitable data transfer mode, facilitate user can real-time monitor data, the unstable phenomenon causing occurs because transfer of data connects to reduce error in data, loss of data etc.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain other accompanying drawings according to these accompanying drawings.
The data transmission method schematic flow sheet that Fig. 1 provides for the embodiment of the present invention.
The data transmission device formation schematic diagram that Fig. 2 provides for the embodiment of the present invention.
The data transmission device application schematic diagram that Fig. 3 provides for the embodiment of the present invention.
The data transmission device modular design schematic diagram that Fig. 4 provides for the embodiment of the present invention.
Voltage stabilizing circuit schematic diagram in the data transmission device that Fig. 5 provides for the embodiment of the present invention.
Single-chip microcomputer and bluetooth module and gsm module connection diagram in the data transmission device that Fig. 6 provides for the embodiment of the present invention.
Bluetooth module and single-chip microcomputer connection diagram in the data transmission device that Fig. 7 provides for the embodiment of the present invention.
Gsm module and single-chip microcomputer connection diagram in the data transmission device that Fig. 8 provides for the embodiment of the present invention; wherein 8(a) be gsm module SIM900A; 8(b) be gsm module power supply circuits, 8(c) be SIM card anti-static protection circuit, 8(d) be SIM card slot circuit.
The active crystal oscillator schematic diagram of 8M in the data transmission device that Fig. 9 provides for the embodiment of the present invention.
The data transmission device application flow schematic diagram that Figure 10 provides for the embodiment of the present invention.
The data transmission device application flow schematic diagram that Figure 11 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on embodiments of the invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to protection scope of the present invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of data transmission method, comprising:
Step 11, in the time that needs transmit data, determine the module of the described data of transmission according to the connection status of the connection status of bluetooth module and quality of connection, GSM global mobile communication module and quality of connection;
The described module that step 12, use are determined is transmitted described data.
The technical scheme being provided by the invention described above embodiment can be found out, according to the connection status of bluetooth and Bluetooth signal intensity and GSM signal connection status comparative result, automatically select a suitable data transfer mode, facilitate user can real-time monitor data, the unstable phenomenon causing occurs because transfer of data connects to reduce error in data, loss of data etc.
Particularly, step 11, according to the connection status of bluetooth module and quality of connection, the connection status of gsm module and the module of the described data of the definite transmission of quality of connection, can comprise:
Determine that whether the connection status of bluetooth module is for connecting;
When the connection status of described bluetooth module is not when connecting, determine that whether the connection status of gsm module is for connecting, when the connection status of described gsm module is when connecting, determine that described gsm module transmits described data;
When the connection status of described bluetooth module is when connecting, determine whether bluetooth quality of connection is greater than the threshold value of setting, in the time that described bluetooth quality of connection is greater than the threshold value of described setting, determine that described bluetooth module transmits described data, or, in the time that described bluetooth quality of connection is not more than the threshold value of described setting, determine whether GSM quality of connection is greater than described bluetooth quality of connection, in the time that GSM quality of connection is greater than described bluetooth quality of connection, determine that described gsm module transmits described data;
Wherein, described quality of connection can comprise signal strength signal intensity or link-quality, signal strength signal intensity is as RSSI(Received Signal Strength Indication, and the signal strength signal intensity of reception is indicated), link-quality is as the measurement situation to data-bag lost in communication process.
To those skilled in the art, determine the mode of the connection status of bluetooth module, gsm module, can be understood with reference to prior art, do not repeat at this.
To those skilled in the art, the quality of connection that bluetooth connects or GSM connects can be understood with reference to prior art, does not repeat at this.
Further, embodiment of the present invention data transmission method, can also comprise:
While using described blue module to transmit described data, in the time that described bluetooth quality of connection is not more than the threshold value of described setting, determine whether GSM quality of connection is greater than described bluetooth quality of connection, in the time that GSM quality of connection is greater than described bluetooth quality of connection, is switched to and uses described gsm module to transmit described data;
Or, while using described gsm module to transmit described data, in the time that described bluetooth quality of connection is greater than the threshold value of described setting, is switched to and uses described bluetooth module to transmit described data.
In embodiment of the present invention data transmission method, describedly need to transmit the data that data can comprise that data acquisition unit sends, described data acquisition unit can comprise transducer.
In realization, can obtain by the mode of wired connection or wireless connections the numerical value of transducer or other image data equipment.
Embodiment of the present invention data transmission method, uses described in step 12 the described module of determining to transmit described data, can comprise:
Described gsm module or described bluetooth module are by described transfer of data to subscriber equipment, and described subscriber equipment can comprise mobile phone terminal or server.
Visible, embodiment of the present invention data transmission method obtains the numerical value of transducer or other image data equipment by wired or wireless mode, then according to the connection status of bluetooth and Bluetooth signal intensity and GSM signal connection status comparative result, automatically select a suitable data transfer mode, data are sent to subscriber equipment, facilitate user can real-time monitor data, the unstable phenomenon causing occurs because transfer of data connects to reduce error in data, loss of data etc.
As shown in Figure 2, the embodiment of the present invention provides a kind of data transmission device, the bluetooth module 22 that comprise control module 21, is connected with control module 21 and the gsm module 23 being connected with control module 21,
Control module 21: in the time that needs transmit data, according to the connection status of described bluetooth module and quality of connection, the connection status of the full module of described GSM and the module of the described data of the definite transmission of quality of connection;
Bluetooth module 22: for transmitting described data according to the indication of control module 21;
Gsm module 23: for transmitting described data according to the indication of control module 21.
The technical scheme being provided by the invention described above embodiment can be found out, according to the connection status of bluetooth and Bluetooth signal intensity and GSM signal connection status comparative result, automatically select a suitable data transfer mode, facilitate user can real-time monitor data, the unstable phenomenon causing occurs because transfer of data connects to reduce error in data, loss of data etc.
Particularly, control module 21, specifically can be for:
Determine that whether the connection status of bluetooth module 22 is for connecting;
When the connection status of described bluetooth module 22 is not when connecting, determine that whether the connection status of gsm module 23 is for connecting, when the connection status of described gsm module 23 is when connecting, determine that described gsm module 23 transmits described data;
When the connection status of described bluetooth module 22 is when connecting, determine whether bluetooth quality of connection is greater than the threshold value of setting, in the time that described bluetooth quality of connection is greater than the threshold value of described setting, determine that described bluetooth module 22 transmits described data, or, in the time that described bluetooth quality of connection is not more than the threshold value of described setting, determine whether GSM quality of connection is greater than described bluetooth quality of connection, in the time that GSM quality of connection is greater than described bluetooth quality of connection, determine that described gsm module 23 transmits described data;
Wherein, described quality of connection can comprise signal strength signal intensity or link-quality.
Control module 21 can be obtained connection status, the bluetooth quality of connection of bluetooth module, connection status and the GSM quality of connection of gsm module 23.
To those skilled in the art, determine the mode of the connection status of bluetooth module, gsm module, can be understood with reference to prior art, do not repeat at this.
To those skilled in the art, the quality of connection that bluetooth connects or GSM connects can be understood with reference to prior art, does not repeat at this.
Further, control module 21, can also be specifically for:
While using blue module 22 to transmit described data, in the time that described bluetooth quality of connection is not more than the threshold value of described setting, determine whether GSM quality of connection is greater than described bluetooth quality of connection, in the time that GSM quality of connection is greater than described bluetooth quality of connection, is switched to and uses gsm module 23 to transmit described data;
Or, while using gsm module 23 to transmit described data, in the time that described bluetooth quality of connection is greater than the threshold value of described setting, is switched to and uses bluetooth module 22 to transmit described data.
Optionally, control module 21: can also be used for receiving the data that data acquisition unit sends and need to transmit data as described, described data acquisition unit can comprise transducer.
In realization, can obtain by the mode of wired connection or wireless connections the numerical value of transducer or other image data equipment.
Optionally, bluetooth module 22 also for by described transfer of data to subscriber equipment, or, gsm module 23 also for by described transfer of data to subscriber equipment, described subscriber equipment comprises mobile phone terminal or server.
In embodiment of the present invention data transmission device, control module 21 can be microcontroller, can obtain by RS232 the data of transducer, and data are encrypted, are packed.
In realization, embodiment of the present invention data transmission device can be data transmission module, is convenient to arrange separately or be arranged at one with other equipment.Exemplary, as embodiment of the present invention data transmission module is arranged on interior of mobile phone.
Visible, embodiment of the present invention data transmission device obtains the numerical value of transducer or other image data equipment by wired or wireless mode, then according to the connection status of bluetooth and Bluetooth signal intensity and GSM signal connection status comparative result, automatically select a suitable data transfer mode, data are sent to subscriber equipment, facilitate user can real-time monitor data, the unstable phenomenon causing occurs because transfer of data connects to reduce error in data, loss of data etc.
As shown in Figure 3, embodiment of the present invention data transmission device (module) comprises microcontroller 31, bluetooth module 32, gsm module 33, main use gsm module and bluetooth module realize transducer 34 etc. can image data equipment and subscriber equipment 35(as mobile phone terminal and server) between transmit data, and according to signal quality automatic switchover transmission means, guarantee that data are real-time, transmitting, for system server provides data more accurately.
System Working Principle is as follows:
Data transmission module obtains the numerical value of transducer or other image data equipment by wired or wireless mode, then according to the connection status of bluetooth and Bluetooth signal intensity and GSM signal connection status comparative result, automatically select a suitable data transfer mode, data are sent to subscriber equipment, facilitate user can real-time monitor data, the unstable phenomenon causing occurs because transfer of data connects to reduce error in data, loss of data etc.
Specifically as shown in Figure 4, the design of embodiment of the present invention data transmission module comprises and answers hardware circuit design and firmware design two parts.The STM32 series monolithic that wherein hardware is mainly produced by microcontroller 41(ST Microelectronics, below also can be referred to as single-chip microcomputer), bluetooth module 42 and gsm module 43 form.
Embodiment of the present invention data transmission module also comprises power interface 44, voltage stabilizing circuit 45 etc.Microcontroller 41 obtains the data of transducer by RS232 interface 46.
Concrete, microcontroller 41 is STM32F103RBT6 single-chip microcomputer.
Bluetooth module 42 adopts dual-mode chip RG-BLE-12 type bluetooth 4.0 bimodulus modules, has both supported bluetooth low-power consumption mode (BLE bluetooth 4.0), supports again bluetooth classical mode (bluetooth 3.0) simultaneously.So RG-BLE-12 type bluetooth 4.0 bimodulus modules both can connect with the Android mobile phone of all bluetooth enables, notebook, computer and the pairing of bluetooth primary module, thereby realized bidirectional transmit-receive data; Can pass through again bluetooth 4.0 standard BLE agreements, be connected with the ios device pairing of supporting BLE.
Gsm module 43 adopts SIM900A module.SIM900A adopts industry standard interface, and operating frequency is GSM/GPRS850/900/1800/1900MHz, can low-power consumption realizes the transmission of voice, SMS, data and facsimile message.In addition, the size of SIM900A is 24x24x3mm, can be applicable to all kinds of design requirements in M2M application, is particularly useful for compact product design.
Voltage stabilizing circuit as shown in Figure 5, power interface connects 5V power supply, and the built-in 3.3V voltage stabilizing circuit of module is transformed into 3.3V to microcontroller, bluetooth module, gsm module power supply 5V, and it is normally worked.
In voltage stabilizing circuit, voltage stabilizing chip adopts AMS1117-3.3, by voltage stabilizing circuit, the 5V voltage being provided by interface P1 is changed into 3.3V, is the power supply such as single-chip microcomputer, baroceptor.Its circuit structure is as follows: interface P1 is connected by external cabling, for circuit provides 5V voltage.2 pin of interface P1 are connected with resettable fuse 1 pin, and 2 pin of F1 connect voltage stabilizing chip input pin 3.Wherein F1 is paster encapsulation, the resettable fuse that current limliting is 1000mA.When abnormal conditions appear in circuit, while causing electric current excessive, fuse automatic cut-off power, prevents that device is damaged; After electric current is less than load current value, fuse is from being dynamically connected, and circuit is normally connected.The 1 pin ground connection of voltage stabilizing chip AMS1117; The electric capacity paster tantalum capacitor C 1 that meets the nonpolar patch capacitor C2 of 0.1uF and 4.7uF before 3 pins, capacitor C 2 and C1 are connected in parallel; In the time of circuit-board laying-out, C2 places near chip AMS1117.C2 and C1 mono-termination 5V positive pole, another termination GND; 2 pins of AMS1117 connect the paster tantalum capacitor C 4 of the nonpolar patch capacitor C3 of 0.1uF and 10uF; C3 and C4 are connected in parallel, one termination output voltage 3.3V, other end ground connection.
The concrete electrical connection diagram of single-chip microcomputer and bluetooth module and gsm module as shown in Figure 6, bluetooth module 61 directly uses stable module, bluetooth module 61, gsm module 62 carry out transfer of data by serial ports and single-chip microcomputer 62, in figure, TX: represent transmission interface, RX: represent receiving interface, GND: represent ground connection, VCC: represent power supply.
The concrete connection layout of single-chip microcomputer and bluetooth module as shown in Figure 7, bluetooth module U3 and single-chip microcomputer STM32F103, its 1 pin of bluetooth module connects single-chip microcomputer 17 pin, and 2 pin connect single-chip microcomputer 16 pin, and 12 pin connect 3.3V voltage, and 13 pin meet GND, and all the other pins are unsettled not to be connect.LED1 is common patch light-emitting diode, and its 1 pin connects single-chip microcomputer 61 pins, 2 pin connecting resistance R14 one end.R14 other end ground connection, its resistance is 470 ohm.Can calculate the electric current of LED1 when bright is
Figure BDA0000488797820000071
single-chip microcomputer can control LED1 bright, go out and the time of light on and off is indicated bluetooth connection status, transmit data state etc.
The concrete connection layout of single-chip microcomputer and gsm module as shown in Figure 8 a, gsm module (SIM900A) is because power consumption is very large, and operating voltage is at 3.4V~4.5V, and under its burst mode, immediate current is up to 2A, so its power supply is directly obtained by a diode step-down of+5V voltage serial connection, diode is selected 1N4007.Wherein connect+5V of diode anode, negative electrode connects GSM_VDD electric power network.GSM_VDD is the electric power network of gsm module.After diode cathode and connect two tantalum electric capacity, capacitance is respectively 220uF and 47uF, and withstand voltage 6V(as shown in Figure 8 b).These two electric capacity can carry out filtering to the ripple of power supply, allow gsm module obtain more stable voltage.1 pin of controlling gsm module can be opened, closing module.Module 1 pin sequential circuit R26 and NPN triode S8050 herein, wherein transistor collector connecting resistance one end, transmitter ground connection, joins with the common pin of single-chip microcomputer after base stage series resistor, and base stage is also joined with pull down resistor R24 simultaneously.Before spread of voltage and module job insecurity, pull down resistor can be pulled to transistor base level into 0V, and now, triode disconnects.In the time using module, single-chip microcomputer IO exports high level, and voltage is 3V, higher than triode cut-in voltage, and triode conducting, gsm module 1 pin voltage drags down.1 pin voltage is dragged down after 1s, and module starts, and afterwards, single-chip microcomputer pin output low level, disconnects triode, and module 1 pin is drawn high.
ESD1 is antistatic protection chip as shown in Figure 8 c, wherein 2 pin ground connection, and other pins all join with signal pin and the power pin of SIM card.SIM card supply power voltage has gsm module, by software programming, suitable voltage is set to be provided, and SIM card supply power voltage VDD_SIM is that 3.3V(is as shown in Fig. 8 d here).Be connected in series 47 Ohmic resistances with SIM card at SIM card holding wire SIM_RST, SIM_CLK, SIM_I/O, have certain metering function, prevent the too high damage SIM card of spread of voltage.Between gsm module and single-chip microcomputer, carry out transfer of data by serial mode.Wherein single-chip microcomputer 58 pins and 59 pins join respectively at 10 pins, 9 pins of gsm module, guarantee that single-chip microcomputer and bottom line gsm module are publicly same simultaneously.Like this single-chip microcomputer can by serial ports configure gsm module and with its transmission data.
Single-chip microcomputer carries out transfer of data by RS232 mode and extraneous sensor equipment.Here use MAX3232 chip, single-chip microcomputer Transistor-Transistor Logic level is changed into RS232 level, and be equipped with the DB9 joint of standard, convenient and other equipment connections.Here 9 of MAX3232,10 pins join with single-chip microcomputer 52,51 pins respectively, and 7,8 pins join respectively at 2,3 pins of DB9 joint.10,11 pins of DB9 joint are joint shell, for preventing external interference signal, and 10,11 pin ground connection.The electric capacity being connected with MAX3232 is the nonpolar electric capacity of paster 0.1uF.
The active crystal oscillator of 8M as shown in Figure 9, for guaranteeing single-chip microcomputer steady operation, single-chip microcomputer is equipped with the active crystal oscillator of 8M, and more reliable and more stable than the concussion frequency of passive crystal oscillator, antijamming capability is strong.In order to add up the time of transceiving data, the real-time clock that uses single-chip microcomputer inside to carry, connect the passive crystal oscillator of 32.768KHz at single- chip microcomputer 3,4 pins, between two pins of crystal oscillator and ground, be connected in series the nonpolar electric capacity of paster of 20pF simultaneously, guarantee crystal oscillator can starting of oscillation and steady operation at 32.768KHz, for real-time clock provides frequency more accurately.
As shown in figure 10, single-chip microcomputer passes through programming and other modules realization control bluetooth modules or gsm module forwarding data to subscriber equipment, comprising:
101, initialization bluetooth module and gsm module;
Concrete, complete initialization and the configuration effort of bluetooth module and gsm module;
102, send self-checking command to bluetooth module and gsm module;
Concrete, carry out System self-test, check bluetooth module and gsm module whether normal 101;
103, receive bluetooth module and gsm module return value;
104, judge that whether bluetooth module and gsm module be normal, if so, enter 105, otherwise enter 106;
105, obtain sensing data and send;
Concrete, obtain the data of transducer by RS232, and data are encrypted, are packed;
106, control module mistake indicator light flicker.
As shown in figure 11, write corresponding driver according to the logical relation of module executable operations, the step of the transfer of data of embodiment of the present invention data transmission module, comprising:
111, read sensor data;
112, obtain the connection status of bluetooth connection status and gsm module;
After pick-up transducers data, obtain the connection status of bluetooth connection status and gsm module;
113, judge whether bluetooth connects, if so, enter 114 otherwise enter 115;
If it is intact that bluetooth connects, preferential choice for use bluetooth transfers data to subscriber equipment to bluetooth equipment;
If bluetooth module does not connect, directly use gsm module to send data to subscriber equipment;
114, bluetooth module connection is intact, obtains Bluetooth signal intensity;
115, bluetooth module does not connect, and directly uses gsm module to send data to subscriber equipment;
116, judge whether Bluetooth signal intensity is greater than the threshold value of setting, if so, enter 117, otherwise enter 118;
Although namely bluetooth module connects, the too weak or link quality of signal strength signal intensity, lower than setting threshold, is unsuitable for sending data, can inquire about so GSM signal strength signal intensity, if the signal strength signal intensity of gsm module is higher, selects gsm module transmission data;
Meanwhile, can also light the weak status indicator lamp of Bluetooth signal intensity, reminding user;
117, bluetooth module sends data to subscriber equipment;
118, obtain GSM signal strength signal intensity;
119, judge whether GSM signal strength signal intensity is greater than Bluetooth signal intensity, if so, enter 1110, if not, get back to 117;
1110, gsm module sends data to subscriber equipment.
If detecting in transmitting procedure that one of them module is interfered causes data there is no normal transmission, be switched to another module transmission data.
Further, the step that bluetooth module and gsm module switch is as follows:
Real time detection signal intensity in Bluetooth transmission data procedures, if being interfered, signal strength signal intensity is down to below setting threshold, determine whether GSM quality of connection is greater than described bluetooth quality of connection, in the time that GSM quality of connection is greater than described bluetooth quality of connection, be switched to gsm module transmission data;
In the time of gsm module transmission data, also detect in real time Bluetooth signal intensity, can transmit the threshold value of data if Bluetooth signal intensity reaches setting, stop gsm module transmission data, be directly switch to bluetooth module transmission data.
For preventing program run-time error, program adds WatchDog Timer, and every certain hour (as 1 second) of crossing is checked running state of programs.If program is made mistakes, restart routine.
The above; only for preferably embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with in technical scope that those skilled in the art disclose in the present invention; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.

Claims (10)

1. a data transmission method, is characterized in that, comprising:
In the time that needs transmit data, according to the connection status of bluetooth module and quality of connection, the connection status of GSM global mobile communication module and the module of the described data of the definite transmission of quality of connection;
The described module that use is determined is transmitted described data.
2. data transmission method according to claim 1, is characterized in that, described according to the connection status of bluetooth module and quality of connection, the connection status of gsm module and the module of the described data of the definite transmission of quality of connection, comprising:
Determine that whether the connection status of bluetooth module is for connecting;
When the connection status of described bluetooth module is not when connecting, determine that whether the connection status of gsm module is for connecting, when the connection status of described gsm module is when connecting, determine that described gsm module transmits described data;
When the connection status of described bluetooth module is when connecting, determine whether bluetooth quality of connection is greater than the threshold value of setting, in the time that described bluetooth quality of connection is greater than the threshold value of described setting, determine that described bluetooth module transmits described data, or, in the time that described bluetooth quality of connection is not more than the threshold value of described setting, determine whether GSM quality of connection is greater than described bluetooth quality of connection, in the time that GSM quality of connection is greater than described bluetooth quality of connection, determine that described gsm module transmits described data;
Wherein, described quality of connection comprises signal strength signal intensity or link-quality.
3. data transmission method according to claim 2, is characterized in that, described method also comprises:
While using described blue module to transmit described data, in the time that described bluetooth quality of connection is not more than the threshold value of described setting, determine whether GSM quality of connection is greater than described bluetooth quality of connection, in the time that GSM quality of connection is greater than described bluetooth quality of connection, is switched to and uses described gsm module to transmit described data;
Or, while using described gsm module to transmit described data, in the time that described bluetooth quality of connection is greater than the threshold value of described setting, is switched to and uses described bluetooth module to transmit described data.
4. according to arbitrary described data transmission method in claim 1-3, it is characterized in that, describedly need to transmit the data that data comprise that data acquisition unit sends, described data acquisition unit comprises transducer.
5. according to arbitrary described data transmission method in claim 1-3, it is characterized in that, the described module that described use is determined is transmitted described data, comprising:
Described gsm module or described bluetooth module are by described transfer of data to subscriber equipment, and described subscriber equipment comprises mobile phone terminal or server.
6. a data transmission device, is characterized in that, the bluetooth module that comprise control module, is connected with described control module and the GSM global mobile communication module being connected with described control module:
Described control module: in the time that needs transmit data, according to the connection status of described bluetooth module and quality of connection, the connection status of the full module of described GSM and the module of the described data of the definite transmission of quality of connection;
Described bluetooth module: for transmitting described data according to the indication of described control module;
Described gsm module: for transmitting described data according to the indication of described control module.
7. data transmission device according to claim 6, is characterized in that, described control module, specifically for:
Determine that whether the connection status of bluetooth module is for connecting;
When the connection status of described bluetooth module is not when connecting, determine that whether the connection status of gsm module is for connecting, when the connection status of described gsm module is when connecting, determine that described gsm module transmits described data;
When the connection status of described bluetooth module is when connecting, determine whether bluetooth quality of connection is greater than the threshold value of setting, in the time that described bluetooth quality of connection is greater than the threshold value of described setting, determine that described bluetooth module transmits described data, or, in the time that described bluetooth quality of connection is not more than the threshold value of described setting, determine whether GSM quality of connection is greater than described bluetooth quality of connection, in the time that GSM quality of connection is greater than described bluetooth quality of connection, determine that described gsm module transmits described data;
Wherein, described quality of connection comprises signal strength signal intensity or link-quality.
8. data transmission device according to claim 7, is characterized in that, described control module, also specifically for:
While using described blue module to transmit described data, in the time that described bluetooth quality of connection is not more than the threshold value of described setting, determine whether GSM quality of connection is greater than described bluetooth quality of connection, in the time that GSM quality of connection is greater than described bluetooth quality of connection, is switched to and uses described gsm module to transmit described data;
Or, while using described gsm module to transmit described data, in the time that described bluetooth quality of connection is greater than the threshold value of described setting, is switched to and uses described bluetooth module to transmit described data.
9. according to arbitrary described data transmission device in claim 6-8, it is characterized in that described control module: also need to transmit data for the data that receive data acquisition unit transmission as described, described data acquisition unit comprises transducer.
10. according to arbitrary described data transmission device in claim 6-8, it is characterized in that, described bluetooth module also for by described transfer of data to subscriber equipment, or, described gsm module also for by described transfer of data to subscriber equipment, described subscriber equipment comprises mobile phone terminal or server.
CN201410141274.2A 2014-04-09 2014-04-09 Data transmitting method and device Pending CN103889018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410141274.2A CN103889018A (en) 2014-04-09 2014-04-09 Data transmitting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410141274.2A CN103889018A (en) 2014-04-09 2014-04-09 Data transmitting method and device

Publications (1)

Publication Number Publication Date
CN103889018A true CN103889018A (en) 2014-06-25

Family

ID=50957697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410141274.2A Pending CN103889018A (en) 2014-04-09 2014-04-09 Data transmitting method and device

Country Status (1)

Country Link
CN (1) CN103889018A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184553A (en) * 2014-09-02 2014-12-03 广东欧珀移动通信有限公司 Low-power-dissipation Bluetooth data transmission method, device and equipment
CN104954484A (en) * 2015-06-30 2015-09-30 黑色水晶(北京)科技有限公司 IoT (Internet of Things) connection method and device
CN106354614A (en) * 2016-09-20 2017-01-25 珠海格力电器股份有限公司 Indicator light circuit of data transmission device
CN107801177A (en) * 2017-09-29 2018-03-13 成都心吉康科技有限公司 Unbinding, the wearable healthy equipment of binding system and method
CN108966188A (en) * 2018-06-11 2018-12-07 四川斐讯信息技术有限公司 A kind of method and system carrying out the transmission of NAS device data by bluetooth
CN115440020A (en) * 2022-11-07 2022-12-06 绵阳能创科技有限责任公司 Dual-mode meter control system and method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005051025A1 (en) * 2003-11-20 2005-06-02 Research In Motion Limited Seamless call switching in a dual mode environment
CN102573128A (en) * 2010-12-22 2012-07-11 北京格林思通科技有限公司 Method and system for short-distance wireless mobile terminal
CN102769935A (en) * 2012-07-30 2012-11-07 杭州电子科技大学 Transmitting end of over-distance wireless sensor network circuit
CN102958048A (en) * 2011-08-26 2013-03-06 中国移动通信集团山东有限公司 Method for optimal selection between WiFi (wireless fidelity) network and TD-SCDMA (time division-synchronous code division multiple access) network
CN204290988U (en) * 2014-04-09 2015-04-22 尚奇浩康(北京)科技有限公司 A kind of data transmission device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005051025A1 (en) * 2003-11-20 2005-06-02 Research In Motion Limited Seamless call switching in a dual mode environment
CN102573128A (en) * 2010-12-22 2012-07-11 北京格林思通科技有限公司 Method and system for short-distance wireless mobile terminal
CN102958048A (en) * 2011-08-26 2013-03-06 中国移动通信集团山东有限公司 Method for optimal selection between WiFi (wireless fidelity) network and TD-SCDMA (time division-synchronous code division multiple access) network
CN102769935A (en) * 2012-07-30 2012-11-07 杭州电子科技大学 Transmitting end of over-distance wireless sensor network circuit
CN204290988U (en) * 2014-04-09 2015-04-22 尚奇浩康(北京)科技有限公司 A kind of data transmission device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184553A (en) * 2014-09-02 2014-12-03 广东欧珀移动通信有限公司 Low-power-dissipation Bluetooth data transmission method, device and equipment
CN104184553B (en) * 2014-09-02 2018-03-23 广东欧珀移动通信有限公司 Low-power consumption bluetooth data transmission method, device and equipment
CN104954484A (en) * 2015-06-30 2015-09-30 黑色水晶(北京)科技有限公司 IoT (Internet of Things) connection method and device
CN106354614A (en) * 2016-09-20 2017-01-25 珠海格力电器股份有限公司 Indicator light circuit of data transmission device
CN107801177A (en) * 2017-09-29 2018-03-13 成都心吉康科技有限公司 Unbinding, the wearable healthy equipment of binding system and method
CN108966188A (en) * 2018-06-11 2018-12-07 四川斐讯信息技术有限公司 A kind of method and system carrying out the transmission of NAS device data by bluetooth
CN115440020A (en) * 2022-11-07 2022-12-06 绵阳能创科技有限责任公司 Dual-mode meter control system and method and electronic equipment

Similar Documents

Publication Publication Date Title
CN103889018A (en) Data transmitting method and device
CN204290988U (en) A kind of data transmission device
CN103916166B (en) A kind of Bluetooth data transfer method and blue-tooth device
CN206133908U (en) Device suitable for underground instrument radio signal transmission
CN203942106U (en) A kind of wireless metering-type socket
CN204836212U (en) Gateway system is fused in many communications based on WSN meteorological observation
US20170308374A1 (en) Mobile terminal, power adapter, and upgrade method thereof
CN204597961U (en) A kind of bluetooth module
CN113110211A (en) Distributed water quality remote monitoring system and monitoring method for aquaculture fishery
CN210183564U (en) Wireless ad hoc network double-backup self-switching intelligent power supply device
CN103311766A (en) Mobile equipment switching device and working mode switching method thereof
CN103313214B (en) Method for carrying out data storage and remote transmission by using portable terminal
CN108973900A (en) Automobile mounted terminal device
CN207348675U (en) A kind of door machine control system based on wireless communication technique
CN210348467U (en) Modular design structure capable of updating MCU software
CN203445909U (en) Intercom terminal parameter configuration system
CN208665118U (en) Automobile mounted terminal device
CN205105177U (en) Be applied to power amplifier's singlechip step control gain reduction compensating circuit
CN201562021U (en) Test circuit, test card and test system of SD card interface
CN220107980U (en) Dual-mode communication module and Internet of things gas meter
CN105227205A (en) Antenna system and apply the communication terminal of this antenna system
CN203982169U (en) Loudspeaker automatic production line management system based on CAN bus
CN204833643U (en) Unusual water monitoring alarm ware of multiterminal based on GSM technique
CN221202773U (en) Multi-interface wireless gateway device
CN204231319U (en) A kind of transceiving integrated infrared circuit board

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20181109

AD01 Patent right deemed abandoned