CN105306679A - Method for pairing of peripheral equipment and mobile phone App - Google Patents

Method for pairing of peripheral equipment and mobile phone App Download PDF

Info

Publication number
CN105306679A
CN105306679A CN201510586939.5A CN201510586939A CN105306679A CN 105306679 A CN105306679 A CN 105306679A CN 201510586939 A CN201510586939 A CN 201510586939A CN 105306679 A CN105306679 A CN 105306679A
Authority
CN
China
Prior art keywords
peripheral equipment
mobile phone
phone app
model
packet
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
CN201510586939.5A
Other languages
Chinese (zh)
Other versions
CN105306679B (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.)
Shenzhen Ism Technology Co Ltd
Original Assignee
Shenzhen Ism Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ism Technology Co Ltd filed Critical Shenzhen Ism Technology Co Ltd
Priority to CN201510586939.5A priority Critical patent/CN105306679B/en
Publication of CN105306679A publication Critical patent/CN105306679A/en
Application granted granted Critical
Publication of CN105306679B publication Critical patent/CN105306679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method for pairing of peripheral equipment and a mobile phone App. The method comprises the following steps that S11 the mobile phone app receives a model of the peripheral equipment, which is input by a user and needs pairing; S13 a server generates a data packet including 24-bit data according to the model of the peripheral equipment; and S15 the peripheral equipment receives the data packet sent by a host. According to the method, after the model of the peripheral equipment, which needs pairing, is input into the mobile phone app, the data packet corresponding to the model of the peripheral equipment is generated in the server and is sent to the peripheral equipment, after pairing of the peripheral equipment, the information is received and sent through identifying data of the data packet. Or the user pairs directly without inputting the model at the mobile phone app end and, and the server randomly generates the data packet with the 24-bit data and sends the data packet to the peripheral equipment to complete pairing. The pairing method is simple and convenient, a remote control is not needed, and the method is a future direction for pairing of the peripheral equipment and the mobile phone App.

Description

A kind of method that peripheral equipment and mobile phone A pp match
Technical field
The present invention relates to a kind of method that peripheral equipment and mobile phone app match, particularly relating to the method that in Smart Home, peripheral equipment matches with mobile phone app when not using a teleswitch.
Background technology
In Smart Home field, along with intelligentized deep, the design of increasing smart machine producer controls smart machine by mobile phone app.Existing intelligent home control system generally includes mobile phone, main frame (for connecting mobile phone terminal and peripheral equipment) and several peripheral equipments.Mobile phone needed to match with it before control peripheral equipment, and existing way is, the remote controller that mobile phone app and peripheral equipment are equipped with is suitable.By adaptive remote controller, mobile phone app the function of analog telecommand device can control peripheral equipment.But a lot of peripheral equipment is not equipped with remote controller.And peripheral equipment, as socket does not outwards send the function of information, like this, if according to original matching method, peripheral equipment cannot think outgoing carry information, then, mobile phone app can not receive the information of peripheral equipment, cannot complete pairing.In addition, the increasing mobile phone app that adopts controls peripheral equipment now.We just do not use remote controller when applying at ordinary times, and whether we just there is no need to produce remote controller, and directly just control with mobile phone, our manufacturer just need not produce remote controller.So, for the peripheral equipment not having remote controller, mobile phone this how to match with peripheral equipment?
Summary of the invention
Because the problems referred to above, be necessary to provide a kind of new matching method, when there is no remote controller, peripheral equipment directly and mobile phone app match.
The method that peripheral equipment and mobile phone app match, is characterized in that, comprise the following steps:
S11, mobile phone app receive the peripheral equipment model of the needs pairing of user's input and are sent to server;
S13, server generates according to the model of peripheral equipment the packet that comprises 24 bit data;
S15, the packet that peripheral equipment Receiving Host sends.
Preferably, further comprising the steps of:
S12, server judges that the model received is the model of the peripheral equipment not attaching remote controller, when server judges that the peripheral equipment of this model, when not attaching remote controller, carries out step S13.
Preferably, further comprising the steps of:
S14, the packet that main frame reception server sends also is 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 subsidiary remote controller and does not attach remote controller two kinds.
Preferably, 4 key-press input data bit of the corresponding peripheral equipment of the model that server memory has user to input, 24 bit data that server generates comprise 4 key-press input data bit, and 4 key-press input data bit of the corresponding peripheral equipment of the model that 4 key-press input data bit of described generation and described server memory have user to input are identical.
Preferably, when peripheral equipment judges after have received packet that 4 key-press input data bit in this packet are identical with four the key-press input data bit had in peripheral equipment, peripheral equipment stores this packet.
The system that peripheral equipment and mobile phone app match, this system comprises control end and peripheral equipment, and wherein control end comprises:
Control end communication module, for the information transmission between peripheral equipment, to the packet that peripheral equipment sends data and receives from peripheral equipment;
Generation module, for generating a packet according to the model of peripheral equipment;
After generation module generates a packet, control end communication module sends it to peripheral equipment, and peripheral equipment stores this packet.
Preferably, control end also comprises judge module, and the model for inputting according to user judges that peripheral equipment does not attach remote controller.
Preferably, the packet that generation module generates comprises the key-press input data bit of 4, and the key-press input data bit of 4 of this generation is identical with 4 key-press input data bit of this model that controller stores.
Preferably, peripheral equipment comprises communication module and analysis module, and analysis module is for judging that the model of peripheral equipment is the same with the peripheral equipment model that user inputs.
In the present invention, when matching, user holds input to need the peripheral equipment model of pairing at mobile phone app, server generates a packet according to this model and is sent to peripheral equipment, store after peripheral equipment receives and namely matched, match simple and convenient, and do not need to pass through remote controller.Like this, in the product of Smart Home afterwards, do not need to produce remote controller, saved a large number of cost to manufacturer.
Accompanying drawing explanation
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 that a kind of peripheral equipment of the present invention and mobile phone app match.
Fig. 3 is the system diagram that a kind of peripheral equipment of the present invention and mobile phone app match.
Embodiment
Below in conjunction with accompanying drawing, the present invention is illustrated.
As shown in Figure 1, be method applied environment figure that a kind of peripheral equipment of the present invention and mobile phone app match.In the present invention, peripheral equipment refers to socket as shown in Figure 1, cigarette sense, infrared induction, door magnetic etc., and these peripheral equipments are furnished with 1527 coding chips usually, also can be other coded systems.Mobile phone app is for controlling the feedback of these peripheral equipments and these peripheral equipments of reception.Described main frame is the terminal transmitted as mobile phone app and peripheral equipment information, and the long-range transmission instruction of mobile phone app is to the main frame being arranged in house, and main frame sends a command to peripheral equipment according to user instruction.Usual mobile phone and main frame are connected by wide area network, and namely main frame needs interconnection network, when user at home time, mobile phone also can by local area network (LAN) and main-machine communication.In addition, the present invention is mainly used for the peripheral equipment not having remote controller.More and more adopt now an installation app on mobile phone to control peripheral equipment, control multiple peripheral equipment by mobile phone, do not need each equipment to join a remote controller.A kind of method that the present invention is mainly used in time peripheral equipment does not have a remote controller and mobile phone app matches, simple to operate.In a first embodiment, concrete matching method comprises the following steps:
S11, mobile phone app receive the peripheral equipment model of the needs pairing of user's input, and are sent to server; Concrete, when user needs to match with the peripheral equipment of certain model, user inputs the model wanting the peripheral equipment matched on mobile phone app, the model of the peripheral equipment of server receives user input.
S12, server judges that whether the model that receives is the model of the peripheral equipment not attaching remote controller.Concrete, server memory has the relevant information of all peripheral equipments, the model of such as each peripheral equipment, picture and title etc.And the peripheral equipment of all models be divided into subsidiary remote controller and do not attach remote controller two class.Server judges the subsidiary remote controller of this model according to the peripheral equipment model received and does not attach remote controller two class, when judging that peripheral equipment does not attach remote controller, then carries out step S13.
S13, server comprises the packet of 24 bit data according to the model generation of peripheral equipment and is sent to main frame.Concrete, when judging that the peripheral equipment of the model received is that when not attaching remote controller, then server generates a packet containing 24 bit data.Wherein, 24 bit data comprise the address code of 20 and the key-press input data bit of 4, the key-press input position all having one 4 of the peripheral equipment of same model, and 4 of a model key-press input positions are constant, server memory has 4 bit data positions of the peripheral equipment of each model, when generating 24 bit data in server, using the data bit of 4 buttons of storage as the key-press input data bit of 4 generated, the address code of in addition 20 is by server stochastic generation, server generate one comprise the packet of 24 bit data after, this 24 bit data is sent to main frame.
S14, the packet that main frame reception server sends also is sent to peripheral equipment.
S15, the packet that peripheral equipment Receiving Host sends.Concrete, after user inputs the peripheral equipment model that will match in mobile phone app, user presses peripheral equipment button makes it enter pairing state.Such as, can set and often make peripheral equipment enter pairing state by after the button certain hour of peripheral equipment, the peripheral equipment of model A enters pairing state in pressing keys after 5 seconds.User waits for after entering pairing state that main frame sends data, judges that whether model that user inputs is same model with the peripheral equipment being in pairing state after peripheral equipment receives packet according to the data bit of the button of 4 in packet.Concrete, if the data bit of 4 buttons is identical with the 4 bit data positions being stored in peripheral equipment, then judge that the peripheral equipment of the model that user inputs and pairing is same model.Peripheral equipment preserves this data, successful matching.If not identical, then judge that the model that user inputs is different with the model of the peripheral equipment of pairing, peripheral equipment does not then preserve this packet, continues to wait for right packet.In the present embodiment, that peripheral equipment has determined 4 key-press input data bit, these 4 key-press input data bit were input in server by we before pairing, when server generates 24 bit data, above-mentioned 4 key-press input data bit were included in 24 bit data positions.
In second embodiment, suppose that peripheral equipment is a socket, can set a switch corresponding key-press input data bit respectively of socket, socket is opened in such as 0010 expression, and 0001 represents closedown socket.We are when matching, server send simultaneously two respectively with 0010 and 0001 the packet of 4 key-press input data bit to socket.Other operating process is the same with the first execution mode.Then can control the switch of socket like this by pressing two buttons at mobile phone app end.Needs two by passing through during key control socket once to send two 24bit data to socket.In addition, after successful matching, the relevant information of the peripheral equipment that user matches by server, as: model, title, picture etc. are shown on app operation interface.In addition, just enumerating two buttons herein to control peripheral equipment, if need by three buttons or four buttons, is then the same with above-mentioned method, also just need pairing once, when just having multiple button, server generates 24bit data corresponding to multiple button.
In 3rd embodiment, peripheral equipment does not set 4 key-press input data bit.And the opening and closing of peripheral equipment are controlled by a button, peripheral equipment and mobile phone app comprise following step when matching: the first step, user opens search peripheral equipment at mobile phone terminal, can be matched by the input model be similar in the first embodiment herein, also can input model and directly enter pairing; Second step, server generates a packet, comprises 24 bit data in this packet; 3rd step, server is by this Packet Generation to main frame, and main frame is sent to peripheral equipment.Wherein, peripheral equipment is set to open mode by main frame, and it is stochastic generation that peripheral equipment receives this 24 bit data, and after having matched, mobile phone app is by the opening and closing of a button control appliance.
In 4th embodiment, peripheral equipment does not set 4 key-press input data bit, in addition, is controlled the opening and closing of peripheral equipment by two buttons, and step when peripheral equipment and mobile phone app match is similar to the 3rd embodiment.Difference is: now need pairing twice, and each key commands pairing once.Match after two buttons, controlled the switch of peripheral equipment by two buttons, indication two buttons may not be show with the form of button at mobile phone app herein, should be read as and represent two different orders.As for how mobile phone app completing two different order conversions, can set according to app designer.In addition, just enumerate two buttons herein to control peripheral equipment, if need by three buttons or four buttons, be then similar to above-mentioned method and match three times or four times.
The present invention also provides a kind of peripheral equipment and the mobile phone app system of matching, and comprises control end 100 and peripheral equipment 200.Wherein, control end 100 refer in the present invention composition for controlling the mobile phone app of peripheral equipment, server and main frame.Wherein control end 100 comprises control end communication module 101, judge module 102 and data generation module 103.
Control end communication module 101, for the information transmission between peripheral equipment 200, sends packet to peripheral equipment 200 and receives the packet sent from peripheral equipment.
Judge module 102, such as, for judging whether the model that user inputs is the peripheral equipment not attaching remote control, and concrete, server memory has the relevant information of all peripheral equipments, model, picture and title etc.And the peripheral equipment of all models be divided into subsidiary remote controller and do not attach remote controller two class.According to the peripheral equipment model received, server judges that this model is subsidiary remote controller.
Data generation module 103, generates for the model according to peripheral equipment the packet comprising 24 bit data.Can be one also can be multiple.Concrete, wherein, 24 bit data comprise the address code of 20 and the key-press input data bit of 4,4 key-press input positions of the peripheral equipment of a model are constant, server memory has 4 bit data positions of the peripheral equipment of this model, when will generate 24 bit data in server, using 4 bit data positions of storage as 4 the key-press input data bit generated, the address code of in addition 20 is by server stochastic generation.In another embodiment, data generation module 103 once generates two 24 bit data according to the model of input, and 4 key-press input data bit in these two 24 bit data are all from 4 key-press input data bit corresponding to this model of server memory storage.In addition, when server is not stored in this peripheral equipment model, server then arbitrarily generates the data of 24.Now, two or more 24 bit data can not be generated, if when needing to generate multiple 24 bit data, then need pairing repeatedly.Control end communication module 101 also for Packet Generation that generation module 103 is generated to peripheral equipment.
Peripheral equipment 200 comprises peripheral equipment communication module 201 and analysis module 202.
Peripheral equipment communication module 201, for receiving the packet that control end sends.Before the packet receiving control end transmission, peripheral equipment enters pairing mode.
Analysis module 202, whether the data bit for judging 4 buttons in the packet that the control end that peripheral equipment communication module 202 receives sends is identical with the 4 bit data positions that store in this peripheral equipment, if identical, then illustrate that the model of user in the input of mobile phone app end is the same with the peripheral equipment model of pairing, then peripheral equipment stores this packet, successful matching.Mobile phone app afterwards controls peripheral equipment or peripheral equipment is all identified by the packet of this preservation to mobile phone app feedback information.If not identical, then illustrate that the model being used for inputting at mobile phone app end is different from the peripheral equipment model of pairing, peripheral equipment 200 abandons this data.
The method and system that a kind of peripheral equipment provided in the present invention and mobile phone app match, when peripheral equipment and mobile phone app match, by allowing server send the packet of 24 to peripheral equipment, peripheral equipment receives this 24 bit data bag and stores then peripheral equipment and mobile phone app successful matching.This matching method is simple and practical, can match easily when not needing remote controller.Like this, we need not produce remote controller when production.
Below a kind of embodiment in the present invention is only; therefore the scope of the claims of the present invention can not be limited in this; understandable; every equivalence utilizing specification of the present invention and accompanying drawing to make is replaced or equivalence changes, or simply converts on this basis or scheme that reasoning draws all should within protection scope of the present invention.

