CN105306679B - A kind of method of peripheral equipment and mobile phone A pp pairing - Google Patents
A kind of method of peripheral equipment and mobile phone A pp pairing Download PDFInfo
- Publication number
- CN105306679B CN105306679B CN201510586939.5A CN201510586939A CN105306679B CN 105306679 B CN105306679 B CN 105306679B CN 201510586939 A CN201510586939 A CN 201510586939A CN 105306679 B CN105306679 B CN 105306679B
- Authority
- CN
- China
- Prior art keywords
- peripheral equipment
- mobile phone
- model
- phone app
- pairing
- 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
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
A kind of method of peripheral equipment and mobile phone app pairing, comprising the following steps: S11, mobile phone app receive the peripheral equipment model that the needs that user inputs match and be sent to server;S13, server generate the data packet comprising 24 data according to the model of peripheral equipment;S15, the data packet that peripheral equipment receiving host is sent.It is sent to peripheral equipment by inputting the data packet of the peripheral equipment of one corresponding model of generation in server after the peripheral equipment model that needs match in mobile phone app in the present invention, sends and receivees information by identifying the data of the data packet after peripheral equipment pairing.Either user does not input model at the end mobile phone app and directly matches, and server arbitrarily generates one with 24bit data packet, and is sent to peripheral equipment, completes pairing.The matching method is simple and convenient, does not need through remote controler, and this method is the direction of later peripheral equipment and mobile phone app pairing.
Description
Technical field
The present invention relates to peripheral equipments in the method more particularly to smart home of a kind of peripheral equipment and mobile phone app pairing
The method matched in the case where not using remote controler with mobile phone app.
Background technique
In smart home field, with intelligentized deep, more and more smart machine producers designs pass through mobile phone
App controls smart machine.Existing intelligent home control system generally includes mobile phone, host (for connecting mobile phone terminal and periphery
Equipment) and several peripheral equipments.Mobile phone needs paired before controlling peripheral equipment, and existing way is mobile phone app
The remote controler being equipped with peripheral equipment is adapted.By being adapted to remote controler, mobile phone app is capable of the function of analog telecommand device to control
Peripheral equipment.But many peripheral equipments are not equipped with remote controler.And peripheral equipment, as socket is not sent out letter
The function of breath, in this way, if according to original matching method, peripheral equipment can not think that outgoing is delivered letters breath, then, mobile phone app cannot
The information for receiving peripheral equipment is unable to complete pairing.In addition, more and more being set now using mobile phone app to control periphery
It is standby.We just do not use remote controler when usually applying, and whether we are just It is not necessary to produce remote controler, directly
It connects and is just controlled with mobile phone, our manufacturer does not just have to produce remote controler.So, the periphery of not remote controler is set
It is standby, mobile phone this how with peripheral equipment match?
Summary of the invention
In view of the above problem, it is necessary to provide a kind of new matching method, in the case where no remote controler, periphery is set
It is standby directly to be matched with mobile phone app.
A kind of method of peripheral equipment and mobile phone app pairing, which comprises the following steps:
S11, mobile phone app receive the peripheral equipment model that the needs that user inputs match and are sent to server;
S13, server generate the data packet comprising 24 data according to the model of peripheral equipment;
S15, the data packet that peripheral equipment receiving host is sent.
Preferably, further comprising the steps of:
S12, the model that server judgement receives are not to be attached to the model of the peripheral equipment of remote controler, when server judges
The peripheral equipment of the model is when not being attached to remote controler, to carry out step S13.
Preferably, further comprising the steps of:
S14, host receive the data packet that server is sent and are sent to peripheral equipment.
Preferably, server memory has the relevant information of all peripheral equipments, and the peripheral equipment of all models is divided into
It is attached to remote controler and is not attached to two types of remote controler.
Preferably, the model that server memory has user to input corresponds to 4 key-press input data bit of peripheral equipment, service
It include 4 key-press input data bit, 4 key-press input data bit of the generation and described in 24 data that device generates
It is identical that the model that server memory has user to input, which corresponds to 4 key-press input data bit of peripheral equipment,.
Preferably, peripheral equipment has received the 4 key-press input data bit and week judged after data packet in the data packet
When four key-press input data bit having in edge equipment are identical, peripheral equipment stores the data packet.
The system of a kind of peripheral equipment and mobile phone app pairing, the system include control terminal and peripheral equipment, wherein control terminal
Include:
Control terminal communication module sends data and reception to peripheral equipment for the information transmitting between peripheral equipment
Data packet from peripheral equipment;
Generation module, for generating a data packet according to the model of peripheral equipment;
After generation module generates a data packet, control terminal communication module sends it to peripheral equipment, peripheral equipment
Store the data packet.
Preferably, control terminal further includes judgment module, and the model for being inputted according to user judges that peripheral equipment is not attached
Band remote controler.
It preferably, include one 4 key-press input data bit in the data packet that generation module generates, 4 of the generation
Key-press input data bit be with controller storage 4 key-press input data bit of the model it is identical.
Preferably, peripheral equipment includes communication module and analysis module, and analysis module is used to judge the model of peripheral equipment
Peripheral equipment model with user's input is the same.
In the present invention, matching clock synchronization, the peripheral equipment model that user needs to match in the input of the end mobile phone app, server root
A data packet is generated according to the model and is sent to peripheral equipment, and storage i.e. pairing is completed after peripheral equipment receives, and matches simple side
Just, it and does not need to pass through remote controler.In this way, not needing production remote controler in the product of later smart home, giving manufacturer
Family has saved a large number of cost.
Detailed description of the invention
Fig. 1 is a kind of peripheral equipment of the present invention and mobile phone app matching method applied environment figure.
Fig. 2 is the flow chart of the method for a kind of peripheral equipment of the present invention and mobile phone app pairing.
Fig. 3 is the system diagram of a kind of peripheral equipment of the present invention and mobile phone app pairing.
Specific embodiment
The present invention is illustrated below in conjunction with attached drawing.
As shown in Figure 1, for the method applied environment figure of a kind of peripheral equipment of the present invention and mobile phone app pairing.In the present invention
Peripheral equipment refers to socket as shown in Figure 1, cigarette sense, infrared induction, door sensor etc., these peripheral equipments are commonly provided with
1527 coding chips are also possible to other coding modes.Mobile phone app is set for controlling these peripheral equipments and receiving these peripheries
Standby feedback.The host is the terminal as mobile phone app and the transmitting of peripheral equipment information, and mobile phone app remotely sends instruction
To the host of position at home, host sends a command to peripheral equipment according to user instructions.Usual mobile phone and host are to pass through wide area
Net connection, that is, host needs to connect network, when user at home when, mobile phone can also pass through local area network and master
Machine communication.In addition, the present invention is mainly used for the peripheral equipment of not remote controler.More and more use is pacified on mobile phone now
An app is filled to control peripheral equipment, multiple peripheral equipments are controlled by mobile phone, does not need each equipment with a remote controler.
There is no a kind of method matched when remote controler with mobile phone app present invention is mainly used for peripheral equipment, it is easy to operate.First
In embodiment, specific matching method the following steps are included:
S11, mobile phone app receive the peripheral equipment model that the needs of user's input match, and are sent to server;Specifically
, user needs to match clock synchronization with the peripheral equipment of some model, and user inputs the peripheral equipment for wanting pairing on mobile phone app
Model, server receive the model of the peripheral equipment of user's input.
Whether S12, the model that server judgement receives are the model for not being attached to the peripheral equipment of remote controler.Specifically,
Server memory has relevant information of all peripheral equipments, such as model, picture and the title of each peripheral equipment etc..And it will
The peripheral equipment of all models is divided into subsidiary remote controler and is not attached to two class of remote controler.Server is according to the peripheral equipment received
Model judge the model be attached to remote controler and not be attached to two class of remote controler, when judge peripheral equipment not incidentally remote controler when, then into
Row step S13.
S13, server generate the data packet comprising 24 data according to the model of peripheral equipment and are sent to host.
Specifically, then server generation one contains 24 when the peripheral equipment for the model that judgement receives is not to be attached to remote controler
The data packet of data.Wherein, 24 data include one 20 address codes and one 4 key-press input data bit, same
The key-press input position for all having one 4 of the peripheral equipment of a model, and 4 key-press input positions of a model be it is constant,
Server memory has 4 data bit of the peripheral equipment of each model, when generating 24 data in server, by storage
The data bit of 4 keys is given birth to as the 4 key-press input data bit generated, 20 address codes in addition by server at random
After generating the data packet comprising 24 data at, server, which is sent to host.
S14, host receive the data packet that server is sent and are sent to peripheral equipment.
S15, the data packet that peripheral equipment receiving host is sent.Specifically, user inputs the week to be matched in mobile phone app
After edge equipment model, user presses peripheral equipment key and makes it into pairing state.For example, can set often by peripheral equipment
Key makes peripheral equipment enter pairing state after a certain period of time, and the peripheral equipment of model A enters pairing shape after pressing keys 5 seconds
State.User, which enters after pairing state, waits host to send data, and peripheral equipment receives after data packet according to 4 in data packet
The data bit of key judge user input model whether and in pairing state peripheral equipment be the same model.Specifically
, if the data bit of 4 keys is identical as 4 data bit of peripheral equipment are stored in, judge user input model and
The peripheral equipment of pairing is the same model.Peripheral equipment saves the data, successful matching.If it is not the same, then judging user
The model of the peripheral equipment of the model and pairing of input is different, and peripheral equipment does not save the data packet then, the number continued waiting for pair
According to packet.It is that peripheral equipment has determined that 4 key-press input data bit, we press this 4 before pairing in the present embodiment
Key input data position is input in server, and when server generates 24 data, above-mentioned 4 key-press input data bit are included in
In 24 data bit.
In second embodiment, it is assumed that peripheral equipment be a socket, can set socket switch respectively correspond one by
Socket is opened in key input data position, such as 0010 expression, and 0001 indicates to close socket., with clock synchronization, server is sent out simultaneously for we
Send the data packet of two 4 key-press input data bit for being respectively provided with 0010 and 0001 to socket.Other operating process and the
One embodiment is the same.The switch of socket can then be controlled by two keys of pressing at the end mobile phone app in this way.It is needing
Want two by when key control socket by once sending two 24bit data to socket.In addition, after successful matching, server
By the relevant information of the peripheral equipment of user's pairing, such as: model, title, picture are shown in app operation interface.In addition,
Only enumerate two keys herein to control peripheral equipment, if necessary to by three keys or four keys, then with it is above-mentioned
Method be it is the same, also only need to match primary, it is corresponding to generate multiple keys for server when only having multiple keys
24bit data.
In 3rd embodiment, peripheral equipment does not set 4 key-press input data bit.And week is controlled by a key
The opening and closing of edge equipment, peripheral equipment and mobile phone app match clock synchronization including the following steps: the first step, user is in mobile phone
Search peripheral equipment is opened at end, can be matched, can also not had to by the input model being similar in first embodiment herein
Input model is directly entered pairing;Second step, server generate a data packet, include 24 data in the data packet;
The data packet is sent to host by third step, server, and host is sent to peripheral equipment.Wherein, host is by peripheral equipment
It is set as open mode, peripheral equipment receives what 24 data were randomly generated, and after the completion of pairing, mobile phone app passes through one
By the opening and closing of key control equipment.
In fourth embodiment, peripheral equipment does not set 4 key-press input data bit, in addition, being controlled by two keys
The opening and closing of peripheral equipment processed, peripheral equipment and mobile phone app match the step of clock synchronization similar and 3rd embodiment.Difference exists
In: it needs to match twice at this time, each key commands pairing is primary.After matching two keys, week is controlled by two keys
The switch of edge equipment, signified two keys in mobile phone app are shown in the form of key herein, it should be read as representing
Two different orders.As for how to complete two different order conversions on mobile phone app, can be set according to app designer
It is fixed.In addition, only enumerating two keys to control peripheral equipment herein, pass through three keys or four keys if necessary,
Then it is similar to above-mentioned method pairing three times or four times.
The present invention also provides the systems of a kind of peripheral equipment and mobile phone app pairing, including control terminal 100 and peripheral equipment
200.Wherein, control terminal 100 refers to mobile phone app, server and the host for being used to control peripheral equipment of composition in the present invention.
Wherein control terminal 100 includes control terminal communication module 101, judgment module 102 and data generation module 103.
Control terminal communication module 101 sends number to peripheral equipment 200 for the information transmitting between peripheral equipment 200
According to packet and receive the data packet sent from peripheral equipment.
Judgment module 102, for judging whether the model of user's input is the peripheral equipment not being remotely controlled incidentally, specifically,
Server memory has relevant information of all peripheral equipments, such as model, picture and title etc..And by the periphery of all models
Equipment is divided into subsidiary remote controler and is not attached to two class of remote controler.Server judges the model according to the peripheral equipment model received
It is subsidiary remote controler.
Data generation module 103, for generating the data packet comprising 24 data according to the model of peripheral equipment.It can be
One be also possible to it is multiple.Specifically, wherein 24 data include one 20 address codes and 4 key-press input data
Position, 4 key-press input positions of the peripheral equipment of a model be it is constant, server memory has the 4 of the peripheral equipment of the model
Position data bit, when generating 24 data in server, using 4 data bit of storage as 4 key-press inputs of generation
Data bit, 20 address codes in addition are generated at random by server.In another embodiment, data generation module 103
Two 24 data are once generated according to the model of input, 4 key-press input data bit in two 24 data are from
The corresponding 4 key-press input data bit of the model of server memory storage.In addition, when server is not stored in the peripheral equipment type
Number when, server then arbitrarily generates one 24 data.At this point, two or more 24 data cannot be generated, if needed
When generating multiple 24 data, then need to match repeatedly.Control terminal communication module 101 is also used to generate generation module 103
Data packet be sent to peripheral equipment.
Peripheral equipment 200 includes peripheral equipment communication module 201 and analysis module 202.
Peripheral equipment communication module 201, for receiving the data packet of control terminal transmission.In the data for receiving control terminal transmission
Peripheral equipment comes into pairing mode before packet.
Analysis module 202, for judging in data packet that the control terminal that peripheral equipment communication module 202 receives is sent
Whether the data bit of 4 keys is identical with 4 data bit stored in this peripheral equipment, if identical, illustrates user in hand
As the model of the end machine app input with the peripheral equipment model of pairing is, then peripheral equipment stores the data packet, is paired into
Function.Mobile phone app later controls peripheral equipment or peripheral equipment to the data that mobile phone app feedback information is all by the preservation
Packet is to identify.If it is not the same, then model of the explanation for inputting at the end mobile phone app from the peripheral equipment model of pairing is different
, peripheral equipment 200 then abandons the data.
The method and system of a kind of peripheral equipment provided in the present invention and mobile phone app pairing, in peripheral equipment and mobile phone
App matches clock synchronization, and by allowing the data packet of server transmission one 24 to peripheral equipment, peripheral equipment receives 24 data
It wraps and stores then peripheral equipment and mobile phone app successful matching.The matching method is simple and practical, can not need remote controler
In the case of easily match.In this way, we do not have to production remote controler when production.
Above it is only one of present invention embodiment, can not therefore limits the scope of the patents of the invention in this, it can
With understanding, all equivalence replacements made using description of the invention and attached drawing or equivalent change, or on this basis
It is simply converted or scheme that reasoning obtains should all be within protection scope of the present invention.
Claims (6)
1. a kind of method of peripheral equipment and mobile phone app pairing, which comprises the following steps:
The instruction that mobile phone app receives user starts to match, and the mobile phone app sends peripheral equipment model to server;
The server generates the data packet for containing at least one 24 data according to the peripheral equipment model received, and passes through
Host is sent to peripheral equipment;
Peripheral equipment receives the data packet that the host is sent;And judge the data bit and storage of 4 keys in the data packet
There are 4 data bit in peripheral equipment are identical, the peripheral equipment saves the data packet.
2. a kind of method of peripheral equipment and mobile phone app pairing as described in claim 1, it is characterised in that: the mobile phone app
The instruction for receiving user, which is opened, matches centering, the model for the peripheral equipment that user needs to match in the input of the end mobile phone app.
3. a kind of method of peripheral equipment and mobile phone app pairing as claimed in claim 2, it is characterised in that: in step mobile phone
The instruction that app receives user starts to match, and further includes following step after the mobile phone app transmission peripheral equipment model to server
It is rapid:
Server judges that the model of user's input is not to be attached to the model of the peripheral equipment of remote controler.
4. a kind of method of peripheral equipment and mobile phone app pairing as claimed in claim 3, it is characterised in that: the server
Key mapping is pressed comprising 4 key-press inputs in 24 data generated, is that the model of the user's input saved in server is corresponding
4 key-press input data bit that peripheral equipment can identify.
5. a kind of method of peripheral equipment and mobile phone app pairing as claimed in claim 4, it is characterised in that: server memory
All information of the peripheral equipment of pairing in need, comprising: 4 key-press input data bit, title and model.
6. the system of a kind of peripheral equipment and mobile phone app pairing, which includes control terminal, peripheral equipment, wherein control terminal packet
It includes:
Control terminal communication module sends data to peripheral equipment and reception comes from for the information transmitting between peripheral equipment
The data packet of peripheral equipment;
The model of generation module, the peripheral equipment for being inputted according to user generates a data packet;
After the generation module generates a data packet, control terminal communication module sends it to peripheral equipment, peripheral equipment storage
The data packet is deposited, includes the data bit of 4 key in the data packet;
The peripheral equipment includes analysis module, the data bit for 4 keys that the analysis module judgement receives and the week
4 data bit saved in edge equipment are identical, and then it is identical as the peripheral equipment model of pairing to judge that user inputs model.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510586939.5A CN105306679B (en) | 2015-09-15 | 2015-09-15 | A kind of method of peripheral equipment and mobile phone A pp pairing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510586939.5A CN105306679B (en) | 2015-09-15 | 2015-09-15 | A kind of method of peripheral equipment and mobile phone A pp pairing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105306679A CN105306679A (en) | 2016-02-03 |
CN105306679B true CN105306679B (en) | 2019-02-15 |
Family
ID=55203410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510586939.5A Active CN105306679B (en) | 2015-09-15 | 2015-09-15 | A kind of method of peripheral equipment and mobile phone A pp pairing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105306679B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103079021A (en) * | 2012-12-26 | 2013-05-01 | 百度在线网络技术(北京)有限公司 | Method, system and device for controlling intelligent household electrical appliance through mobile terminal |
CN103369035A (en) * | 2013-06-24 | 2013-10-23 | 四川长虹电器股份有限公司 | Two dimensional code-based intelligent household electrical appliance communication method |
CN104570755A (en) * | 2015-01-21 | 2015-04-29 | 苏州奥莱维信息技术有限公司 | Intelligent home control method based on mobile phone |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100397813B1 (en) * | 2000-09-29 | 2003-09-13 | 주식회사 시큐베이 | The integrated customer management system using wireless barcode |
-
2015
- 2015-09-15 CN CN201510586939.5A patent/CN105306679B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103079021A (en) * | 2012-12-26 | 2013-05-01 | 百度在线网络技术(北京)有限公司 | Method, system and device for controlling intelligent household electrical appliance through mobile terminal |
CN103369035A (en) * | 2013-06-24 | 2013-10-23 | 四川长虹电器股份有限公司 | Two dimensional code-based intelligent household electrical appliance communication method |
CN104570755A (en) * | 2015-01-21 | 2015-04-29 | 苏州奥莱维信息技术有限公司 | Intelligent home control method based on mobile phone |
Also Published As
Publication number | Publication date |
---|---|
CN105306679A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102902253B (en) | Intelligent switch with voice control function and intelligent control system | |
CN107566226B (en) | Method, device and system for controlling smart home | |
CN102854834B (en) | Intelligent switch with long-distance remote control function and long-distance remote control system | |
CN102568178B (en) | Remote control system and remote control method | |
CN100507969C (en) | Selective intelligent remote control system and method | |
EP3046393A1 (en) | Switching device and method for automatically connecting to nfc chip and switching security element | |
CN102651165A (en) | Wireless learning type infrared repeating system and working method thereof | |
CN104916107A (en) | Intelligent household appliance remote control method and device based on mobile terminal | |
CN103517117B (en) | The method and system extended based on multimedia electronic equipment function of remote controller keys | |
CN102495614A (en) | Intelligent household control system | |
US20090248413A1 (en) | Devices and systems for remote control | |
CN104157115A (en) | Cloud service based networked all-purpose remote control device and method | |
CN102789685A (en) | Universal remote controller, parameter configuration method thereof and controlled equipment | |
CN103945235B (en) | A kind of digital television control method, set top box and system | |
CN103297586A (en) | Mobile terminal and remote control method | |
CN103559787A (en) | Household appliance control method and terminal | |
CN104483951A (en) | Method and device for controlling intelligent household devices as well as terminal | |
CN103235584A (en) | Intelligent furniture control method, device, microprogrammed control unit (MCU) and system | |
CN103839398B (en) | The key value information processing method and control device of remote control, remote control | |
CN106789466A (en) | The method and mobile terminal and intelligent appliance of a kind of control intelligent appliance | |
CN202975727U (en) | Intelligent switch with voice control function and intelligent control system | |
CN105306679B (en) | A kind of method of peripheral equipment and mobile phone A pp pairing | |
CN104104729A (en) | General setting method and system for mobile equipment | |
CN204498292U (en) | A kind of Intelligent set top box remote control system | |
CN109712380A (en) | Find method and device, the storage medium, terminal device, remote control equipment of remote control equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Room 905, Zhenhua Times Square, 21 Heping Road, Longhua New District, Guangdong, Shenzhen, 518055 Applicant after: SHENZHEN ISM TECHNOLOGY CO., LTD. Address before: 518055 Guangdong city of Shenzhen province Nanshan District Xi Li Lu University City Creative Park A Building Room 601 Applicant before: SHENZHEN ISM TECHNOLOGY CO., LTD. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |