CN105119844B - The operating mode control method and device of built-in WIFI module - Google Patents

The operating mode control method and device of built-in WIFI module Download PDF

Info

Publication number
CN105119844B
CN105119844B CN201510563323.6A CN201510563323A CN105119844B CN 105119844 B CN105119844 B CN 105119844B CN 201510563323 A CN201510563323 A CN 201510563323A CN 105119844 B CN105119844 B CN 105119844B
Authority
CN
China
Prior art keywords
data
length
queue
wifi module
upload
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
CN201510563323.6A
Other languages
Chinese (zh)
Other versions
CN105119844A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201510563323.6A priority Critical patent/CN105119844B/en
Publication of CN105119844A publication Critical patent/CN105119844A/en
Application granted granted Critical
Publication of CN105119844B publication Critical patent/CN105119844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6295Queue scheduling characterised by scheduling criteria using multiple queues, one for each individual QoS, connection, flow or priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Landscapes

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

Abstract

The present invention provides a kind of operating mode control method and device of built-in WIFI module, this method includes:The data upload requests that wearable device is sent are received, the identification information of wearable device is carried in data upload requests;According to identification information, inquires pre-stored identification information and upload the correspondence of data priority, obtain the priority for uploading data;According to the priority for uploading data, data will be uploaded and carry out classification storage in the form of queue;The length of each queue of data is uploaded according to storage, control WIFI module is maintained under ap mode or is switched in STA mode.The operating mode that WIFI module can be reasonably controlled according to the length of each queue of the upload data of the different priorities of storage, improves the upper transfer efficiency of data.

Description

The operating mode control method and device of built-in WIFI module
Technical field
The present embodiments relate to internet of things field more particularly to a kind of operating mode controls of built-in WIFI module Method and apparatus.
Background technology
With the rapid development of information-intensive society, various wearable devices have come into vogue.These wearable device functions five Hua Bamen, including body monitor class, motion monitoring class, amusement class etc..Body monitoring class includes heartbeat inspecting instrument, position monitoring Instrument, respiration monitor etc., motion monitoring class include pedometer, bracelet etc., and amusement class includes smartwatch etc..In order to meet user Different demands, these wearable devices are possessed by same user.Ideally, each wearable terminal should be built-in wide Domain net AM access module, to enjoy the network insertion service of network operator's offer.But in fact, taking cost into account, not being The built-in wide area network AM access module of each wearable terminal.
In order to realize same user multiple wearable devices network insertion service, at present by user carry it is one small The gateway device of type, as the access gateway of person ownership wearable device, the built-in wide area network AM access module of the gateway device And WIFI module, and the built-in WIFI module in wearable terminal, when the WIFI module of gateway device is in AP operating modes, Multiple wearable devices are under STA mode, realize the local interconnection of gateway device and multiple wearable devices, and carry out data Transmission.When the WIFI module of gateway device is under STA operating modes, gateway device disconnects the office with multiple wearable devices Domain connects, and is transferred data in network server by wide area network AM access module.
Since the WIFI module in gateway device can switch in two kinds of operating modes, in the prior art when there is data needs When uploading to network server, no matter gateway device uploads the classification of data, makes WIFI module always in ap mode and STA mode In constantly switch, influence the upper transfer efficiency of data.
Invention content
The embodiment of the present invention provides a kind of operating mode control method of built-in WIFI module, can be according to the difference of storage The length of each queue of the upload data of priority reasonably controls the operating mode of WIFI module, improves the upload of data Efficiency.
The embodiment of the present invention provides a kind of operating mode control method of built-in WIFI module, including:
The data upload requests that wearable device is sent are received, the mark of wearable device is carried in the data upload requests Know information;
According to the identification information, inquires pre-stored identification information and upload the correspondence of data priority, obtain Upload the priority of data;
According to the priority for uploading data, the upload data are subjected to classification storage in the form of queue;
The length of each queue of data is uploaded according to storage, control WIFI module is maintained under ap mode or is switched to In STA mode.
The embodiment of the present invention provides a kind of operating mode control device of built-in WIFI module, including:
Receiving module, the data upload requests for receiving wearable device transmission carry in the data upload requests The identification information of wearable device;
Enquiry module, for according to the identification information, inquiring pre-stored identification information and uploading data priority Correspondence obtains the priority for uploading data;
Memory module, for according to the priority for uploading data, the upload data to be carried out in the form of queue Classification storage;
Control module, the length of each queue for uploading data according to storage, control WIFI module are maintained at AP moulds Under formula or it is switched in STA mode.
The embodiment of the present invention provides a kind of operating mode control method and device of built-in WIFI module, and this method is by connecing The data upload requests that wearable device is sent are received, the identification information of wearable device is carried in data upload requests;According to mark Know information, inquire pre-stored identification information and upload the correspondence of data priority, obtains the priority for uploading data;Root According to the priority for uploading data, data will be uploaded and carry out classification storage in the form of queue;Each of data are uploaded according to storage The length of queue, control WIFI module are maintained under ap mode or are switched in STA mode.It can be preferential according to the difference of storage The length of each queue of the upload data of grade reasonably controls the operating mode of WIFI module, improves the upload effect of data Rate.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the flow chart of the operating mode control method embodiment one of WIFI module built in the present invention;
Fig. 2 is the flow chart of the operating mode control method embodiment two of WIFI module built in the present invention;
Fig. 3 is the structural schematic diagram of the operating mode control device embodiment one of WIFI module built in the present invention;
Fig. 4 is the structural schematic diagram of the operating mode control device embodiment two of WIFI module built in the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of the operating mode control method embodiment one of WIFI module built in the present invention, as shown in Figure 1, Executive agent in the present embodiment is the gateway device for being built-in with WIFI module, also built-in wide area network access in the gateway device Module, when the built-in WIFI module of gateway device control be under AP operating modes, which passes through WIFI module and more A wearable device carries out local interconnection, and the WIFI module of multiple wearable devices is in STA mode at this time, when gateway device control When the built-in WIFI module of system is in STA operating modes, which connect with network server, upload the data to network In server.The operating mode control method of WIFI module includes built in provided in this embodiment:
Step 101, the data upload requests that wearable device is sent are received, wearable device is carried in data upload requests Identification information.
In the present embodiment, gateway device and multiple wearable devices belong to same user, and gateway device is directed to same user Multiple wearable devices upload the data in corresponding network server.
In the present embodiment, the original state of WIFI module built in gateway device is in AP operating modes, multiple wearable WIFI module in equipment is in STA operating modes, and gateway device passes through WIFI module and multiple wearable device carry out office Domain connects.
In the present embodiment, when wearable device needs to upload data to corresponding network server, sent out to gateway device Send data upload requests.Gateway device receives the data upload requests that wearable device is sent, and being carried in data upload requests can The identification information of wearable device.
Wherein, the wearable device in the present embodiment is the wearable device for executing single business, such as can be that heartbeat is examined Survey instrument, position detector, respiration monitor, pedometer, smartwatch etc..
In the present embodiment, the identification information of wearable device can be the identity number of wearable device.
Step 102, it according to identification information, inquires pre-stored identification information and uploads the correspondence of data priority, Obtain the priority for uploading data.
In the present embodiment, since wearable device carries out single business, so the identification information of each wearable device and Upload data classification be unified, so by the identification information of wearable device with upload data priority correspondence into Row is pre-stored.
According to identification information, inquires pre-stored identification information and upload the correspondence of data priority, obtain and upload The priority of data.
In the present embodiment, multiple ranks can be divided by uploading the priority of data, and the business that wearable device carries out is tighter Anxious, the rank of the corresponding priority for uploading data is higher.
Illustration is:Multiple wearable devices are respectively:Heartbeat inspecting instrument, pedometer, smartwatch.Since heartbeat is supervised It surveys instrument to need the heartbeat data of user uploading to corresponding network server, so that corresponding network server is according to beats It is monitored according to the heart beat status to user, is related to the life of user, so the priority of the upload data is high excellent First grade, and pedometer needs the step count data that user is run or walked to upload to corresponding network server, so that corresponding Network server is monitored the movement of user according to step count data, is a kind of behavior of supervisory user movement, so comparison Body monitors the upload data of class, and the priority of the step count data is high medium priority, and the data that smartwatch uploads are joys The data of happy class, the priority of the upload data are monitored compared to body for the upload data of class and motion monitoring class, on this The priority for passing data is low priority.
In the present embodiment, do not limit uploading the rank number of priority of data, what can be possessed according to user can The classification of wearable device is defined, such as can be the priority of three ranks or the priority of five ranks.
Step 103, according to the priority for uploading data, data will be uploaded and carry out classification storage in the form of queue.
In the present embodiment, uploads data and be stored in gateway device in the form of queue, and for each priority Data are uploaded to be stored in a queue.If the priority for uploading data is three, the upload data point of these three priority It is not stored in three queues.
Step 104, according to storage upload data each queue length, control WIFI module be maintained under ap mode or It is switched in STA mode.
In the present embodiment, since the priority of the upload data stored in each queue is different, so being uploaded for storage The length of each queue of data, control WIFI module are maintained under ap mode or are switched in STA mode.If controlling WIFI moulds Block is maintained under ap mode, then the gateway device continues to carry out local interconnection with wearable device, and wearable device is uploaded Data carry out classification storage, if control WIFI module is switched in STA mode, gateway device disconnects and multiple wearable devices Local interconnection, and be attached with corresponding network server, will be in the upload data transmission to corresponding server of storage.
In the present embodiment, when gateway device is attached with corresponding network server, mould can be accessed by wide area network Block carries out the network connection of 3G/4G with network server, can also be set with surrounding by whether covering available WIFI around detecting It is standby to be wirelessly connected, and data are transferred in a manner of wireless network in network server.This is not done in the present embodiment It limits.
The operating mode control method of built-in WIFI module provided in this embodiment, by receiving wearable device transmission Data upload requests carry the identification information of wearable device in data upload requests;According to identification information, inquire pre-stored Identification information and the correspondence for uploading data priority, obtain the priority for uploading data;According to upload data priority, Data will be uploaded and carry out classification storage in the form of queue;The length of each queue of data is uploaded according to storage, controls WIFI Module is maintained under ap mode or is switched in STA mode, can be according to each of the upload data of the different priorities of storage The length of queue reasonably controls the operating mode of WIFI module, improves the upper transfer efficiency of data.
Fig. 2 is the flow chart of the operating mode control method embodiment two of WIFI module built in the present invention, as shown in Fig. 2, Executive agent in the present embodiment is the gateway device for being built-in with WIFI module, also built-in wide area network access in the gateway device Module.Then the operating mode control method of built-in WIFI module provided in this embodiment includes:
Step 201, the data upload requests that wearable device is sent are received, wearable device is carried in data upload requests Identification information.
In the operating mode control method embodiment one of WIFI module built in step 201 and the present invention in the present embodiment Step 101 is identical, and this is no longer going to repeat them.
Step 202, it according to identification information, inquires pre-stored identification information and uploads the correspondence of data priority, Obtain the priority for uploading data.
Further, in this embodiment the priority for uploading data is divided into three priority, wherein if wearable device Class equipment is monitored for body, then the upload data of corresponding body monitoring class are the first priority, if wearable device is movement Monitoring class equipment, then the upload data of corresponding motion monitoring class are the second priority, if wearable device is amusement class equipment, Then the upload data of corresponding amusement class are third priority.
In the present embodiment, pre-stored identification information and the correspondence for uploading data priority can be many-to-one pass The mark of the wearable device of system, i.e. body monitoring class is different, but the corresponding priority for uploading data can be identical.Such as The wearable device of same user, body monitoring class have heartbeat monitor, position monitor, then heartbeat inspecting instrument is monitored with position The identification information of instrument is all corresponding with the first priority of data is uploaded.
Wherein, the first priority is highest priority, and third priority is lowest priority.
Step 203, according to the priority for uploading data, data will be uploaded and carry out classification storage in the form of queue.
Further, in this embodiment correspondingly, the upload data of the first priority are stored in first queue, second The upload data of priority are stored in second queue, and the upload data of third priority are stored in third queue.
Step 204, the length of each queue of data is uploaded according to storage, whether control WIFI module is maintained at ap mode In, if so, 205 are thened follow the steps, if it is not, thening follow the steps 209.
Specifically, in the present embodiment, whether the length that the first queue of data is uploaded according to storage is less than the first length threshold Whether value, the length that storage uploads the second queue of data are less than the second length threshold, and storage uploads the third queue of data Whether length is less than third length threshold, to control whether WIFI module is maintained under ap mode.
Further, in this embodiment if the length that storage uploads the first queue of data is less than the first length threshold simultaneously And storage uploads the length of the second queue of data less than the second length threshold and stores the length for the third queue for uploading data Degree is less than third length threshold, then controls WIFI module and be maintained under ap mode;If storage uploads the length of the first queue of data Degree uploaded not less than the first length threshold and/or storage the length of the second queue of data not less than the second length threshold and/or The length that storage uploads the third queue of data is not less than third length threshold, then controls WIFI module and be no longer held in ap mode It is to switch in STA mode down.
Wherein, the first length threshold is less than the second length threshold, and the second length threshold is less than third length threshold.
In the present embodiment, since the upload data of first queue storage are the upload data that body monitors class, second queue The upload data of storage are the upload data of motion monitoring class, and the upload data of third queue storage are to entertain the upload number of class According to so according to the priority for uploading data, it is necessary to uploading in the case of the upload data storage seldom that body monitors class In network server, in the case of the upload data storage of motion monitoring class is appropriate, just need to upload to network server, when In the case of the upload data storage much for entertaining class, just need to upload in network server.So in the present embodiment, first Length threshold is less than the second length threshold, and the second length threshold is less than third length threshold.
Step 205, whether periodically control WIFI module is switched in STA mode, cover and be pre-stored around detection The corresponding wireless network of WIFI accounts, if so, 206 are thened follow the steps, if it is not, thening follow the steps 208.
Specifically, in the present embodiment, since control WIFI module is maintained under ap mode, gateway device cannot detect surrounding Whether with the WIFI account that is pre-stored corresponding wireless network is covered, so, in the present embodiment, controlled in gateway device When WIFI module is maintained under ap mode, periodically controls WIFI module and be switched in STA mode, whether to be covered to surrounding Corresponding with pre-stored WIFI accounts wireless network is detected.
In the present embodiment, detection cycle can be preset, such as can be a few minutes or more than ten minutes.To this this implementation It is not limited in example.
Step 206, it will be uploaded in data transmission to corresponding network server using wireless network.
In the present embodiment, if in first queue, second queue, the data of upload all in need, then want excellent in third queue In the case of first ensureing that first queue successfully uploads, the upload of the data stored in second queue and third queue is carried out.
Step 207, judge that WIFI module is switched to whether the time in STA mode is less than preset time, if so, executing Step 206, if it is not, thening follow the steps 208.
In the present embodiment, in order to ensure that the most of the time of WIFI module is under ap mode, then judge that WIFI module is cut Whether the time changed in STA mode is less than preset time.
Wherein, preset time is preset, and such as can be 5 minutes, 10 minutes etc., or other zone of reasonableness Interior numerical value, to not limited in this present embodiment.
If control WIFI module is switched to whether the time in STA mode is less than preset time, continue to use wireless network Network will upload in data transmission to corresponding network server.
In the present embodiment, data transmission can will be uploaded to corresponding network server using wireless network in step 206 During execution, executes step 207 and judge that WIFI module is switched to whether the time in STA mode is less than preset time.
Step 208, control WIFI module is switched in ap mode, executes step 201.
In the present embodiment, if control WIFI module, which is switched to the time in STA mode, is not less than preset time, either It is no all to upload to the upload data of all storages in corresponding network server, the upload for uploading data, control will be stopped WIFI module processed is switched in ap mode.
Step 209, control WIFI module is switched in STA mode, will upload data transmission to corresponding network server In, execute step 207.
In the present embodiment, if the length that storage uploads the first queue of data is not less than the first length threshold and/or storage The length of the second queue of data is uploaded not less than the second length threshold and/or stores the length for the third queue for uploading data not It less than third length threshold, then controls WIFI module and is switched in STA mode, after being switched in STA mode, be around detection No covering wireless network corresponding with pre-stored WIFI accounts, around covers and pre-stored WIFI account phases if detecting Corresponding wireless network then uses wireless network by the upload data transmission to corresponding network server, if being not present Wireless network corresponding with pre-stored WIFI accounts then uses 3G/4G networks, number will be uploaded by wide area network AM access module According to being transferred in corresponding network server.Step is executed during will upload data transmission to corresponding network server 207。
The operating mode control method of built-in WIFI module provided in this embodiment, the first team of data is uploaded according to storage Whether the length of row is less than the first length threshold, and whether the length that storage uploads the second queue of data is less than the second length threshold Value, whether the length that storage uploads the third queue of data is less than third length threshold, to control whether WIFI module is maintained at Under ap mode, the working condition of WIFI module whether can be promptly controlled according to upload data.And it is kept in WIFI module When under ap mode, periodically controls WIFI module and be switched in STA mode, whether cover and be pre-stored around detection The corresponding wireless network of WIFI accounts;If being covered with wireless network corresponding with the WIFI accounts being pre-stored around detecting Network then uses wireless network that will upload in data transmission to corresponding network server, the upload data of storage can be made in nothing It is uploaded in network server under line network environment, and 3G/4G networks is no longer used to upload data, save the flow of user. And WIFI module is controlled in preset time under STA mode, control WIFI module is in ap mode in the most of the time Under, the wearable device for facilitating user carries out the transmission of data to gateway device.
Fig. 3 is the structural schematic diagram of the operating mode control device embodiment one of WIFI module built in the present invention, the device Carry out data transmission applied between multiple wearable devices and corresponding network server, which is mounted on gateway device In, wide area network AM access module is also equipped in gateway device, as shown in figure 3, the work of built-in WIFI module provided in this embodiment Operation mode control device includes:Receiving module 301, enquiry module 302, memory module 303 and control module 304.
Wherein, receiving module 301, the data upload requests for receiving wearable device transmission, in data upload requests Carry the identification information of wearable device.Enquiry module 302, for according to identification information, inquire pre-stored identification information with The correspondence of data priority is uploaded, the priority for uploading data is obtained.Memory module 303, for according to upload data Priority will upload data and carry out classification storage in the form of queue.Control module 304, for uploading data according to storage The length of each queue, control WIFI module are maintained under ap mode or are switched in STA mode.
The device of the present embodiment can execute the technical solution of embodiment of the method shown in Fig. 1, realization principle and technology effect Seemingly, details are not described herein again for fruit.
Fig. 4 is the structural schematic diagram of the operating mode control device embodiment two of WIFI module built in the present invention;Such as Fig. 4 institutes Show, the operating mode control device of the built-in WIFI module includes:Receiving module 401, enquiry module 402, memory module 403, Control module 404, detection module 405 and transmission module 406.
Wherein, receiving module 401, the data upload requests for receiving wearable device transmission, in data upload requests Carry the identification information of wearable device.Enquiry module 402, for according to identification information, inquire pre-stored identification information with The correspondence of data priority is uploaded, the priority for uploading data is obtained.Memory module 403, for according to upload data Priority will upload data and carry out classification storage in the form of queue.Control module 404, for uploading data according to storage The length of each queue, control WIFI module are maintained under ap mode or are switched in STA mode.
Further, control module 404 are additionally operable to:The length of each queue of data is uploaded according to storage, controls WIFI Module is maintained under ap mode or after being switched in STA mode, if uploading the length of each queue of data according to storage, control WIFI module processed is switched in STA mode, then WIFI module is controlled in preset time switches back into ap mode.
Further, control module 404 is specifically used for:If the length that storage uploads the first queue of data is less than the first length Degree threshold value and the length for storing the second queue for uploading data are less than the second length threshold and store the third for uploading data The length of queue is less than third length threshold, then controls WIFI module and be maintained under ap mode;If storage uploads the first of data The length that the length of queue uploads the second queue of data not less than the first length threshold and/or storage is not less than the second length threshold The length that value and/or storage upload the third queue of data is not less than third length threshold, then controls WIFI module and be switched to STA In pattern;
Wherein, the first length threshold is less than the second length threshold, and the second length threshold is less than third length threshold.
Preferably, control module 404 control WIFI if being additionally operable to upload the length of each queue of data according to storage Module is maintained under ap mode, then periodically control WIFI module is switched in STA mode.Detection module 405, for detecting Whether surrounding covers wireless network corresponding with the WIFI accounts being pre-stored.Transmission module 406, if being detected for detection module It is covered with wireless network corresponding with the WIFI accounts being pre-stored to surrounding, then wireless network is used to be arrived data transmission is uploaded In corresponding network server.
Further, the upload data of body monitoring class are the first priority, and the upload data of motion monitoring class are second Priority, the upload data for entertaining class are third priority.
The operating mode control device of built-in WIFI module provided in this embodiment can execute embodiment of the method shown in Fig. 2 Technical solution, implementing principle and technical effect are similar, and details are not described herein again.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (6)

