CN110213379A - A kind of gateway setting method, system, gateway and computer readable storage medium - Google Patents

A kind of gateway setting method, system, gateway and computer readable storage medium Download PDF

Info

Publication number
CN110213379A
CN110213379A CN201910497455.1A CN201910497455A CN110213379A CN 110213379 A CN110213379 A CN 110213379A CN 201910497455 A CN201910497455 A CN 201910497455A CN 110213379 A CN110213379 A CN 110213379A
Authority
CN
China
Prior art keywords
gateway
control instruction
upload
data
cloud server
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.)
Granted
Application number
CN201910497455.1A
Other languages
Chinese (zh)
Other versions
CN110213379B (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.)
Polytron Technologies Inc In Shenzhen
Original Assignee
Polytron Technologies Inc In Shenzhen
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 Polytron Technologies Inc In Shenzhen filed Critical Polytron Technologies Inc In Shenzhen
Priority to CN201910497455.1A priority Critical patent/CN110213379B/en
Publication of CN110213379A publication Critical patent/CN110213379A/en
Application granted granted Critical
Publication of CN110213379B publication Critical patent/CN110213379B/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
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0023Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the signalling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

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

Abstract

This application discloses a kind of gateway setting method, system, gateway and computer readable storage mediums, applied to the CPU of gateway, receive the upload control instruction that the cloud server connecting with gateway is sent;Parsing uploads control instruction, judges whether to upload data;If so, control gateway uploads data to cloud server, if it is not, gateway is then forbidden to upload data to cloud server.Gateway setting method provided by the present application, the CPU of gateway receives the upload control instruction that cloud server is sent, parsing uploads control instruction, when determining to upload data, just controls gateway and upload data to cloud server, when determining not upload data, gateway is forbidden to upload data to cloud server, so that gateway can not have to upload data to cloud server when server does not need to receive data beyond the clouds, the wasting of resources of gateway is reduced.Gateway setting system, gateway and computer readable storage medium provided by the present application also solve the problems, such as relevant art.

Description

A kind of gateway setting method, system, gateway and computer readable storage medium
Technical field
This application involves internet of things field, more specifically to a kind of gateway setting method, system, gateway and Computer readable storage medium.
Background technique
In Internet of Things, cloud server obtains the data of client transmission by gateway, for example cloud server leads to Bluetooth gateway is crossed to obtain data of electronics price tag etc..
Operating mode between existing cloud server and gateway is: the data of acquisition are reported to cloud clothes by gateway timing Business device.
However, gateway still acquires data and is reported to cloud service when server does not need gateway acquisition data beyond the clouds Device causes the wasting of resources of gateway.
In conclusion the wasting of resources for how reducing gateway is a problem to be solved by those skilled in the art.
Summary of the invention
The purpose of the application is to provide a kind of gateway setting method, can solve how to reduce gateway to a certain extent The technical issues of wasting of resources.Present invention also provides a kind of gateway setting system, gateway and computer readable storage mediums.
To achieve the goals above, the application provides the following technical solutions:
A kind of gateway setting method, the CPU applied to gateway, comprising:
Receive the upload control instruction that the cloud server connecting with the gateway is sent;
The upload control instruction is parsed, judges whether to upload data;
If so, controlling the gateway uploads data to the cloud server, if it is not, the gateway is then forbidden to upload number According to the extremely cloud server.
Preferably, the parsing upload control instruction, judges whether to upload data, comprising:
Parse the upload control instruction;
Judging, which whether there is in the upload control instruction, forbids scan instruction, if so, determine to forbid uploading data, if It is no, then determine to upload data.
Preferably, the parsing upload control instruction, judges whether to upload data, comprising:
Parse the upload control instruction;
Judge with the presence or absence of scan instruction is started in the upload control instruction, if so, determining to upload data;
Judge with the presence or absence of scanning duration in the upload control instruction, if so, determining that the scanning duration is corresponding Time domestic demand uploads data, and determines to forbid uploading data after the scanning duration corresponding time.
Preferably, after the parsing upload control instruction, further includes:
Judge whether comprising filtering instructions in the upload control instruction, if so, according to the filtering instructions to described The data that gateway is sent to the cloud server are filtered.
Preferably, after the parsing upload control instruction, further includes:
Judge whether comprising SLEEP instruction in the upload control instruction, if so, controlling the gateway enters sleep shape State.
Preferably, the gateway includes Bluetooth gateway;
After the parsing upload control instruction, further includes:
Judge with the presence or absence of BLE power command is disconnected in the upload control instruction, if so, disconnecting the electricity of the BLE Source;
Judge with the presence or absence of Wi-Fi hotspot instruction is disconnected in the upload control instruction, if so, disconnecting the WiFi heat Point.
Preferably, after the parsing upload control instruction, further includes:
Judge with the presence or absence of disabling peripheral hardware instruction in the upload control instruction, if so, disabling the corresponding of the gateway Peripheral hardware.
A kind of gateway setting system, the CPU applied to gateway, comprising:
First receiving module, the upload control instruction sent for receiving the cloud server connecting with the gateway;
First judgment module judges whether to upload data for parsing the upload control instruction;If so, control institute It states gateway and uploads data to the cloud server, if it is not, the gateway is then forbidden to upload data to the cloud server.
A kind of gateway characterized by comprising
Memory, for storing computer program;
CPU, when for executing the computer program realize as above any gateway setting method the step of.
A kind of computer readable storage medium is stored with computer program in the computer readable storage medium, described The step of as above any gateway setting method is realized when computer program is executed by processor.
A kind of gateway setting method provided by the present application receives the cloud service connecting with gateway applied to the CPU of gateway The upload control instruction that device is sent;Parsing uploads control instruction, judges whether to upload data;If so, control gateway uploads number According to cloud server, if it is not, gateway is then forbidden to upload data to cloud server.A kind of gateway setting side provided by the present application Method, the CPU of gateway receive the upload control instruction that cloud server is sent, and parsing uploads control instruction, are determining to upload data When, it just controls gateway upload data and forbids gateway to upload data to cloud when determining not upload data to cloud server and take Business device, so that gateway can not have to upload data to cloud server, drop when server does not need to receive data beyond the clouds The low wasting of resources of gateway.A kind of gateway setting system, gateway and computer readable storage medium provided by the present application also solve Relevant art of having determined problem.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of first pass figure of gateway setting method provided by the embodiments of the present application;
Fig. 2 is the structural schematic diagram that system is arranged in a kind of gateway provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of gateway provided by the embodiments of the present application;
Fig. 4 is a kind of another structural schematic diagram of gateway provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
In Internet of Things, cloud server obtains the data of client transmission by gateway, for example cloud server leads to Bluetooth gateway is crossed to obtain data of electronics price tag etc..Operating mode between existing cloud server and gateway is: gateway is fixed When the data of acquisition are reported to cloud server.However, gateway is still adopted when server does not need gateway acquisition data beyond the clouds Collection data are simultaneously reported to cloud server, cause the wasting of resources of gateway.A kind of gateway setting method provided by the present application can be with Reduce the wasting of resources of gateway.
Referring to Fig. 1, Fig. 1 is a kind of first pass figure of gateway setting method provided by the embodiments of the present application.
A kind of gateway setting method provided by the embodiments of the present application, CPU (the Central Processing applied to gateway Unit, central processing unit), it may comprise steps of:
Step S101: the upload control instruction that the cloud server connecting with gateway is sent is received.
In practical application, the CPU of gateway can first receive the upload control that the cloud server connecting with gateway is sent and refer to It enables, the type of gateway and cloud server can be determine according to actual needs.Uploading control instruction can be by cloud server root It is determined according to own data reception situation, for example cloud server, when needing to collect data, can send allows to upload data Upload control instruction to gateway, when not needing to collect data, can send the upload control instruction forbidding uploading data to Gateway etc..
Step S102: parsing uploads control instruction, judges whether to upload data, if so, S103 is thened follow the steps, if it is not, Then follow the steps S104.
Step S103: control gateway uploads data to cloud server.
Step S104: gateway is forbidden to upload data to cloud server.
In practical application, the CPU of gateway can parse upload control instruction, and root after receiving upload control instruction Judge whether to upload data according to parsing result, if it is determined that uploading data, then controls gateway and upload data to cloud server, if sentencing It is fixed not upload data, then forbid gateway to upload data to cloud server.It should be pointed out that the CPU of gateway is uploaded in control gateway When data to cloud server, data are uploaded to cloud server by the WiFi module that can control gateway;In addition, gateway CPU can also forbid gateway to be scanned after forbidding gateway to upload data to cloud server to forbid gateway to obtain data.
In practical application, the data for the ease of cloud server control gateway upload situation, and cloud server can be right It uploads control instruction to be managed, then the CPU of gateway uploads control instruction in parsing, when judging whether upload data, can solve Analysis uploads control instruction;Judgement is uploaded with the presence or absence of scan instruction is forbidden in control instruction, if so, determining to forbid uploading number According to if it is not, then determining to upload data.Namely cloud server can forbid scan instruction and control on gateway forbids by sending Data are passed to cloud server, can forbid scan instruction by not sending and control gateway and upload data to cloud server Deng;It should be pointed out that gateway can be set as not receiving when forbidding scan instruction, default need to upload data to cloud server Deng.
In practical application, cloud server by upload control instruction control gateway data upload situation when, in order to Data whether are uploaded convenient for gateway is clear, and the CPU of gateway is parsing uploads control instruction, can be with when judging whether to upload data Parsing uploads control instruction;Judgement is uploaded with the presence or absence of scan instruction is started in control instruction, if so, determining to upload data; Judgement is uploaded with the presence or absence of scanning duration in control instruction, if so, determine that the corresponding time domestic demand of scanning duration uploads data, And determine to forbid uploading data after scanning the duration corresponding time.It should be pointed out that in concrete application scene, cloud server Special setting can be carried out to scanning duration, make gateway constantly upload data to cloud server with this, for example can define The default word constantly scanned just controls gateway and constantly uploads data to cloud service after the CPU of gateway parses the default word Device.
In practical application, after cloud server receives the data of gateway transmission, partial data therein may be only needed, So gateway is sent in the data of cloud server there are invalid data, and the network that the transmission of invalid data will increase gateway is opened Pin, and increase the performance cost of cloud server, in order to reduce the network overhead of gateway and the performance cost of cloud server, Whether the CPU of gateway can also judge to upload comprising filtering instructions in control instruction after parsing uploads control instruction, if It is then to be filtered according to the data that filtering instructions are sent to cloud server to gateway.Specifically, cloud server can incite somebody to action Specific filter expression is sent to gateway by uploading control instruction, so that the CPU of gateway is according to the filter expression logarithm According to accurately being filtered.
It should be pointed out that the application herein limit scanning duration, filtering instructions, filter expression specific structure, than It such as scans duration, filtering instructions and filter expression and may be embodied in that start scan instruction medium, cloud service is reduced with this The complexity of command adapted thereto is arranged in device, and the regularity for uploading control instruction can be enhanced, and parses upload convenient for the CPU of gateway Control instruction.
In practical application, cloud server when not needing gateway collection data, gateway may also under operating mode, The resource of gateway is wasted, in order to reduce the probability of gateway waste of resource, cloud server can also send SLEEP instruction to gateway, Whether refer to comprising sleep correspondingly, the CPU of gateway after parsing uploads control instruction, can also judge to upload in control instruction It enables, if so, control gateway enters sleep state.When control gateway enters sleep state, itself can also enter the CPU of gateway Sleep state, but working condition will be entered after receiving instruction.
In practical application, gateway involved in the application can be Bluetooth gateway, correspondingly, in order to reduce Bluetooth gateway Wasting of resources situation, cloud server can BLE (Bluetooth Low Energy, low-power consumption bluetooth) moulds to Bluetooth gateway Block, Wi-Fi hotspot etc. are managed, for example control the power supply that gateway disconnects BLE by disconnecting BLE power command, reduce BLE's Power consumption disconnects Wi-Fi hotspot by disconnecting Wi-Fi hotspot instruction control gateway, reduces the electric quantity consumption etc. of Wi-Fi hotspot, accordingly , the CPU of gateway can also judge to upload in control instruction after parsing uploads control instruction with the presence or absence of disconnection BLE electricity Sourse instruction, if so, disconnecting the power supply of BLE;Judgement is uploaded with the presence or absence of disconnection Wi-Fi hotspot instruction in control instruction, if so, Then disconnect Wi-Fi hotspot.
In practical application, gateway may be connected with various peripheral hardwares, such as lamp etc., and the peripheral hardware of gateway connection will also result in gateway The wasting of resources, in order to further decrease the wasting of resources situation of gateway, cloud server can also carry out the peripheral hardware of gateway Control, then the CPU of gateway can also judge to upload outer with the presence or absence of disabling in control instruction after parsing uploads control instruction If instruction, if so, the corresponding peripheral hardware of disabling gateway.Specifically, cloud server can be by the mark for the peripheral hardware for needing to disable Information is sent to gateway, so that the CPU of gateway disables corresponding peripheral hardware according to the identification information, is realized with this to the accurate of peripheral hardware Control.
It should be pointed out that due to gateway executes when not needing scan operation into sleep pattern, disconnects BLE power supply, disconnected A possibility that opening the operations such as Wi-Fi hotspot, disabling peripheral hardware is high, so SLEEP instruction, disconnection BLE power supply refer in concrete application scene Enable, disconnect Wi-Fi hotspot instruction, disabling peripheral hardware instruction etc. instructions may be embodied in stop scan instruction in so that cloud server Quickly the working condition of gateway can be configured, while but also the CPU of gateway can be quickly in uploading control instruction Parse command adapted thereto.In addition, in order to improve the information exchange rate between cloud server and gateway, gateway can pass through MQTT (message queue telemetering transmission) agreement and cloud server carry out information exchange.
A kind of gateway setting method provided by the present application receives the cloud service connecting with gateway applied to the CPU of gateway The upload control instruction that device is sent;Parsing uploads control instruction, judges whether to upload data;If so, control gateway uploads number According to cloud server, if it is not, gateway is then forbidden to upload data to cloud server.A kind of gateway setting side provided by the present application Method, the CPU of gateway receive the upload control instruction that cloud server is sent, and parsing uploads control instruction, are determining to upload data When, it just controls gateway upload data and forbids gateway to upload data to cloud when determining not upload data to cloud server and take Business device, so that gateway can not have to upload data to cloud server, drop when server does not need to receive data beyond the clouds The low wasting of resources of gateway.
Present invention also provides a kind of gateways, and system is arranged, with a kind of gateway setting side provided by the embodiments of the present application The correspondence effect that method has.Referring to Fig. 2, Fig. 2 is the structural representation that system is arranged in a kind of gateway provided by the embodiments of the present application Figure.
System is arranged applied to the CPU of gateway in a kind of gateway provided by the embodiments of the present application
First receiving module 101, the upload control instruction sent for receiving the cloud server connecting with gateway;
First judgment module 102 uploads control instruction for parsing, and judges whether to upload data;If so, control gateway Data are uploaded to cloud server, if it is not, gateway is then forbidden to upload data to cloud server.
System is arranged in a kind of gateway provided by the embodiments of the present application, and applied to the CPU of gateway, first judgment module be can wrap It includes:
First resolution unit uploads control instruction for parsing;
First judging unit, for judging to upload with the presence or absence of scan instruction is forbidden in control instruction, if so, determining to prohibit Data are only uploaded, if it is not, then determining to upload data.
System is arranged in a kind of gateway provided by the embodiments of the present application, and applied to the CPU of gateway, first judgment module be can wrap It includes:
Second resolution unit uploads control instruction for parsing;
Second judgment unit, for judging to upload with the presence or absence of scan instruction is started in control instruction, if so, on determining Pass data;
Third judging unit, for judging to upload with the presence or absence of scanning duration in control instruction, if so, when determining scanning Long corresponding time domestic demand uploads data, and determines to forbid uploading data after scanning the duration corresponding time.
System is arranged applied to the CPU of gateway in a kind of gateway provided by the embodiments of the present application
Second judgment module after uploading control instruction for first judgment module parsing, judges to upload in control instruction It whether include filtering instructions, if so, being filtered according to the data that filtering instructions are sent to cloud server to gateway.
System is arranged applied to the CPU of gateway in a kind of gateway provided by the embodiments of the present application
Third judgment module after uploading control instruction for first judgment module parsing, judges to upload in control instruction It whether include SLEEP instruction, if so, control gateway enters sleep state.
System is arranged in a kind of gateway provided by the embodiments of the present application, and applied to the CPU of gateway, gateway includes Bluetooth gateway; Correspondingly, can also include:
4th judgment module after uploading control instruction for first judgment module parsing, judges to upload in control instruction With the presence or absence of BLE power command is disconnected, if so, disconnecting the power supply of BLE;
5th judgment module, for judging to upload with the presence or absence of Wi-Fi hotspot instruction is disconnected in control instruction, if so, disconnected Open Wi-Fi hotspot.
System is arranged applied to the CPU of gateway in a kind of gateway provided by the embodiments of the present application
6th judgment module after uploading control instruction for first judgment module parsing, judges to upload in control instruction With the presence or absence of disabling peripheral hardware instruction, if so, the corresponding peripheral hardware of disabling gateway.
Present invention also provides a kind of gateway and computer readable storage mediums, all have provided by the embodiments of the present application A kind of correspondence effect that gateway setting method has.Referring to Fig. 3, Fig. 3 is a kind of knot of gateway provided by the embodiments of the present application Structure schematic diagram.
A kind of gateway provided by the embodiments of the present application, including memory 201 and CPU202 are stored with meter in memory 201 Calculation machine program, CPU202 realize following steps when executing the computer program stored in memory 201:
Receive the upload control instruction that the cloud server connecting with gateway is sent;
Parsing uploads control instruction, judges whether to upload data;
If so, control gateway uploads data to cloud server, if it is not, gateway is then forbidden to upload data to cloud service Device.
A kind of gateway provided by the embodiments of the present application, including memory 201 and CPU202 are stored with meter in memory 201 Calculation machine program, CPU202 are implemented as follows step when executing the computer program stored in memory 201: parsing uploads control Instruction;Judgement is uploaded with the presence or absence of scan instruction is forbidden in control instruction, if so, determining to forbid uploading data, if it is not, then sentencing Surely data are uploaded.
A kind of gateway provided by the embodiments of the present application, including memory 201 and CPU202 are stored with meter in memory 201 Calculation machine program, CPU202 are implemented as follows step when executing the computer program stored in memory 201: parsing uploads control Instruction;Judgement is uploaded with the presence or absence of scan instruction is started in control instruction, if so, determining to upload data;Judgement uploads control With the presence or absence of scanning duration in instruction, if so, determine that the corresponding time domestic demand of scanning duration uploads data, and when determining scanning Forbid uploading data after the long corresponding time.
A kind of gateway provided by the embodiments of the present application, including memory 201 and CPU202 are stored with meter in memory 201 Calculation machine program, CPU202 are implemented as follows step when executing the computer program stored in memory 201: parsing uploads control After instruction, judge to upload whether comprising filtering instructions in control instruction, if so, being sent to cloud to gateway according to filtering instructions The data of end server are filtered.
A kind of gateway provided by the embodiments of the present application, including memory 201 and CPU202 are stored with meter in memory 201 Calculation machine program, CPU202 are implemented as follows step when executing the computer program stored in memory 201: parsing uploads control After instruction, judge to upload whether comprising SLEEP instruction in control instruction, if so, control gateway enters sleep state.
A kind of gateway provided by the embodiments of the present application, including memory 201 and CPU202 are stored with meter in memory 201 Calculation machine program, CPU202 are implemented as follows step when executing the computer program stored in memory 201: gateway includes bluetooth Gateway;After parsing uploads control instruction, judge to upload with the presence or absence of BLE power command is disconnected in control instruction, if so, disconnected Open the power supply of BLE;Judgement is uploaded with the presence or absence of Wi-Fi hotspot instruction is disconnected in control instruction, if so, disconnecting Wi-Fi hotspot.
A kind of gateway provided by the embodiments of the present application, including memory 201 and CPU202 are stored with meter in memory 201 Calculation machine program, CPU202 are implemented as follows step when executing the computer program stored in memory 201: parsing uploads control After instruction, judge to upload with the presence or absence of disabling peripheral hardware instruction in control instruction, if so, the corresponding peripheral hardware of disabling gateway.
Referring to Fig. 4, can also include: to be connect with processor 202 in another kind gateway provided by the embodiments of the present application Input port 203 is used for transmission the extraneous order inputted to processor 202;The display unit 204 connecting with processor 202 is used In video-stream processor 202 processing result to the external world;The communication module 205 being connect with processor 202, for realizing gateway and outside The communication on boundary.Display unit 204 can make display etc. for display panel, laser scanning;Communication used by communication module 205 Mode includes but is not limited to mobile high definition chained technology (HML), universal serial bus (USB), high-definition media interface (HDMI), be wirelessly connected: adopting wireless fidelity technology (WiFi), the low-power consumption bluetooth communication technology, is based on Bluetooth Communication Technology The communication technology of IEEE802.11s.
A kind of computer readable storage medium provided by the embodiments of the present application is stored with meter in computer readable storage medium Calculation machine program, realizes following steps when computer program is executed by processor:
Receive the upload control instruction that the cloud server connecting with gateway is sent;
Parsing uploads control instruction, judges whether to upload data;
If so, control gateway uploads data to cloud server, if it is not, gateway is then forbidden to upload data to cloud service Device.
A kind of computer readable storage medium provided by the embodiments of the present application is stored with meter in computer readable storage medium Calculation machine program is implemented as follows step when computer program is executed by processor: parsing uploads control instruction;Transmission control in judgement With the presence or absence of scan instruction is forbidden in system instruction, if so, determining to forbid uploading data, if it is not, then determining to upload data.
A kind of computer readable storage medium provided by the embodiments of the present application is stored with meter in computer readable storage medium Calculation machine program is implemented as follows step when computer program is executed by processor: parsing uploads control instruction;Transmission control in judgement With the presence or absence of scan instruction is started in system instruction, if so, determining to upload data;Judgement is uploaded to whether there is in control instruction and be swept Duration is retouched, if so, determining that the corresponding time domestic demand of scanning duration uploads data, and determines that scanning the duration corresponding time terminates After forbid upload data.
A kind of computer readable storage medium provided by the embodiments of the present application is stored with meter in computer readable storage medium Calculation machine program is implemented as follows step when computer program is executed by processor: after parsing uploads control instruction, in judgement Whether include filtering instructions, if so, being sent to the data of cloud server to gateway according to filtering instructions if passing in control instruction It is filtered.
A kind of computer readable storage medium provided by the embodiments of the present application is stored with meter in computer readable storage medium Calculation machine program is implemented as follows step when computer program is executed by processor: after parsing uploads control instruction, in judgement Whether include SLEEP instruction, if so, control gateway enters sleep state if passing in control instruction.
A kind of computer readable storage medium provided by the embodiments of the present application is stored with meter in computer readable storage medium Calculation machine program, is implemented as follows step when computer program is executed by processor: gateway includes Bluetooth gateway;Transmission control in parsing After system instruction, judge to upload with the presence or absence of BLE power command is disconnected in control instruction, if so, disconnecting the power supply of BLE;Sentence It is disconnected to upload with the presence or absence of Wi-Fi hotspot instruction is disconnected in control instruction, if so, disconnecting Wi-Fi hotspot.
A kind of computer readable storage medium provided by the embodiments of the present application is stored with meter in computer readable storage medium Calculation machine program is implemented as follows step when computer program is executed by processor: after parsing uploads control instruction, in judgement It passes with the presence or absence of disabling peripheral hardware instruction in control instruction, if so, the corresponding peripheral hardware of disabling gateway.
Computer readable storage medium involved in the application includes random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field Any other form of storage medium well known to interior.
Relevant portion in a kind of gateway setting system provided by the embodiments of the present application, gateway and computer readable storage medium Explanation refer to the detailed description of corresponding part in a kind of gateway setting method provided by the embodiments of the present application, it is no longer superfluous herein It states.In addition, in above-mentioned technical proposal provided by the embodiments of the present application with to correspond to technical solution realization principle in the prior art consistent Part and unspecified, in order to avoid excessively repeat.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The foregoing description of the disclosed embodiments makes those skilled in the art can be realized or use the application.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit or scope of the application, to realize in other embodiments.Therefore, the application will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest Range.