Claims (10)

1. a peripheral equipment and mobile phone app method of matching, is characterized in that, comprise the following steps:
The instruction that mobile phone app receives user starts pairing;
Server generates the packet at least comprising 24 bit data, and is sent to peripheral equipment by main frame;
The packet that peripheral equipment Receiving Host sends.
2. a kind of peripheral equipment as claimed in claim 1 and the mobile phone app method of matching, is characterized in that: the instruction that described mobile phone app receives user is opened in pairing, and user holds input to need the model of the peripheral equipment of pairing at mobile phone app.
3. a kind of peripheral equipment as claimed in claim 2 and the mobile phone app method of matching, is characterized in that: further comprising the steps of:
Server judges that model that user inputs is the model of the peripheral equipment not attaching remote controller.
4. a kind of peripheral equipment as claimed in claim 3 and the mobile phone app method of matching, it is characterized in that: comprise 4 key-press inputs by key mapping in 24 bit data that described server generates, is 4 key-press input data bit that the corresponding peripheral equipment of model inputted from the user preserved in server can identify.
5. a kind of peripheral equipment as claimed in claim 4 and the mobile phone app method of matching, is characterized in that: all information of the peripheral equipment that server memory has needs to match, comprising: 4 key-press input data bit, title and models.
6. a kind of peripheral equipment as claimed in claim 3 and the mobile phone app method of matching, it is characterized in that: when peripheral equipment judges after have received packet that 4 key-press input data bit in this packet are identical with four the key-press input data bit had in peripheral equipment, peripheral equipment stores this packet.
7. a peripheral equipment and mobile phone app system of matching, this system comprises control end and peripheral equipment, and wherein control end comprises:
Control end communication module, for the information transmission between peripheral equipment, to the packet that peripheral equipment sends data and receives from peripheral equipment;
Generation module, for generating a packet according to the model of peripheral equipment;
After generation module generates a packet, control end communication module sends it to peripheral equipment, and peripheral equipment stores this packet.
8. a kind of peripheral equipment as claimed in claim 7 and the mobile phone app system of matching, it is characterized in that, control end also comprises judge module, and the model for inputting according to user judges that peripheral equipment does not attach remote controller.
9. a kind of peripheral equipment as claimed in claim 8 and the mobile phone app system of matching, it is characterized in that, the packet that described generation module generates comprises the key-press input data bit of 4, and the key-press input data bit of 4 of this generation is identical with 4 key-press input data bit of this model that controller stores.
10. a kind of peripheral equipment as claimed in claim 8 and the mobile phone app system of matching, it is characterized in that, peripheral equipment comprises analysis module, and analysis module is for judging that the model of peripheral equipment is the same with the peripheral equipment model that user inputs.
CN201510586939.5A 2015-09-15 2015-09-15 A kind of method of peripheral equipment and mobile phone A pp pairing Active CN105306679B (en)

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 true CN105306679A (en) 2016-02-03
CN105306679B 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020040316A1 (en) * 2000-09-29 2002-04-04 Lintec Corporation Integrated customer management system and method using wireless barcode
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020040316A1 (en) * 2000-09-29 2002-04-04 Lintec Corporation Integrated customer management system and method using wireless barcode
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
CN105306679B (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN100507969C (en) Selective intelligent remote control system and method
CN104503378B (en) A kind of robot and the method for controlling household electrical appliances based on the robot
CN103237058A (en) Infrared-control learning method
US20160132029A1 (en) Method for configuring and controlling smart home products
CN102495614A (en) Intelligent household control system
CN101894452A (en) Mobile communication network-based intelligent home control method and system
CN105353625A (en) Method, device and system for binding intelligent equipment
CN104244054A (en) Remote control method for multiple terminal devices, related devices and system
CN104157115A (en) Cloud service based networked all-purpose remote control device and method
RU2573762C1 (en) System of remote control and management of "intelligent house" electronic devices
CN104980322A (en) Method and device for linking network access equipment
CN102708858A (en) Voice bank realization voice recognition system and method based on organizing way
CN103235584A (en) Intelligent furniture control method, device, microprogrammed control unit (MCU) and system
CN103559787A (en) Household appliance control method and terminal
CN104483951A (en) Method and device for controlling intelligent household devices as well as terminal
CN205810103U (en) The infrared transmission control system of long distance wireless based on high in the clouds infrared code database data
CN104967544A (en) Network access equipment linkage method and network access equipment linkage apparatus
CN105632494A (en) Intelligent household electrical appliance equipment control method and device
CN108594731A (en) A kind of intelligent electric appliance control method based on NFC
CN103970103A (en) Intelligent home scene control method and system and scene controller
CN107659933A (en) A kind of wireless device two-way pairing connection method, wireless device and storage medium
CN104900045A (en) Signal transmission method, electronic devices and control system
CN204498292U (en) A kind of Intelligent set top box remote control system
CN104426987A (en) Intelligent home furnishing management and control system based on network instructions
CN105306679A (en) Method for pairing of peripheral equipment and mobile phone App

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