CN107018578B - Data transmission method and device - Google Patents
Data transmission method and device Download PDFInfo
- Publication number
- CN107018578B CN107018578B CN201710188106.2A CN201710188106A CN107018578B CN 107018578 B CN107018578 B CN 107018578B CN 201710188106 A CN201710188106 A CN 201710188106A CN 107018578 B CN107018578 B CN 107018578B
- Authority
- CN
- China
- Prior art keywords
- emergency data
- smart home
- emergency
- data packet
- data
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/20—Manipulation of established connections
- H04W76/22—Manipulation of transport tunnels
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/12—Setup of transport tunnels
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of data transmission method and devices, belong to smart home field.The described method includes: confirmly detecting emergency data;Using the network protocol of cellular network, the emergency data is packaged, obtains emergency data packet to be transmitted;The emergency data packet is sent to the cellular network, the emergency data packet is sent to server by the cellular network and is handled.In the present invention, if smart home device data to be transmitted are the emergency data packet after emergency data encapsulation, then the emergency data packet is routed directly to cellular network, without being forwarded by gateway, reduce the time delay of data transmission, it is ensured that quickly and effectively transmission and processing are carried out to emergency data.
Description
Technical field
The present invention relates to smart home field more particularly to a kind of data transmission methods and device.
Background technique
With the development of technology of Internet of things, smart home system is come into being.The core of smart home system is intelligent family
Occupy between internal system smart home device and the data of smart home device and external network transmitted, above-mentioned data transmit from
The support of communication network is not opened.Smart home system can set up a reliable communication network using certain networking mode,
To realize smart home system inside and external data transmission.
Currently, smart home system generallys use home gateway+WiFi's (Wireless Fidelity, Wireless Fidelity)
Networking mode is provided with gateway in the smart home system, and the smart home device in the smart home system not only wraps
Household appliances equipment, such as air-conditioning, refrigerator, washing machine, TV are included, also includes the sensors classes such as door lock, fuel gas alarm, door and window magnetic
Equipment.These smart home devices pass through WiFi and connect with gateway, and are forwarded by gateway to data.Base
Data transmission method in the networking mode is as follows: when any smart home device in the smart home system is counted
When according to transmission, gateway can be first sent the data to, server is sent to by gateway and is handled.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
In above-mentioned technology, the data of smart home device transmission require to be forwarded by gateway, gateway
It is possible that the case where load too high or power-off, the time delay for causing data to be transmitted is longer or cannot achieve forwarding.For intelligence
Security system in house system not can guarantee and carry out quickly and effectively to the security monitor alarm class emergency data of the security system
Transmission and processing.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of data transmission method and devices.It is described
Technical solution is as follows:
In a first aspect, providing a kind of data transmission method, which comprises
Confirmly detect emergency data;
Using the network protocol of cellular network, the emergency data is packaged, obtains emergency data packet to be transmitted;
The emergency data packet is sent to the cellular network, is sent the emergency data packet by the cellular network
It is handled to server.
In the first implementation of first aspect, the emergency data that confirmly detects includes:
If the parameter value of the specified data detected is greater than preset threshold, the parameter value of the specified data is determined
For the emergency data.
In second of implementation of first aspect, the method also includes:
When confirmly detecting non-emergency data, using LAN protocol, the non-emergency data is packaged, is obtained
Non-emergency data packet to be transmitted;
If the smart home device is currently powered by external power supply, the non-emergency data packet is sent to intelligence
The gateway of house system is forwarded to the server by the gateway or other smart home devices is handled;
It is powered if the smart home device is currently not by external power supply, the non-emergency data packet is delayed
It deposits, when the smart home device restores external power supply power supply, the non-emergency data packet is transmitted.
In the third implementation of first aspect, the non-emergency data includes periodically acquiring the information of class, setting
The information that intelligent linkage and equipment are interacted with external network between standby.
In the 4th kind of implementation of first aspect, the emergency data includes security monitor alarm class data.
Second aspect, provides a kind of data transmission device, and described device includes:
Determining module, for confirmly detecting emergency data;
Package module is packaged the emergency data, obtains to be transmitted for the network protocol using cellular network
Emergency data packet;
Sending module will be described by the cellular network for the emergency data packet to be sent to the cellular network
Emergency data packet is sent to server and is handled.
In the first implementation of second aspect, the determining module, if specified data for detecting
Parameter value is greater than preset threshold, then the parameter value of the specified data is determined as the emergency data.
In second of implementation of second aspect, described device further includes cache module:
The determining module is also used to confirmly detect non-emergency data;
The package module is also used to be packaged the non-emergency data using LAN protocol, obtained to be transmitted
Non-emergency data packet;
The sending module is currently powered by external power supply if being also used to the smart home device, will be described non-
Emergency data packet is sent to the gateway of smart home system, is forwarded to the server or other intelligence by the gateway
Energy home equipment is handled;
The cache module is powered if be currently not for the smart home device by external power supply, will be described
Non-emergency data packet is cached, when the smart home device restores external power supply power supply, to the non-emergency data packet
It is transmitted.
In the third implementation of second aspect, the non-emergency data includes periodically acquiring the information of class, setting
The information that intelligent linkage and equipment are interacted with external network between standby.
In the 4th kind of implementation of second aspect, the emergency data includes security monitor alarm class data.
Technical solution provided in an embodiment of the present invention has the benefit that
It, can be by the emergency when smart home device data to be transmitted are the emergency data packet after emergency data encapsulates
Data packet is transmitted directly to cellular network, and the emergency data packet is sent to server by cellular network and is handled.Emergency number
According to without being forwarded by gateway, the load of gateway is alleviated, the time delay of data transmission is reduced, it is ensured that
Quickly and effectively transmission and processing are carried out to emergency data.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of implementation environment schematic diagram of data transmission method provided in an embodiment of the present invention.
Fig. 2 is a kind of flow chart of data transmission method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of data transmission method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of data transmission device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of smart home device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of smart home device 600 provided in an embodiment of the present invention;
Fig. 7 is a kind of block diagram of data transmission device 700 provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is a kind of implementation environment schematic diagram of data transmission method provided in an embodiment of the present invention.As shown in Figure 1, should
Implementation environment includes at least two smart home devices 101 (only with two smart home devices, i.e. smart home device 1 in figure
For smart home device 2), gateway 102, base station 103 and server 104.
The smart home device 101 can be the intelligent security guards such as intelligent camera, intelligent door lock, combustible gas leak detection device
The intelligent appliances such as equipment and smart television, intelligent socket, intelligent air condition.The smart home device 101 can be by wirelessly protecting
Very short-range wireless communication technologies, the access gateway such as (Wireless Fidelity, WiFi), bluetooth, ZigBee protocol (Zigbee) is set
Standby 102 to connect network, and is forwarded by the gateway 102 to data.The smart home device 101 can also pass through
Low-power consumption wan technology accesses honeycomb Internet of Things, and data to be transmitted are sent directly to base station and are forwarded.
The gateway 102 can be the router being arranged in smart home system or other can be used for carrying out network insertion
Smart home device.
The base station 103 can be provided by mobile communication carrier, be responsible for the reception and forwarding of data.
The server 104, which can be, provides the server of data processing service for smart home system.
Fig. 2 is a kind of flow chart of data transmission method provided in an embodiment of the present invention.Referring to fig. 2, this method comprises:
201, emergency data is confirmly detected.
202, using the network protocol of cellular network, which is packaged, obtains emergency data to be transmitted
Packet.
203, the emergency data packet is sent to the cellular network, the emergency data packet is sent to clothes by the cellular network
Business device is handled.
Method provided in an embodiment of the present invention can be incited somebody to action when smart home device data to be transmitted are emergency data
The emergency data is transmitted directly to cellular network, and the emergency data is sent to server by cellular network and is handled.Emergency
Data alleviate the load of gateway, reduce the time delay of data transmission, Ke Yibao without being forwarded by gateway
Card carries out quickly and effectively transmission and processing to emergency data.
Optionally, this confirmly detects emergency data and includes:
If the parameter value of the specified data detected is greater than preset threshold, the parameter value of data is specified to be determined as this
The emergency data.
Optionally, this method further include:
When detecting non-emergency data, using LAN protocol, which is packaged, is obtained to be transmitted
Non-emergency data packet;
If the smart home device is currently powered by external power supply, which is sent to smart home
The gateway of system is forwarded to the server by the gateway or other smart home devices is handled;
It is powered if the smart home device is currently not by external power supply, which is cached,
When the smart home device restores external power supply power supply, which is transmitted.
Optionally, the non-emergency data include periodically the acquisition information of class, between equipment intelligent linkage and equipment with
The information of external network interaction.
Optionally, which includes security monitor alarm class data.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
Fig. 3 is a kind of flow chart of data transmission method provided in an embodiment of the present invention.The data transmission method is by intelligence
Home equipment executes, referring to Fig. 3, this method comprises:
301, when confirmly detecting emergency data, using the network protocol of cellular network, which is sealed
Dress, obtains emergency data packet to be transmitted.
In the embodiment of the present invention, emergency data may include security monitor alarm class data, and non-emergency data may include
The information that intelligent linkage and equipment are interacted with external network between the periodical information for acquiring class, equipment.With the smart home
Equipment is for combustible gas leak detection device, which can be the alarm number of combustible gas concentration over-standard
According to the periodicity acquires the combustible gas that the information of class can be the running state information of the combustible gas leak detection device or detect
Concentration information, the information of intelligent linkage can control the control that exhaust equipment is opened for the combustible gas leak detection device between the equipment
Information processed, the information which interacts with external network can interact letter for the combustible gas leak detection device and remote terminal
Breath.
In a kind of possible implementation, smart home device confirmly detect emergency data process may include: as
The parameter value for the specified data that fruit smart home device detects is greater than preset threshold, then specifies the parameter value of data to determine this
For the emergency data.Wherein, which can be certain indoor harmful substance, and such as combustible gas, the parameter value is for referring to
The concentration for showing the harmful substance, such as the concentration of combustible gas.In smart home system, smart home device can be persistently to specified number
According to coherent detection is carried out, under normal circumstances, smart home device can periodically be transmitted the specified data detected, and
When detecting abnormal conditions, if this specifies the parameter value of data to be greater than preset threshold, smart home device can will test immediately
To the parameter values of specified data be determined as emergency data, using the network protocol of cellular network, which is sealed
Dress, and the emergency data packet obtained to encapsulation transmits.
For example, the flammable gas concentration in combustible gas leak detection device meeting real-time detection room air, if the combustible gas is dense
Degree is less than or equal to preset threshold, then the combustible gas leak detection device can periodically report the combustible gas concentration information detected
To server;And if the flammable gas concentration detected be greater than preset threshold when, the combustible gas leak detection device can immediately by
The flammable gas concentration detected is determined as emergency data, is packaged to the emergency data, and the emergency data that encapsulation is obtained
It wraps and offers server.
The embodiment of the present invention is illustrated so that smart home device is security device as an example, in fact, the smart home
Equipment can also be other household appliances in addition to security device, such as smart television.For smart television, emergency data can
To include the prompt information of smart television failure, non-emergency data may include the running state information of smart television.The present invention
Content included by type and emergency data or non-emergency data of the embodiment to smart home device is not especially limited.
It should be noted that by taking the security device in smart home device as an example, since security device itself is to protect
Hinder house security, therefore, the normal operation of the security device should be ensured.In order to avoid causing the security protection to set due to power-off
Standby the problem of interrupting, in the embodiment of the present invention, which then directly switches to from power supply power supply spare once powering off
Battery power supply.
302, emergency data packet is sent to cellular network, by cellular network by the emergency data packet be sent to server into
Row processing.
In the embodiment of the present invention, in order to reduce the propagation delay time to emergency data, guarantee quickly has emergency data
The transmission and processing of effect, if smart home device data to be transmitted are the emergency data packet that emergency data encapsulates,
The smart home device directly can access honeycomb Internet of Things by low-power consumption wan technology, which is directly sent out
It send to the base station of cellular network, the emergency data packet is sent to server by base station.Emergency number is can store on server
It can be to the emergency data when server receives the emergency data packet according to the corresponding relationship between emergency processing equipment
Packet is decapsulated, and is obtained emergency data, according to the emergency data and the corresponding relationship, is determined the corresponding emergency of the emergency data
Processing equipment, and generate the response message of the emergency data.And then the response message can be sent to base station by server, the sound
It answers information to be used to indicate the corresponding emergency processing equipment of the emergency data and takes corresponding treatment measures.Wherein, the response message
The address information of the emergency processing equipment is carried, which can be the IP (Internet of the emergency processing equipment
Protocol, network protocol) address, (Media Access Control, the medium access control) address MAC or device identification
Deng.
When base station receives the response message of the emergency data from server, base station can be extracted from the response message
The address information of the corresponding emergency processing equipment of the emergency data out, and according to the address information of emergency processing equipment, by the sound
Information is answered to be sent to the emergency processing equipment, to indicate that the emergency processing equipment takes corresponding processing to arrange for the emergency data
It applies.By taking the emergency data is the data with alert of combustible gas concentration over-standard as an example, which can be exhaust equipment, combustion
Feed channel valve etc., which, which can serve to indicate that, opens exhaust equipment, closes valve of gas pipeline etc..Certainly, this is answered
Anxious processing equipment may be alarm host machine, mobile terminal etc., and correspondingly, which is used to indicate alarm host machine starting report
Alert or prompting user is handled etc..
Above-mentioned steps 301 to step 302 is the process that smart home device transmits the emergency data detected, real
In the scene of border, which may also detect that non-emergency data, below will be by step 303 to step 306 to this
The transmission process of non-emergency data is illustrated.
303, when confirmly detecting non-emergency data, using LAN protocol, which is packaged, is obtained
To non-emergency data packet to be transmitted.
Similarly, details are not described herein for the step 302 and step 301.
If 304, there are two types of power supply modes for the smart home device, it is determined that whether the smart home device is currently by outer
Portion's power supply power supply thens follow the steps 305 if the smart home device is currently powered by external power supply, if the smart home
Equipment is currently not is powered by external power supply, thens follow the steps 306, which includes external power supply power supply and inside
Battery power supply.
In the embodiment of the present invention, which can both may be powered by external power supply, can also be by internal electricity
Pond power supply.In this case, smart home device also needs before carrying out data transmission to its power supply state in order to reduce energy consumption
Judged, for example, smart home device can determine whether it is currently powered by external power supply.Smart home device can root
According to different determinations as a result, executing different steps.
Wherein, which can determine whether to be supplied by external power supply by the on-off of power supply lines
Electricity, if the power supply lines of the smart home device are in connected state, it is determined that the smart home device is currently by outer
Portion's power supply power supply, if the power supply lines of the smart home device are in an off state, it is determined that the smart home device
It is currently not and is powered by external power supply.
If 305, the smart home device is currently powered by external power supply, non-emergency data packet is sent to intelligent family
The gateway for occupying system is forwarded to server by gateway or other smart home devices is handled.
In the embodiment of the present invention, if smart home device is currently powered by external power supply, which can
Gateway is sent to the non-emergency data packet that will be encapsulated in step 303.
If the gateway has certain data-handling capacity, when receiving non-emergency data packet, the gateway
Equipment can decapsulate the non-emergency data packet, obtain non-emergency data, and identify to the emergency data, if
Identify that the non-emergency data belongs to the information of intelligent linkage between equipment, then gateway can be mentioned from the non-emergency data
Take out the address information of target device.And then gateway can be according to the address information of the target device, by the non-emergency number
According to the target device is sent to, which is the equipment for generating intelligent linkage with the smart home device, the target device
It can be other any smart home devices in smart home system in addition to the smart home device.If gateway identifies
The non-emergency data belongs to the information or the information that interacts with external network of equipment of periodically acquisition class out, then gateway can be with
The non-emergency data is sent to server and carries out respective handling.
Certainly, if gateway does not have data-handling capacity, when receiving non-emergency data packet, which is set
It is standby the non-emergency data packet to be directly sent to server progress respective handling.
It is powered if 306, the smart home device is currently not by external power supply, which is delayed
It deposits, when the smart home device restores external power supply power supply, which is transmitted.
In the embodiment of the present invention, powered if smart home device is currently not by external power supply, but by internal electric source
When power supply, then the smart home device can cache the non-emergency data packet encapsulated in step 303.Until the intelligence
When energy home equipment restores external power supply power supply, which is transmitted.The transmission process and step 305 are same
Reason, comprising: non-emergency data packet is sent to the gateway of smart home system, by gateway be forwarded to server or its
He is handled smart home device.Detailed process has respective description in step 305, and details are not described herein.
It should be noted that step 303 to step 306 is the intelligence by taking power supply mode there are two types of smart home devices as an example
The process that energy home equipment transmits the non-emergency data detected.In fact, the smart home device may only have one
Power supply mode is planted, such as internal battery powers judge its power supply state in this case, smart home device may not need,
And normally the non-emergency data detected is transmitted, similarly, details are not described herein for specific transmission process and step 305.
It should be noted that the step 301 in the embodiment of the present invention is respectively to step 302 and step 303 to step 306
Transmission process of the smart home device to the transmission process of the emergency data detected and to the non-emergency data detected, this two
There is no the sequencings executed for a process, but the data type detected according to smart home device, selection execute corresponding
The step of.Certainly, smart home device may first detect emergency data, execute step 301 to step 302, then, then detect
To non-emergency data, step 303 is executed to step 306, it is not limited in the embodiment of the present invention.
In the embodiment of the present invention, guaranteeing quickly and effectively to transmit emergency data, to guarantee the same of house security
When, non-emergency data is also transmitted, enables smart home device based on the transmission of the data, maintains the intelligence man
The normal interaction between the normal work and the smart home device and other smart home devices of equipment is occupied, to safeguard whole
The normal operation of a smart home system.
Method provided in an embodiment of the present invention, when smart home device data to be transmitted are what emergency data encapsulated
When emergency data packet, which can be transmitted directly to cellular network, be sent the emergency data by cellular network
It is handled to server.Emergency data reduces the time delay of data transmission, Ke Yibao without being forwarded by gateway
Card carries out quickly and effectively transmission and processing to emergency data.
In addition, the security device in smart home system then directly switches to reserve battery from power supply power supply once powering off
Power supply, the problem of avoiding due to power-off and the security device is caused to interrupt, it is ensured that security device is to emergency data
Normal transmission, emergency data is handled in time, to ensure house security.
Furthermore the embodiment of the present invention also transmits non-emergency data, and smart home device is based on should
The transmission of data, maintain the smart home device normal work and the smart home device and other smart home devices it
Between normal interaction, to safeguard the normal operation of entire smart home system.
Fig. 4 is a kind of structural schematic diagram of data transmission device provided in an embodiment of the present invention.Referring to Fig. 4, the device packet
It includes:
Determining module 401, for confirmly detecting emergency data;
Package module 402 is packaged the emergency data, obtains to be passed for the network protocol using cellular network
Defeated emergency data packet;
Sending module 403, for the emergency data packet to be sent to the cellular network, by the cellular network by the emergency number
Server is sent to according to packet to be handled.
Optionally, the determining module 401, if the parameter value for the specified data detected is greater than preset threshold,
The parameter value of data is specified to be determined as the emergency data this.
Optionally, referring to Fig. 5, which further includes cache module 404:
The determining module 401, is also used to confirmly detect non-emergency data;
The package module 402 is also used to be packaged the non-emergency data, be obtained to be transmitted using LAN protocol
Non-emergency data packet;
The sending module 403 is currently powered by external power supply if being also used to the smart home device, this is non-emergency
Data packet is sent to the gateway of smart home system, is forwarded to server or other smart home devices by the gateway
It is handled;
The cache module 404, is powered if be currently not for the smart home device by external power supply, this non-is answered
Anxious data packet is cached, and when the smart home device restores external power supply power supply, is transmitted to the non-emergency data packet.
Optionally, the non-emergency data include periodically the acquisition information of class, between equipment intelligent linkage and equipment with
The information of external network interaction.
Optionally, which includes security monitor alarm class data.
In the embodiment of the present invention, when smart home device data to be transmitted are the emergency data that emergency data encapsulates
The emergency data packet can be transmitted directly to cellular network, the emergency data is sent to server by cellular network by Bao Shi
It is handled.Emergency data reduces the time delay of data transmission, it is ensured that emergency without being forwarded by gateway
Data carry out quickly and effectively transmission and processing.
It should be understood that data transmission device provided by the above embodiment data transmit when, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block is completed, i.e., the internal structure of equipment is divided into different functional modules, to complete all or part of function described above
Energy.In addition, data transmission device provided by the above embodiment and data transmission method embodiment belong to same design, it is specific real
Existing process is detailed in embodiment of the method, and which is not described herein again.
The embodiment of the invention provides a kind of smart home device 600, which can be used in execution
The data transmission method provided in each embodiment is provided.Referring to Fig. 6, which includes:
Smart home device 600 may include RF (Radio Frequency, radio frequency) circuit 110, include one or one
Memory 120, input unit 130, display unit 140, the sensor 150, audio-frequency electric of a above computer readable storage medium
Road 160, includes one or more than one processing core at WiFi (Wireless Fidelity, Wireless Fidelity) module 170
Processor 180 and the components such as power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 6 is not
The restriction of structure paired terminal may include perhaps combining certain components or different portions than illustrating more or fewer components
Part arrangement.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses
Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex
Device etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.The wireless communication can make
With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely
Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code
Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple
Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short
Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation
Software program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses institute according to smart home device 600
Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 120 may include high-speed random access memory,
It can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-states are deposited
Memory device.Correspondingly, memory 120 can also include Memory Controller, right to provide processor 180 and input unit 130
The access of memory 120.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching
Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used
Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table
Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional
, touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically,
Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or be supplied to the information of user and smart home is set
Standby 600 various graphical user interface, these graphical user interface can be by figure, text, icon, video and any combination thereof
To constitute.Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal
Display, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) come
Configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 is detected at it
On or near touch operation after, send processor 180 to determine the type of touch event, be followed by subsequent processing device 180 according to touching
The type for touching event provides corresponding visual output on display panel 141.Although in Fig. 6, touch sensitive surface 131 and display surface
Plate 141 is to realize input and input function as two independent components, but in some embodiments it is possible to by touch-sensitive table
Face 131 and display panel 141 integrate and realize and output and input function.
Smart home device 600 may also include at least one sensor 150, for example, optical sensor, motion sensor and
Other sensors.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can
The brightness of display panel 141 is adjusted according to the light and shade of ambient light, proximity sensor can be moved in smart home device 600
When in one's ear, display panel 141 and/or backlight are closed.As a kind of motion sensor, gravity accelerometer is detectable each
The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify hand on a direction when static
The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of machine posture, Vibration identification correlation function (for example are counted
Walk device, tap) etc.;Gyroscope, barometer, hygrometer, thermometer, the infrared ray that can also configure as smart home device 600
The other sensors such as sensor, details are not described herein.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio between user and smart home device 600
Interface.Electric signal after the audio data received conversion can be transferred to loudspeaker 161, by loudspeaker by voicefrequency circuit 160
161 are converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, by audio-frequency electric
Road 160 is converted to audio data after receiving, then by after the processing of audio data output processor 180, through RF circuit 110 to be sent to
Such as another terminal, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible to wrap
Earphone jack is included, to provide the communication of peripheral hardware earphone Yu smart home device 600.
WiFi belongs to short range wireless transmission technology, and smart home device 600 can help user by WiFi module 170
It sends and receive e-mail, browse webpage and access streaming video etc., it provides wireless broadband internet access for user.Although
Fig. 6 shows WiFi module 170, but it is understood that, and it is not belonging to must be configured into for smart home device 600, it is complete
It can according to need within the scope of not changing the essence of the invention and omit entirely.
Processor 180 is the control centre of smart home device 600, utilizes various interfaces and connection whole mobile phone
Various pieces by running or execute the software program and/or module that are stored in memory 120, and are called and are stored in
Data in reservoir 120 execute the various functions and processing data of smart home device 600, to carry out whole prison to mobile phone
Control.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor
And modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate
Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor
In 180.
Smart home device 600 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can
With logically contiguous by power-supply management system and processor 180, thus charged, discharged by power-supply management system realization management,
And the functions such as power managed.Power supply 190 can also include one or more direct current or AC power source, recharge and be
The random components such as system, power failure detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, smart home device 600 can also include camera, bluetooth module etc., and details are not described herein.Tool
In the present embodiment, the display unit of terminal is touch-screen display to body, and terminal further includes having memory and one or one
A above program, perhaps more than one program is stored in memory and is configured to by one or one for one of them
The above processor executes.The one or more programs include for executing in above-mentioned Fig. 2 or Fig. 3 institute embodiment eventually
The instruction of side operations.
Fig. 7 is a kind of block diagram of data transmission device 700 provided in an embodiment of the present invention.For example, device 700 can be mentioned
For for server.Referring to Fig. 7, it further comprises one or more processors, Yi Jiyou that device 700, which includes processing component 722,
Memory resource representated by memory 732, can be by the instruction of the execution of processing component 722, such as application program for storing.
The application program stored in memory 732 may include it is one or more each correspond to one group of instruction module.
In addition, processing component 722 is configured as executing instruction, to execute above-mentioned data transmission method.
Device 700 can also include the power management that a power supply module 727 is configured as executive device 700, and one has
Line or radio network interface 750 are configured as device 700 being connected to network and input and output (I/O) interface 758.Dress
Setting 700 can operate based on the operating system for being stored in memory 732, such as Windows ServerTM, Mac OS XTM,
UnixTM,LinuxTM, FreeBSDTMOr it is similar.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (8)
1. a kind of data transmission method, which is characterized in that be applied to smart home device, which comprises
Confirmly detect emergency data;
Using the network protocol of cellular network, the emergency data is packaged, obtains emergency data packet to be transmitted;
The emergency data packet is sent to the cellular network, the emergency data packet is sent to clothes by the cellular network
Business device is handled;
The method also includes:
When confirmly detecting non-emergency data, using LAN protocol, the non-emergency data is packaged, is obtained to be passed
Defeated non-emergency data packet;
If the smart home device is currently powered by external power supply, the non-emergency data packet is sent to smart home
The gateway of system is forwarded to the server by the gateway or other smart home devices is handled;
It is powered if the smart home device is currently not by external power supply, the non-emergency data packet is cached,
When the smart home device restores external power supply power supply, the non-emergency data packet is transmitted.
2. the method according to claim 1, wherein the emergency data that confirmly detects includes:
If the parameter value of the specified data detected is greater than preset threshold, the parameter value of the specified data is determined as institute
State emergency data.
3. the method according to claim 1, wherein the non-emergency data includes the letter of periodically acquisition class
The information that intelligent linkage and equipment are interacted with external network between breath, equipment.
4. method according to any one of claims 1 to 3, which is characterized in that the emergency data includes that security monitor is alert
Report class data.
5. a kind of data transmission device, which is characterized in that be applied to smart home device, described device includes:
Determining module, for confirmly detecting emergency data;
Package module is packaged the emergency data, obtains to be transmitted answer for the network protocol using cellular network
Anxious data packet;
Sending module, for the emergency data packet to be sent to the cellular network, by the cellular network by the emergency
Data packet is sent to server and is handled;
The determining module is also used to confirmly detect non-emergency data;
The package module is also used to be packaged the non-emergency data using LAN protocol, obtained to be transmitted non-
Emergency data packet;
The sending module is currently powered by external power supply if being also used to the smart home device, will be described non-emergency
Data packet is sent to the gateway of smart home system, is forwarded to the server or other intelligent families by the gateway
Equipment is occupied to be handled;
Cache module is powered if be currently not for the smart home device by external power supply, by the non-emergency number
It is cached according to packet, when the smart home device restores external power supply power supply, the non-emergency data packet is transmitted.
6. device according to claim 5, which is characterized in that the determining module, if the specified number for detecting
According to parameter value be greater than preset threshold, then the parameter value of the specified data is determined as the emergency data.
7. device according to claim 5, which is characterized in that the non-emergency data includes the letter of periodically acquisition class
The information that intelligent linkage and equipment are interacted with external network between breath, equipment.
8. according to the described in any item devices of claim 5 to 7, which is characterized in that the emergency data includes that security monitor is alert
Report class data.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710188106.2A CN107018578B (en) | 2017-03-27 | 2017-03-27 | Data transmission method and device |
PCT/CN2017/112670 WO2018176865A1 (en) | 2017-03-27 | 2017-11-23 | Data transmission method and apparatus and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710188106.2A CN107018578B (en) | 2017-03-27 | 2017-03-27 | Data transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107018578A CN107018578A (en) | 2017-08-04 |
CN107018578B true CN107018578B (en) | 2019-09-20 |
Family
ID=59446498
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710188106.2A Active CN107018578B (en) | 2017-03-27 | 2017-03-27 | Data transmission method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107018578B (en) |
WO (1) | WO2018176865A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107018578B (en) * | 2017-03-27 | 2019-09-20 | 海信集团有限公司 | Data transmission method and device |
CN109140689A (en) * | 2018-09-19 | 2019-01-04 | 珠海格力电器股份有限公司 | Fault diagnosis method and system for air conditioning unit |
CN109358514A (en) * | 2018-09-28 | 2019-02-19 | 安徽省极索智能科技有限公司 | A kind of intelligent gas management system based on Internet of Things |
CN109587166A (en) * | 2018-12-28 | 2019-04-05 | 江苏惠通集团有限责任公司 | Intelligent gateway and its data interactive method, computer storage medium |
CN113625588A (en) * | 2021-09-06 | 2021-11-09 | 合肥润东通信科技股份有限公司 | Method and system for interconnection of smart home devices based on DOCSIS gateway |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546324A (en) * | 2011-10-19 | 2012-07-04 | 无锡物联网产业研究院 | Internet of things intelligent home system and method |
CN103279079A (en) * | 2013-04-27 | 2013-09-04 | 浙江大学城市学院 | Intelligent monitoring device based on GSM/GPRS (global system for mobile communication)/(general packet radio service) |
CN104020745A (en) * | 2014-06-18 | 2014-09-03 | 吴林涛 | Intelligent household system |
CN106453443A (en) * | 2015-08-04 | 2017-02-22 | 腾讯科技(深圳)有限公司 | Security monitoring method, security monitoring server and security monitoring system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003318971A (en) * | 2002-04-25 | 2003-11-07 | Fujitsu Ltd | Network switch device and network switch method |
WO2014064486A1 (en) * | 2012-10-25 | 2014-05-01 | Pismo Labs Technology Limited | A method, device and system to prioritize encapsulating packets in a plurality of logical network connections |
CN103517348B (en) * | 2013-10-09 | 2016-04-06 | 中国联合网络通信集团有限公司 | A kind of data transmission method based on data priority and gateway |
CN104301249B (en) * | 2014-10-14 | 2018-01-09 | 新华三技术有限公司 | A kind of SDN flow table issuances method and apparatus |
US9985898B2 (en) * | 2015-02-26 | 2018-05-29 | Citrix Systems, Inc. | System for bandwidth optimization with traffic priority determination |
CN107018578B (en) * | 2017-03-27 | 2019-09-20 | 海信集团有限公司 | Data transmission method and device |
-
2017
- 2017-03-27 CN CN201710188106.2A patent/CN107018578B/en active Active
- 2017-11-23 WO PCT/CN2017/112670 patent/WO2018176865A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546324A (en) * | 2011-10-19 | 2012-07-04 | 无锡物联网产业研究院 | Internet of things intelligent home system and method |
CN103279079A (en) * | 2013-04-27 | 2013-09-04 | 浙江大学城市学院 | Intelligent monitoring device based on GSM/GPRS (global system for mobile communication)/(general packet radio service) |
CN104020745A (en) * | 2014-06-18 | 2014-09-03 | 吴林涛 | Intelligent household system |
CN106453443A (en) * | 2015-08-04 | 2017-02-22 | 腾讯科技(深圳)有限公司 | Security monitoring method, security monitoring server and security monitoring system |
Also Published As
Publication number | Publication date |
---|---|
WO2018176865A1 (en) | 2018-10-04 |
CN107018578A (en) | 2017-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107018578B (en) | Data transmission method and device | |
CN106471794A (en) | The control method of terminal, device and terminal | |
CN105306682B (en) | The method and device of network connection switch is automatically closed | |
CN105278937B (en) | A kind of method and device showing pop-up box message | |
CN103399633B (en) | A kind of wireless remote control method and mobile terminal | |
CN103345355A (en) | Screen-locking interface display control method, device and terminal device | |
CN104618223B (en) | A kind of management method of information recommendation, device and system | |
CN105681161B (en) | A kind of methods, devices and systems for adding good friend's account | |
CN105491135B (en) | Establish the method and device of data connection | |
CN104657666A (en) | Method and device for optimizing terminal operation environment | |
CN104238893A (en) | Video preview image displaying method and device | |
CN107203147A (en) | Internet of Things network control system and method based on cloud platform | |
CN104077184B (en) | A kind of course control method and computer system of application program | |
CN104571838A (en) | Method and device for quickly starting application program | |
CN106775262A (en) | A kind of method and system of mark display management of not interpreting blueprints | |
CN107454270B (en) | mobile terminal screen brightness control method, device and terminal | |
CN105739856B (en) | A kind of method and apparatus executing Object Operations processing | |
CN104253870B (en) | The method and apparatus of control data access cycle | |
CN106161147B (en) | Establish the method and device of network connection | |
CN106789488A (en) | Intelligent home device management method and device | |
CN103677944B (en) | A kind of method for making locking screen interface, device and terminal device | |
CN106326073A (en) | Method for processing information and mobile terminal | |
CN109728918A (en) | Virtual objects sending method, virtual objects method of reseptance, device and storage medium | |
CN105631069A (en) | Intelligent equipment control method and device | |
CN108092839A (en) | A kind of method and apparatus for establishing network connection |
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 |