Claims (10)

1. a kind of gateway setting method, which is characterized in that the CPU applied to gateway, comprising:
Receive the upload control instruction that the cloud server connecting with the gateway is sent;
The upload control instruction is parsed, judges whether to upload data;
If so, controlling the gateway uploads data to the cloud server, if it is not, the gateway is then forbidden to upload data extremely The cloud server.
2. the method according to claim 1, wherein the parsing upload control instruction, judge whether on Pass data, comprising:
Parse the upload control instruction;
Judging, which whether there is in the upload control instruction, forbids scan instruction, if so, determine to forbid uploading data, if it is not, Then determine to upload data.
3. the method according to claim 1, wherein the parsing upload control instruction, judge whether on Pass data, comprising:
Parse the upload control instruction;
Judge with the presence or absence of scan instruction is started in the upload control instruction, if so, determining to upload data;
Judge with the presence or absence of scanning duration in the upload control instruction, if so, determining the scanning duration corresponding time Domestic demand uploads data, and determines to forbid uploading data after the scanning duration corresponding time.
4. method according to any one of claims 1 to 3, which is characterized in that the parsing upload control instruction it Afterwards, further includes:
Judge whether comprising filtering instructions in the upload control instruction, if so, according to the filtering instructions to the gateway The data for being sent to the cloud server are filtered.
5. according to the method described in claim 4, it is characterized in that, after the parsing upload control instruction, further includes:
Judge whether comprising SLEEP instruction in the upload control instruction, if so, controlling the gateway enters sleep state.
6. according to the method described in claim 4, it is characterized in that, the gateway includes Bluetooth gateway;
After the parsing upload control instruction, further includes:
Judge with the presence or absence of BLE power command is disconnected in the upload control instruction, if so, disconnecting the power supply of the BLE;
Judge with the presence or absence of Wi-Fi hotspot instruction is disconnected in the upload control instruction, if so, disconnecting the Wi-Fi hotspot.
7. according to the method described in claim 4, it is characterized in that, after the parsing upload control instruction, further includes:
Judge with the presence or absence of disabling peripheral hardware instruction in the upload control instruction, if so, disabling the corresponding peripheral hardware of the gateway.
8. system is arranged in a kind of gateway, which is characterized in that the CPU applied to gateway, comprising:
First receiving module, the upload control instruction sent for receiving the cloud server connecting with the gateway;
First judgment module judges whether to upload data for parsing the upload control instruction;If so, controlling the net It shuts and passes data to the cloud server, if it is not, the gateway is then forbidden to upload data to the cloud server.
9. a kind of gateway characterized by comprising
Memory, for storing computer program;
CPU realizes the step of the gateway setting method as described in any one of claim 1 to 7 when for executing the computer program Suddenly.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes the step of the gateway setting method as described in any one of claim 1 to 7 when the computer program is executed by processor Suddenly.
CN201910497455.1A 2019-06-10 2019-06-10 Gateway setting method, system, gateway and computer readable storage medium Active CN110213379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910497455.1A CN110213379B (en) 2019-06-10 2019-06-10 Gateway setting method, system, gateway and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910497455.1A CN110213379B (en) 2019-06-10 2019-06-10 Gateway setting method, system, gateway and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110213379A true CN110213379A (en) 2019-09-06
CN110213379B CN110213379B (en) 2022-05-10

Family

ID=67791812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910497455.1A Active CN110213379B (en) 2019-06-10 2019-06-10 Gateway setting method, system, gateway and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110213379B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347140A (en) * 2020-10-19 2021-02-09 上海微亿智造科技有限公司 Industrial big data oriented data processing method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489294A (en) * 2009-02-18 2009-07-22 华为技术有限公司 Method, router and network appliance for regulating power
KR101152530B1 (en) * 2011-01-07 2012-06-08 (주) 싱크펄스 Smart gateway device for intelligent electric energy network system
CN106549864A (en) * 2016-12-06 2017-03-29 上海电器科学研究院 A kind of cloud gateway and its communication means
CN107995122A (en) * 2017-12-08 2018-05-04 深圳市田言智能科技有限公司 A kind of energy-conserving intelligent router
CN108650325A (en) * 2018-05-17 2018-10-12 浙江中控技术股份有限公司 A kind of industrial data acquisition method, relevant device and system
CN108667870A (en) * 2017-03-30 2018-10-16 华为技术有限公司 A kind of methods, devices and systems that IoT data report

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489294A (en) * 2009-02-18 2009-07-22 华为技术有限公司 Method, router and network appliance for regulating power
KR101152530B1 (en) * 2011-01-07 2012-06-08 (주) 싱크펄스 Smart gateway device for intelligent electric energy network system
CN106549864A (en) * 2016-12-06 2017-03-29 上海电器科学研究院 A kind of cloud gateway and its communication means
CN108667870A (en) * 2017-03-30 2018-10-16 华为技术有限公司 A kind of methods, devices and systems that IoT data report
CN107995122A (en) * 2017-12-08 2018-05-04 深圳市田言智能科技有限公司 A kind of energy-conserving intelligent router
CN108650325A (en) * 2018-05-17 2018-10-12 浙江中控技术股份有限公司 A kind of industrial data acquisition method, relevant device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347140A (en) * 2020-10-19 2021-02-09 上海微亿智造科技有限公司 Industrial big data oriented data processing method and system

Also Published As

Publication number Publication date
CN110213379B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN104094644B (en) System and method for configuring radio access network parameters for user equipment connected to a wireless network system
EP2945418B1 (en) Method and apparatus for adjusting network configuration
CN103379593B (en) A kind of terminal power saving method and terminal power saving device and network side battery saving arrangement
CN102387022B (en) A kind of POE method and apparatus
ES2284474T3 (en) SYSTEM FOR SUPERVISING AND CONTROLLING A SET OF APPLIANCES.
CN104735814A (en) Access method, system and related device for automatically getting access to WiFi network
CN102769842B (en) Small data quantity service optimization method in LTE network and network equipment
EP4040848A1 (en) Method and apparatus for determining measurement time, method and apparatus for determining camped cell, method and apparatus for configuring neighbouring cell list, method and apparatus for determining parameters, device, and storage medium
EP2515562A1 (en) Method and system for acquiring mobility related information of equipment and optimizing configuration
KR101971259B1 (en) Operation Management Device and Method to Upgrade Program installed Internet of Things Communication Module
CN104865835A (en) Intelligent household system based on ZigBee
CN106664652B (en) Method and terminal for awakening wireless fidelity network
CN103686854A (en) Method and device for controlling AP
CN102542218B (en) Method and system for transmitting radio frequency identification (RFID) data, and hardware platform for RFID label
CN110933721A (en) Waking up radio sector roaming
CN105636169A (en) Hot spot scanning method, hot spot scanning device and terminal
CN110213379A (en) A kind of gateway setting method, system, gateway and computer readable storage medium
CN105321470A (en) Control method and control device for accessing display screen control system into Internet
CN104684015B (en) Plant maintenance method and apparatus
CN105070022A (en) Meter end device and wireless meter reading system and method
US10243373B2 (en) Power control system, power control device, server device, and method for controlling power control system
CN105357747B (en) A kind of method and device reducing wireless access point energy consumption
CN112351084B (en) Data transmission method and device, processor and electronic device
EP2530998A1 (en) Home gateway and method adaptive for universal serial bus (usb) wireless data card
CN105430719A (en) Wireless access point terminal and intelligent power saving method thereof

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