1. a kind of operating mode control method of built-in WIFI module, which is characterized in that including:
The data upload requests that wearable device is sent are received, the mark letter of wearable device is carried in the data upload requests Breath;
According to the identification information, inquires pre-stored identification information and upload the correspondence of data priority, obtain and upload The priority of data;
According to the priority for uploading data, the upload data are subjected to classification storage in the form of queue;
The length of each queue of data is uploaded according to storage, control WIFI module is maintained under ap mode or is switched to STA moulds In formula;
Wherein, the length of each queue that data are uploaded according to storage, control WIFI module are maintained under ap mode or cut It changes in STA mode and specifically includes:
If the length that storage uploads the first queue of data is less than the first length threshold and stores the second queue for uploading data Length be less than the second length threshold and store upload data third queue length be less than third length threshold, then control WIFI module is maintained under ap mode;
When WIFI module is maintained under ap mode, periodically controls WIFI module and be switched in STA mode;
If storage uploads the length of the first queue of data not less than the first length threshold and/or the second team of storage upload data The length that the length of row uploads the third queue of data not less than the second length threshold and/or storage is not less than third length threshold Value, then control WIFI module and be switched in STA mode;
Wherein, first length threshold is less than second length threshold, and second length threshold is less than third length threshold Value;
The length of each queue that data are uploaded according to storage, control WIFI module are maintained under ap mode or are switched to After in STA mode, further include:
If uploading the length of each queue of data according to storage, control WIFI module is switched in STA mode, then when default Interior control WIFI module switches back into ap mode.
If 2. according to the method described in claim 1, it is characterized in that, according to storage upload data each queue length, Control WIFI module is maintained under ap mode, then further includes:
Periodically control WIFI module is switched in STA mode, detects the WIFI account phases whether surrounding covers and be pre-stored Corresponding wireless network;
It, will be described using wireless network if being covered with wireless network corresponding with the WIFI accounts being pre-stored around detecting It uploads in data transmission to corresponding network server.
3. method according to claim 1 or 2, which is characterized in that the upload data that body monitors class are the first priority, The upload data of motion monitoring class are the second priority, and the upload data for entertaining class are third priority.
4. a kind of operating mode control device of built-in WIFI module, which is characterized in that including:
Receiving module, the data upload requests for receiving wearable device transmission are carried and can be worn in the data upload requests Wear the identification information of equipment;
Enquiry module, for according to the identification information, inquiring pre-stored identification information and uploading the corresponding of data priority Relationship obtains the priority for uploading data;
Memory module, for according to the priority for uploading data, the upload data to be classified in the form of queue Storage;
Control module, the length of each queue for uploading data according to storage, control WIFI module are maintained under ap mode Or it is switched in STA mode;
The control module is specifically used for:
If the length that storage uploads the first queue of data is less than the first length threshold and stores the second queue for uploading data Length be less than the second length threshold and store upload data third queue length be less than third length threshold, then control WIFI module is maintained under ap mode;
When WIFI module is maintained under ap mode, periodically controls WIFI module and be switched in STA mode;
If storage uploads the length of the first queue of data not less than the first length threshold and/or the second team of storage upload data The length that the length of row uploads the third queue of data not less than the second length threshold and/or storage is not less than third length threshold Value, then control WIFI module and be switched in STA mode;
Wherein, first length threshold is less than second length threshold, and second length threshold is less than third length threshold Value;
The control module, is additionally operable to:The length of each queue of data is uploaded according to storage, control WIFI module is maintained at AP Under pattern or after being switched in STA mode, if uploading the length of each queue of data according to storage, control WIFI module is cut It changes in STA mode, then WIFI module is controlled in preset time switches back into ap mode.
5. device according to claim 4, which is characterized in that further include:Detection module and transmission module;
The control module, if being additionally operable to upload the length of each queue of data according to storage, control WIFI module is maintained at Under ap mode, then periodically control WIFI module is switched in STA mode;
The detection module, for whether covering wireless network corresponding with the WIFI accounts being pre-stored around detecting;
Transmission module, if detecting that surrounding is covered with wireless network corresponding with the WIFI accounts being pre-stored for detection module Network, then will be in the upload data transmission to corresponding network server using wireless network.
6. device according to claim 4 or 5, which is characterized in that the upload data that body monitors class are the first priority, The upload data of motion monitoring class are the second priority, and the upload data for entertaining class are third priority.
CN201510563323.6A 2015-09-07 2015-09-07 The operating mode control method and device of built-in WIFI module Active CN105119844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510563323.6A CN105119844B (en) 2015-09-07 2015-09-07 The operating mode control method and device of built-in WIFI module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510563323.6A CN105119844B (en) 2015-09-07 2015-09-07 The operating mode control method and device of built-in WIFI module

Publications (2)

Publication Number Publication Date
CN105119844A CN105119844A (en) 2015-12-02
CN105119844B true CN105119844B (en) 2018-09-14

Family

ID=54667739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510563323.6A Active CN105119844B (en) 2015-09-07 2015-09-07 The operating mode control method and device of built-in WIFI module

Country Status (1)

Country Link
CN (1) CN105119844B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721907A (en) * 2016-02-03 2016-06-29 杨斌 Media player system and control method of media player
CN105722121B (en) * 2016-03-30 2019-03-22 中国联合网络通信集团有限公司 Gateway Working mode switching method and device, gateway, wearable device
CN107529125B (en) * 2016-06-20 2021-05-25 佛山市顺德区美的电热电器制造有限公司 Bluetooth device communication method and communication device
CN107548099B (en) * 2016-06-28 2021-10-22 华为技术有限公司 Data transmission method and device
CN106789279B (en) * 2016-12-26 2020-08-14 新奥科技发展有限公司 Gateway control method, remote control end control method and device
CN106899995B (en) * 2017-03-13 2020-12-22 宇龙计算机通信科技(深圳)有限公司 Data access method and device
CN108737195A (en) * 2018-06-11 2018-11-02 深圳云博科创实业有限公司 A kind of system and method that WI-FI modules are configured by browser
CN114362878B (en) * 2020-09-27 2024-04-09 华为技术有限公司 Data processing method and electronic equipment
CN113037846A (en) * 2021-03-17 2021-06-25 成都新希望金融信息有限公司 Data reporting method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917406A (en) * 2012-08-02 2013-02-06 华为技术有限公司 Data flow shunting method and equipment
CN103517348A (en) * 2013-10-09 2014-01-15 中国联合网络通信集团有限公司 Data transmission method and gateway based on data priority
CN103529793A (en) * 2013-10-18 2014-01-22 中山司南物联网科技有限公司 Control system and control method for Internet of things based on STA (Station) mode and AP (Access Point) mode of WIFI (Wireless Fidelity)
CN103987042A (en) * 2014-05-08 2014-08-13 中国联合网络通信集团有限公司 Access authentication method of terminals and access gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917406A (en) * 2012-08-02 2013-02-06 华为技术有限公司 Data flow shunting method and equipment
CN103517348A (en) * 2013-10-09 2014-01-15 中国联合网络通信集团有限公司 Data transmission method and gateway based on data priority
CN103529793A (en) * 2013-10-18 2014-01-22 中山司南物联网科技有限公司 Control system and control method for Internet of things based on STA (Station) mode and AP (Access Point) mode of WIFI (Wireless Fidelity)
CN103987042A (en) * 2014-05-08 2014-08-13 中国联合网络通信集团有限公司 Access authentication method of terminals and access gateway

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
物联网应用化智能网关技术;唐鼎,秦小伟;《信息通信技术》;20131215(第6期);第1,2,3节 *

Also Published As

Publication number Publication date
CN105119844A (en) 2015-12-02

Similar Documents

Publication Publication Date Title
CN105119844B (en) The operating mode control method and device of built-in WIFI module
US10616080B2 (en) System for diagnosis of robot state
US10484943B2 (en) Power management of a personal area fabric
CN104333498B (en) Control the method and device of smart home device
CN109863735A (en) System and method for network address translation
US20210405173A1 (en) Systems and methods for detecting occupancy using radio signals
CN108781224A (en) Internet of things equipment blank
US20150342482A1 (en) Method for Acquiring and Processing Heart Rate Data
JP2016504056A (en) Distributed systems and methods in sports motion measurement and processing
CN107682241B (en) A kind of smart home device control system based on cloud computing
US20210356575A1 (en) Methods for detecting occupancy in a space using radio signals
Wcislik et al. Wireless health monitoring system
CN104914137A (en) User body surface temperature and humidity monitoring method and device
US10321406B2 (en) Contextually switching from a wireless communication to human body near-field communication for power savings
Rockwood et al. Using a real-time operating system for multitasking in remote patient monitoring
CN110671802A (en) Device, method and system for controlling air conditioner, storage medium and processor
CN105451301B (en) Wearable device gateway networking method and gateway management platform
KR20180036068A (en) A system of controlling internet of things devices and a method for the same
CN108174368A (en) A kind of base station network system of combination wearing kind equipment
Zareian et al. K-Feed-a data-oriented approach to application performance management in cloud
CN109660964A (en) Communication means, device, equipment and the computer-readable medium of sensor
CN104699787B (en) A kind of update method and device of User Activity state recording
WO2023076462A1 (en) Using multiple devices to monitor physiological data
CN108989991A (en) Wearable device and its exercise data sharing method, device
EP3539314A1 (en) Device-side testing and reporting for network infrastructure monitoring

Legal Events

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