CN110225542B - Method and system for switching network of wearable device - Google Patents

Method and system for switching network of wearable device Download PDF

Info

Publication number
CN110225542B
CN110225542B CN201910459335.2A CN201910459335A CN110225542B CN 110225542 B CN110225542 B CN 110225542B CN 201910459335 A CN201910459335 A CN 201910459335A CN 110225542 B CN110225542 B CN 110225542B
Authority
CN
China
Prior art keywords
bluetooth
wifi
control system
network access
central control
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.)
Active
Application number
CN201910459335.2A
Other languages
Chinese (zh)
Other versions
CN110225542A (en
Inventor
谢光强
章世楠
李杨
沈培森
刘基正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201910459335.2A priority Critical patent/CN110225542B/en
Publication of CN110225542A publication Critical patent/CN110225542A/en
Application granted granted Critical
Publication of CN110225542B publication Critical patent/CN110225542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0016Hand-off preparation specially adapted for end-to-end data sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0027Control or signalling for completing the hand-off for data sessions of end-to-end connection for a plurality of data sessions of end-to-end connections, e.g. multi-call or multi-bearer end-to-end data connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method for switching networks of wearable equipment, which comprises the following steps: when the central control system is initialized, a network is accessed by adopting a GSM network access mode, so that normal communication between the wearable equipment and the Internet is realized; during the operation process of the central control system, switching to a WIFI network access mode or a Bluetooth network access mode in a response interruption mode; wherein, the execution process of the interrupt response mode is as follows: step one, a WIFI network access module or a Bluetooth network access module initiates a network access interruption request, corresponding to an interruption position 1; step two, the central control system runs the RTOS, responds to the interrupt, closes the corresponding interrupt request function, and puts the corresponding interrupt into position 0; according to the invention, the central control system interrupts the response and processes the connection request of WIFI or Bluetooth networking, so that the flexible switching from a GSM networking mode to a WIFI or Bluetooth networking mode of the wearable device is solved, the normal network access of the device is further ensured, and the data transmission failure caused by network connection failure is avoided.

Description

Method and system for switching network of wearable device
Technical Field
The invention relates to the technical field of network connection, in particular to a method and a system for switching a network by a wearable device.
Background
The intelligent wearable device is used more and more frequently, but the wearable device often causes network connection abnormity due to unstable network connection, so that data transmission abnormity is caused.
According to network survey and display, a certain network connection mode is often used in the existing wearable equipment to access a network, when the certain network connection mode is unavailable, the whole wearable equipment is in a disconnected network state, data exchange of the wearable equipment can not be normally carried out through the internet, the use of online application is influenced, and the use effect of a user is poor.
In the prior art, chinese patent application (a method and system for switching between bluetooth and WIFI, 201710595570.3) discloses a method for switching between bluetooth and WIFI, which determines whether to perform switching between bluetooth or WIFI transmission and a data continuous transmission mode according to transmission capability of a data transmission mode, but this mode cannot cope with a complex environment, and once a bluetooth module or a WIFI module fails to transmit a fault or a communication link is disconnected, real-time stable transmission of data cannot be guaranteed, resulting in data loss and data delay.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a method for switching a network by a wearable device, which can ensure that the wearable device is normally accessed into the network and avoid data transmission failure caused by network connection failure.
Another object of the present invention is to provide a system for switching networks by a wearable device.
The purpose of the invention is realized by the following technical scheme:
a method for switching networks by a wearable device comprises the following steps:
when the central control system is initialized, a network is accessed by adopting a GSM network access mode, so that normal communication between the wearable equipment and the Internet is realized; during the operation process of the central control system, switching to a WIFI network access mode or a Bluetooth network access mode in a response interruption mode;
wherein, the execution process of the interrupt response mode is as follows:
step one, a WIFI network access module or a Bluetooth network access module initiates a network access interruption request, corresponding to an interruption position 1;
step two, the central control system runs the RTOS, responds to the interrupt, closes the corresponding interrupt request function, and puts the corresponding interrupt into position 0;
thirdly, accessing the network by adopting WIFI or Bluetooth and continuously sending information;
step four, when the WIFI or the Bluetooth is accessed to the network and simultaneously transmitted, the WIFI interrupt request is preferentially responded and the Bluetooth interrupt request is cancelled because the WIFI interrupt request is higher than the Bluetooth interrupt request;
the WIFI network access connection on-off judgment process comprises the following steps:
step one, a central control system continuously sends three heartbeat packets to an equipment connecting end at regular time;
step two, the central control system receives heartbeat packets in a DMA mode, if at least one heartbeat packet is received, the WIFI connection is confirmed to be normal, otherwise, the WIFI connection is disconnected;
step three, when the WIFI disconnection is confirmed, allowing the WIFI request to be interrupted, and switching to a GSM network connection mode;
wherein, the judgment flow of the connection on-off of the Bluetooth network access is as follows:
step one, a central control system reads the high level frequency of an LED pin of a Bluetooth module in a DMA mode, and if the high level frequency is 0.5HZ, the Bluetooth is considered to be disconnected; if the high level frequency is 0.2HZ, the Bluetooth connection is considered to be normal;
and step two, when the disconnection of the Bluetooth is confirmed, the Bluetooth request is allowed to be interrupted, and the connection mode is switched to a GSM network connection mode.
A system for switching a network of wearable equipment comprises a central control system, and a Bluetooth networking module, a WIFI networking module and a GSM networking module which are connected with the central control system;
the central control system responds to the interrupt request and controls the switching of three network access modes of Bluetooth, WIFI and GSM in real time;
the central control system is built on the microprocessor, and real-time response to the three networking modes of Bluetooth, WIFI and GSM is realized by running RTOS.
Preferably, the central control system runs on the embedded microprocessor by using an RTOS system.
Preferably, the bluetooth network access module adopts an HC-05 module, the WIFI network access module adopts an SKW92A module, and the GSM network access module adopts an SIM900 module.
Compared with the prior art, the invention has the following beneficial effects:
according to the invention, the central control system interrupts the response and processes the connection request of WIFI or Bluetooth network access, so that the flexible switching of the wearable device from a GSM network access mode to a WIFI or Bluetooth network access mode is solved, the normal network access of the device is further ensured, and the data transmission failure caused by network connection failure is avoided; the intelligent communication system is intelligent and can automatically switch communication modes to deal with changeable environments when facing complex environments, particularly environments needing stable communication functions; when a certain communication hardware has errors, the invention has the hardware error correction capability, and can select another reliable communication device as a communication carrier by switching the communication mode, thereby ensuring the reliability of data transmission.
Drawings
FIG. 1 is a diagram illustrating a responsive network access connection method according to the present invention;
FIG. 2 is a flow chart of a responsive network access connection method of the present invention;
fig. 3 is a flow chart of the judgment of the on-off of the WIFI network access connection;
fig. 4 is a flowchart illustrating a bluetooth network access connection on/off determination process according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited thereto.
As shown in fig. 1 to 4, a method for switching a network by a wearable device includes the following steps:
as shown in fig. 1, when the central control system is initialized, a network is accessed by adopting a GSM network access manner, so as to realize normal communication between the wearable device and the internet; and in the running process of the central control system, switching to a WIFI network access mode or a Bluetooth network access mode in a response interruption mode.
As shown in fig. 2, the execution process of the interrupt response mode is as follows:
step one, a WIFI network access module or a Bluetooth network access module initiates a network access interruption request, corresponding to an interruption position 1;
step two, the central control system runs the RTOS, responds to the interrupt, closes the corresponding interrupt request function, and puts the corresponding interrupt into position 0;
thirdly, accessing the network by adopting WIFI or Bluetooth and continuously sending information;
and step four, when the WIFI or the Bluetooth is simultaneously transmitted in the network, the WIFI interruption request is preferentially responded and the Bluetooth interruption request is cancelled because the WIFI interruption request is higher than the Bluetooth interruption request.
As shown in fig. 3, the process of determining the connection/disconnection of the WIFI network access is as follows:
step one, a central control system continuously sends three heartbeat packets to an equipment connecting end at regular time;
step two, the central control system receives heartbeat packets in a DMA mode, if at least one heartbeat packet is received, the WIFI connection is confirmed to be normal, otherwise, the WIFI connection is disconnected;
and step three, when the WIFI disconnection is confirmed, allowing the WIFI request to be interrupted, and switching to a GSM network connection mode.
Specifically, the WIFI network access module triggers a WIFI interruption response bit of the central control system, requests a network access interruption response at the interruption response position 1, interrupts the central control system response, stops the GSM network, switches to a WIFI network access connection mode to connect the network, closes the WIFI interruption response, and responds to the interruption response position 0. If the two interrupts are generated simultaneously, the WIFI network access connection mode is preferentially adopted. If the two connection modes are disconnected, a GSM network is adopted; whether the WIFI access network connection mode is disconnected or not is judged by judging whether the heartbeat packet is received or not, if the heartbeat packet is received, the WIFI access network connection mode is connected, and if the heartbeat packet is not received, the WIFI access network connection mode is disconnected (a GSM network is adopted for disconnection).
As shown in fig. 4, the process of determining the connection/disconnection of the bluetooth network access connection is as follows:
step one, a central control system reads the high level frequency of an LED pin of a Bluetooth module in a DMA mode, and if the high level frequency is 0.5HZ, the Bluetooth is considered to be disconnected; if the high level frequency is 0.2HZ, the Bluetooth connection is considered to be normal;
and step two, when the disconnection of the Bluetooth is confirmed, the Bluetooth request is allowed to be interrupted, and the connection mode is switched to a GSM network connection mode.
Specifically, the Bluetooth networking module triggers a Bluetooth interrupt response bit of a central control system, requests a networking interrupt response at an interrupt response position 1, responds to the interrupt by the central control system, stops the GSM network, switches to a Bluetooth networking connection mode to connect a local area network, closes the Bluetooth interrupt response, and simultaneously responds to an interrupt response position 0; whether the Bluetooth is disconnected or not in the network access connection mode is judged by judging the PWM waveform change of the LED pin of the Bluetooth module, if the high level frequency in one period is 0.2HZ, the connection is carried out, and if the high level frequency is 0.5HZ, the disconnection is carried out (a GSM network is adopted for disconnection).
A system for switching a network of wearable equipment comprises a central control system, and a Bluetooth networking module, a WIFI networking module and a GSM networking module which are connected with the central control system; the Bluetooth networking module adopts an HC-05 module, the WIFI networking module adopts an SKW92A module, and the GSM networking module adopts an SIM900 module.
The central control system responds to the interrupt request and controls the switching of three network access modes of Bluetooth, WIFI and GSM in real time;
the central control system is built on the microprocessor, and real-time response to the three networking modes of Bluetooth, WIFI and GSM is realized by running RTOS; the central control system adopts an RTOS system to run on the embedded microprocessor.
According to the invention, the central control system interrupts the response and processes the connection request of WIFI or Bluetooth network access, so that the flexible switching of the wearable device from a GSM network access mode to a WIFI or Bluetooth network access mode is solved, the normal network access of the device is further ensured, and the data transmission failure caused by network connection failure is avoided; the intelligent communication system is intelligent and can automatically switch communication modes to deal with changeable environments when facing complex environments, particularly environments needing stable communication functions; when a certain communication hardware has errors, the invention has the hardware error correction capability, and can select another reliable communication device as a communication carrier by switching the communication mode, thereby ensuring the reliability of data transmission.
The present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents and are included in the scope of the present invention.

Claims (3)

1. A method for switching networks by wearing equipment is characterized by comprising the following steps:
when the central control system is initialized, a network is accessed by adopting a GSM network access mode, so that normal communication between the wearable equipment and the Internet is realized; during the operation process of the central control system, switching to a WIFI network access mode or a Bluetooth network access mode in a response interruption mode;
wherein, the execution process of the interrupt response mode is as follows:
step one, a WIFI network access module or a Bluetooth network access module initiates a network access interruption request, corresponding to an interruption position 1;
step two, the central control system runs the RTOS, responds to the interrupt, closes the corresponding interrupt request function, and puts the corresponding interrupt into position 0;
thirdly, accessing the network by adopting WIFI or Bluetooth and continuously sending information;
step four, when the WIFI and the Bluetooth access network are simultaneously sent, the WIFI interruption request is preferentially responded and the Bluetooth interruption request is cancelled because the WIFI interruption request is higher than the Bluetooth interruption request;
the WIFI network access connection on-off judgment process comprises the following steps:
step one, a central control system continuously sends three heartbeat packets to an equipment connecting end at regular time;
step two, the central control system receives heartbeat packets in a DMA mode, if at least one heartbeat packet is received, the WIFI connection is confirmed to be normal, otherwise, the WIFI connection is disconnected;
step three, when the WIFI disconnection is confirmed, allowing the WIFI request to be interrupted, and switching to a GSM network connection mode;
wherein, the bluetooth is gone into the net and is connected the judgement flow of break-make and do:
step one, a central control system reads the high level frequency of an LED pin of a Bluetooth module in a DMA mode, and if the high level frequency is 0.5HZ, the Bluetooth is considered to be disconnected; if the high level frequency is 0.2HZ, the Bluetooth connection is considered to be normal;
step two, when the connection disconnection of the Bluetooth is confirmed, the Bluetooth request is allowed to be interrupted, and the connection mode is switched to a GSM network connection mode;
the method for switching the network of the wearable device further comprises a central control system, and a Bluetooth networking module, a WIFI networking module and a GSM networking module which are connected with the central control system;
the central control system responds to the interrupt request and controls the switching of three network access modes of Bluetooth, WIFI and GSM in real time;
the central control system is built on a micro processor, and real-time response to the Bluetooth, the WIFI and the GSM in the network access modes is realized by operating an RTOS.
2. The method for switching networks of the wearable device according to claim 1, wherein the central control system runs on the embedded microprocessor by using an RTOS system.
3. The method for switching networks of the wearable device of claim 1, wherein the bluetooth networking module is an HC-05 module, the WIFI networking module is an SKW92A module, and the GSM networking module is an SIM900 module.
CN201910459335.2A 2019-05-29 2019-05-29 Method and system for switching network of wearable device Active CN110225542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910459335.2A CN110225542B (en) 2019-05-29 2019-05-29 Method and system for switching network of wearable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910459335.2A CN110225542B (en) 2019-05-29 2019-05-29 Method and system for switching network of wearable device

Publications (2)

Publication Number Publication Date
CN110225542A CN110225542A (en) 2019-09-10
CN110225542B true CN110225542B (en) 2022-08-02

Family

ID=67818839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910459335.2A Active CN110225542B (en) 2019-05-29 2019-05-29 Method and system for switching network of wearable device

Country Status (1)

Country Link
CN (1) CN110225542B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984462A (en) * 2006-04-07 2007-06-20 华为技术有限公司 Wireless network system, its switching method and mobile station-transferring equipment
WO2008078206A2 (en) * 2006-12-20 2008-07-03 Nokia Corporation Suspending existing wlan link before starting bluetooth device discovery
CN103607780A (en) * 2013-11-19 2014-02-26 惠州Tcl移动通信有限公司 Mobile device and network connection method thereof
CN104581893A (en) * 2014-12-08 2015-04-29 上海斐讯数据通信技术有限公司 Network access device and switching method thereof for accessing to multiple networks
CN105025158A (en) * 2015-05-29 2015-11-04 广西大学 Multifunctional data transmission device
CN106056875A (en) * 2016-05-26 2016-10-26 深圳市天鼎微波科技有限公司 Achievement method of multi-antenna unmanned aerial vehicle system
EP3167650A1 (en) * 2014-07-07 2017-05-17 Telefonaktiebolaget LM Ericsson (publ) Resolving competing handover conditions in wireless networks
CN107155204A (en) * 2017-07-20 2017-09-12 广东工业大学 The method and system that a kind of bluetooth switches with Wifi
CN108924777A (en) * 2018-07-27 2018-11-30 深圳市荣盛智能装备有限公司 A kind of redundance communicating method for individual soldier's command system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984462A (en) * 2006-04-07 2007-06-20 华为技术有限公司 Wireless network system, its switching method and mobile station-transferring equipment
WO2008078206A2 (en) * 2006-12-20 2008-07-03 Nokia Corporation Suspending existing wlan link before starting bluetooth device discovery
CN103607780A (en) * 2013-11-19 2014-02-26 惠州Tcl移动通信有限公司 Mobile device and network connection method thereof
EP3167650A1 (en) * 2014-07-07 2017-05-17 Telefonaktiebolaget LM Ericsson (publ) Resolving competing handover conditions in wireless networks
CN104581893A (en) * 2014-12-08 2015-04-29 上海斐讯数据通信技术有限公司 Network access device and switching method thereof for accessing to multiple networks
CN105025158A (en) * 2015-05-29 2015-11-04 广西大学 Multifunctional data transmission device
CN106056875A (en) * 2016-05-26 2016-10-26 深圳市天鼎微波科技有限公司 Achievement method of multi-antenna unmanned aerial vehicle system
CN107155204A (en) * 2017-07-20 2017-09-12 广东工业大学 The method and system that a kind of bluetooth switches with Wifi
CN108924777A (en) * 2018-07-27 2018-11-30 深圳市荣盛智能装备有限公司 A kind of redundance communicating method for individual soldier's command system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"3G与WiFi双模终端的无缝切换算法研究";刘艳虹;《中国优秀硕士学位论文全文数据库信息科技辑》;201407;全文 *

Also Published As

Publication number Publication date
CN110225542A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
US10715411B1 (en) Altering networking switch priority responsive to compute node fitness
CN106453648B (en) Equipment state determination method and device for intelligent household equipment
US10693813B1 (en) Enabling and disabling links of a networking switch responsive to compute node fitness
JP4166939B2 (en) Active fault detection
CN108351859B (en) Direct memory access for endpoint devices
US20070270984A1 (en) Method and Device for Redundancy Control of Electrical Devices
KR102202988B1 (en) Main bluetooth circuit of multi-member bluetooth device
US7734948B2 (en) Recovery of a redundant node controller in a computer system
CN104469905A (en) Method and system for reducing idle power consumption of NFC chip
CN109426644A (en) A kind of rate adjusting method and device, equipment of USB data transmission
EP2625620B1 (en) Remote access appliance with communication protocol autosensing feature
US10440125B2 (en) Method for maintaining transmission control protocol connection and computer system using the method
CN110225542B (en) Method and system for switching network of wearable device
WO2018129856A1 (en) Method, device and system for high-speed data transmission degrading
CN104536853B (en) A kind of device ensureing dual controller storage device resource continuous availability
CN108954702A (en) A kind of control method of air-conditioning, device, air-conditioning and storage medium
TWI733094B (en) Multi-member bluetooth device capable of avoiding signal interrupt
CN101674201B (en) Method for actively triggering active standby switch of Ethernet switch clustering
CN115733729B (en) Communication fault processing method, system and equipment
JP3570996B2 (en) Network relay device and network management system
US7724646B2 (en) System and method for implementing service switching
US7117288B2 (en) USB dynamic service switch for dual processor architecture
AU2004222910B2 (en) Auto-determination of DTE/DCE connection
CN105245840A (en) Data forwarding method and device and camera
CN109088753B (en) Circuit and method for automatically detecting RS485 communication fault

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant