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

Method of pairing mobile phone App and peripheral equipment Download PDF

Info

Publication number
CN105611093A
CN105611093A CN201510584548.XA CN201510584548A CN105611093A CN 105611093 A CN105611093 A CN 105611093A CN 201510584548 A CN201510584548 A CN 201510584548A CN 105611093 A CN105611093 A CN 105611093A
Authority
CN
China
Prior art keywords
peripheral equipment
server
mobile phone
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.)
Pending
Application number
CN201510584548.XA
Other languages
Chinese (zh)
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 CN201510584548.XA priority Critical patent/CN105611093A/en
Publication of CN105611093A publication Critical patent/CN105611093A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

A method of pairing mobile phone App and peripheral equipment is disclosed. The method comprises the following steps that S11, the mobile phone App receives a user instruction and sends a search command to a host, a user emits the search command through the mobile phone App, the command is sent to the host and the host starts searching; S12, a server receives a data packet emitted by a remote controller, the user starts remote controller buttons, the remote controller sends an electromagnetic wave to the host, the host receives the electromagnetic wave and sends the data packet in the electromagnetic wave to the server; the data packet includes a 20 bit address code; and S14, the server stores the received 20 bit address code as an only identification stored by the peripheral equipment in the server. In the invention, the received 20 bit address code is taken as the peripheral equipment and is stored in the server so that multiple pairing during a pairing process is avoided.

Description

A kind of method of mobile phone A pp and peripheral equipment pairing
Technical field
The present invention relates to the matching method of a kind of mobile phone app and peripheral equipment, relate in particular to the method that when applying mobile phone app in Smart Home and controlling peripheral equipment, mobile phone app and peripheral equipment match.
Background technology
In Smart Home field, along with intelligentized deep, more and more smart machine producer controls smart machine by mobile phone app. The house control system of existing intelligence generally includes mobile phone, main frame (for connecting mobile phone terminal and peripheral equipment) and several peripheral equipments. Mobile phone app needs to match with it before controlling peripheral equipment. Common matching method is: mobile phone app searches for peripheral equipment, and user meanwhile triggers smart machine, and mobile phone app receives the packet that peripheral equipment sends, mobile phone app and smart machine successful matching like this. But for the peripheral equipment that uses a teleswitch to control, send after search command at mobile phone app, user presses remote controller key, remote controller sends electromagnetic wave, mobile phone app obtains packet subsidiary in this electromagnetic wave by main frame, in packet, with the data of a 24bit, the server of mobile phone app will be used as the unique identification of the peripheral equipment adding under this 24bit data record. But in use, often a remote controller has multiple buttons, each button represents an order. Mobile phone will match with peripheral equipment, is exactly the function of wanting analog telecommand device in fact. Like this, when pairing, the order that need to match all buttons of remote controller. Like this, when pairing, need user to match repeatedly, also just need to repeatedly press remote controller key, and its packet is deposited in the server of mobile phone app, in this process, such operation is more loaded down with trivial details, does not meet our easy and intelligentized needs.
Summary of the invention
Because the problems referred to above are necessary to provide a kind of new matching method to make in the time of pairing, as long as pairing once just can complete the method for mobile phone app and peripheral equipment pairing.
A method for mobile phone app and peripheral equipment pairing, comprises the following steps:
S11, mobile phone app receives user instruction and sends search instruction to main frame, and user sends search command by mobile phone app, and this order is sent to main frame, and main frame is opened search;
S12, server receives the packet that sends of remote controller, user starts remote controller key, remote controller sends electromagnetic wave to main frame, main frame receives this electromagnetic wave, and by the Packet Generation in this electromagnetic wave to server; This packet comprises the address code of 20;
S14, the 20 bit address codes that server stores receives are stored in the unique identification in server as peripheral equipment.
Preferably, further comprising the steps of:
S13, server obtains the ID of main frame; Peripheral equipment is stored in the ID that unique identification in server also comprises main frame.
Preferably, user is in sending search command by mobile phone app, and described user inputs the model of the peripheral equipment that will search on mobile phone app.
All key-press input data bit of the remote controller that preferably, peripheral equipment is corresponding are stored in server. After mobile phone app pairing peripheral equipment, mobile phone app arranges different control commands according to the key-press input data bit being stored in server.
Preferably, server enters contrast by receiving the key-press input data bit storing in 4 key-press input data bit and server. When different time, abandon the packet of reception.
Preferably, further comprising the steps of:
S15, mobile phone app shows that the peripheral equipment relevant information of this pairing is on operation interface, the relevant information of this each model peripheral equipment is stored in server, the relevant information that server is inquired about peripheral equipment corresponding to this model according to the model of user input, after successful matching, relevant information is shown with mobile phone app operation interface on.
Preferably, peripheral equipment adopts 1527 coding chips.
In the present invention, only obtain 20 bit address codes of remote controller transmission data in pairing peripheral equipment, the address code of a remote controller is constant. Like this, in the time of pairing, do not need repeatedly to match. In addition the input data bit of all buttons of peripheral equipment of each model is added in server, in the time of pairing, does not need the data bit of adding button can simulate the function of this button.
Brief description of the drawings
Fig. 1 is that a kind of mobile phone app of the present invention adds the environment schematic diagram of the method for peripheral equipment.
Fig. 2 is that a kind of mobile phone app of the present invention adds the flow chart of the method for peripheral equipment.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is illustrated.
As shown in Figure 1, be the method applied environment figure of a kind of mobile phone app of the present invention and peripheral equipment pairing. In the present invention, peripheral equipment refers to socket as shown in FIG., cigarette sense, infrared induction, door magnetic etc., and these peripheral equipments are furnished with 1527 coding chips conventionally, can be also other coded systems. Mobile phone app manipulates these peripheral equipments by main frame. In addition, the present invention has the peripheral equipment of multiple command key mainly for remote controller, and can be have the peripheral equipment of remote controller or remote controller to only have the peripheral equipment of a button yet. The present invention makes mobile phone app and peripheral equipment pairing by the function of analog telecommand device, after a command key of remote controller is pressed to outer transmission packet, the data that comprise a 24bit in this packet, the address code that comprises 20 in these 24bit data and the data bit of 4 key-press inputs. In the time that a remote controller has multiple button, press the outside 24bit data that send of different buttons and change. Concrete, in the 24bit data that multiple buttons send, the address code of 20 in these 24bit data is identical, the data bit of rear 4 key-press inputs is different. For example, a remote controller has four buttons, press that these four buttons outwards send packet comprise respectively 24bit data, these four 24bit data are respectively 01010110101001010100+0010,01010110101001010100+0110,01010110101001010100+0001 and 01010110101001010100+1000. User, triggering after a button of remote controller, sends an electromagnetic wave to main frame, main frame receive this electromagnetic wave and by Packet Generation wherein to server, server reads the packet that main frame sends, and reads the address code of 20 in this packet. Then be stored in server as the unique identification of peripheral equipment with together with the ID of main frame.
Be illustrated in figure 2 the flow chart of the method for a kind of mobile phone app of the present invention and peripheral equipment pairing. Comprise the following steps:
S11, mobile phone app accepts user instruction and sends search command to main frame. User searches for field input in mobile phone app to be needed the product type of the peripheral equipment matching and sends search command, sends instruction to main frame by server, and main frame receives this order, and opens search. Wherein server refers to the service background of this mobile phone app and main frame, for the processing of store data and data.
S12, the packet that the remote controller that server Receiving Host sends sends. User has sent after search instruction at mobile phone terminal, arbitrarily press the command key that needs the remote controller that matches of the peripheral equipment of pairing, remote controller outwards sends electromagnetic wave, main frame receives this electromagnetic wave, and send it to server after reading the packet of the 24bit in this electromagnetic wave, server receives this 24bit packet, reads the address code of first 20 wherein. Above-mentioned remote controller can be also peripheral equipment, outwards sending electromagnetic wave by key control and match by peripheral equipment self when peripheral equipment does not have remote controller. Or as door magnetic, two parts by door magnetic mutually near or outwards send electromagnetic wave away from triggering. In the present embodiment, just using remote controller as one of them concrete case, but do not represent that server receives only the packet of its transmission of remote control. Also can be peripheral equipment itself. For example, cigarette sense does not have remote controller, when pairing, triggers cigarette sense by the button in cigarette sense, thinks outgoing power transmission magnetic wave, matches with this.
S13, server obtains the ID of main frame. In when pairing, server is asked for the ID of main frame, and himself ID is sent to server by main frame.
S14, using the ID of the 20 bit address codes that obtain and main frame, as peripheral equipment, the unique identification in server stores server.
S15, mobile phone app shows that the peripheral equipment relevant information of the model of matching is on operation interface. Server sends the relevant information of peripheral equipment to be shown on the operation interface of mobile phone app. As: with picture, peripheral equipment model and title of peripheral equipment photo etc. Wherein, server memory has the relevant information that the peripheral equipment of all models is corresponding, and upgrades constantly. User inputs after a model in mobile phone app, can automatically in server, search for relevant information corresponding to this model, and be shown on the operation interface of this mobile phone app.
In the present invention, in the time obtaining the packet that remote controller sends, read together with the ID of 20 bit address codes wherein and main frame and be stored in server as the unique identification of peripheral equipment. In another embodiment, directly the front 20 bit address codes that read are stored in server as the unique identification of peripheral equipment. But directly adopt 20 bit address codes as unique identification possibility confusion reigned. Concrete, this 20 bit address code is the data of 2 systems, these data can not have repetition in 1,000,000 (concrete is 1048576) individual data, but these address codes are to be stored in server, and the address code storing in a server may exceed 1,000,000. Can produce like this possibility of repetition. Will be this repetition after the ID that has increased main frame may be reduced to almost position zero.
In addition, the address code of first 20 in the 24bit data of the remote controller that the peripheral equipment of the same model in market is corresponding is different, but the data bit of the key-press input of latter 4 is the same. For example in the remote controller of model A, there are four command key, 4 key-press input data bit of these four buttons are respectively 0010,0001,1000 and 0100,, 4 key-press input data bit of four buttons of other remote controllers corresponding to this model must be also 0010,0001,1000 and 0100. Like this, manufacturer is entered in server and this model of corresponding person by the data bit of 4 key-press inputs of the remote controller corresponding peripheral equipment of all models on market. In the time of the peripheral equipment of mobile phone app pairing model A, from reading 4 key-press input data bit of four buttons of the remote controller that model A is corresponding in server, with this, the remote controller control signal of simulation model A, has avoided pairing trouble repeatedly can make again peripheral equipment can identify and receive this control signal.
In the present invention, server receives after the 24bit data of main frame transmission, choose the key-press input data bit of latter 4 wherein, by its be stored in server the corresponding key-press input data bit contrast of this model, if include the key-press input data bit of reception in data bit corresponding to this model storing, the model that explanation is added is the model that user inputs in mobile phone app. If do not comprise the key-press input data bit of reception, illustrate that the model of adding is not the model that user inputs in mobile phone app, server abandons the packet receiving.
The unique identification of the ID of the present invention by the address code of peripheral equipment being added to main frame in peripheral equipment is stored in server, thus in the time of pairing, do not need to repeat because there being multiple buttons to match. And because unique identification has comprised the ID of main frame, can not produce the unique identification of repetition.
Below be only a kind of embodiment in the present invention; can not therefore limit the scope of the claims of the present invention in this; understandable; everyly utilize equivalence that description of the present invention and accompanying drawing make to replace or equivalence changes, or simply convert on this basis or scheme that reasoning draws all should be within protection scope of the present invention.

Claims (7)

1. a method for mobile phone app and peripheral equipment pairing, is characterized in that, comprises the following steps:
S11, mobile phone app receives user instruction and sends search command to main frame, and described user sends described search command by described mobile phone app, and described search command is sent to described main frame, and described main frame is opened search;
S12, the packet that the remote controller that server Receiving Host sends sends, described user starts remote controller key, and described remote controller sends electromagnetic wave to main frame, and main frame receives described electromagnetic wave, and by extremely described server of the Packet Generation in described electromagnetic wave; Described packet comprises the address code of 20;
S14, server stores receive 20 bit address codes in server as peripheral equipment the unique identification in server.
2. the method for a kind of mobile phone app as described in claim 1 and peripheral equipment pairing, is characterized in that, further comprising the steps of:
S13, server obtains the ID of main frame; Peripheral equipment is stored in the ID that unique identification in server also comprises main frame.
3. the method for a kind of mobile phone app as claimed in claim 2 and peripheral equipment pairing, is characterized in that, described user is in sending search command by mobile phone app, and described user inputs the model of the peripheral equipment that will search in mobile phone app.
4. the method for a kind of mobile phone app as claimed in claim 2 and peripheral equipment pairing, is characterized in that: all key-press input data bit of the remote controller that described peripheral equipment is corresponding were stored in server before pairing.
5. the method for a kind of mobile phone app as claimed in claim 3 and peripheral equipment pairing, it is characterized in that, server is by described 4 the key-press input data bit that receive and all key-press input data bit contrasts that store the corresponding remote controller of described peripheral equipment model in server, when in all key-press input data bit of the corresponding remote controller of described peripheral equipment model of server stores, do not have server to receive 4 key-press input data bit time, server abandons the packet of reception.
As claimed in claim 3 a kind of receive and with the method for peripheral equipment pairing, it is characterized in that, further comprising the steps of:
S15, mobile phone app shows that the peripheral equipment relevant information of this pairing is on operation interface, the relevant information of each model peripheral equipment is stored in server, the relevant information that server is inquired about peripheral equipment corresponding to this model according to the model of user's input is shown in relevant information on mobile phone app operation interface after successful matching.
7. the method for a kind of mobile phone app as claimed in claim 6 and peripheral equipment pairing, is characterized in that: described peripheral equipment adopts 1527 coding chips.
CN201510584548.XA 2015-09-15 2015-09-15 Method of pairing mobile phone App and peripheral equipment Pending CN105611093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510584548.XA CN105611093A (en) 2015-09-15 2015-09-15 Method of pairing mobile phone App and peripheral equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510584548.XA CN105611093A (en) 2015-09-15 2015-09-15 Method of pairing mobile phone App and peripheral equipment

Publications (1)

Publication Number Publication Date
CN105611093A true CN105611093A (en) 2016-05-25

Family

ID=55990622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510584548.XA Pending CN105611093A (en) 2015-09-15 2015-09-15 Method of pairing mobile phone App and peripheral equipment

Country Status (1)

Country Link
CN (1) CN105611093A (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
CN103914973A (en) * 2013-12-31 2014-07-09 海尔集团公司 Method and system for infrared learning by using cloud server
CN104469456A (en) * 2014-12-18 2015-03-25 青岛海尔软件有限公司 Infrared remote control method based on mobile phone and infrared remote control system
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
CN103914973A (en) * 2013-12-31 2014-07-09 海尔集团公司 Method and system for infrared learning by using cloud server
CN104469456A (en) * 2014-12-18 2015-03-25 青岛海尔软件有限公司 Infrared remote control method based on mobile phone and infrared remote control system
CN104570755A (en) * 2015-01-21 2015-04-29 苏州奥莱维信息技术有限公司 Intelligent home control method based on mobile phone

Similar Documents

Publication Publication Date Title
CN110572305A (en) Smart home equipment binding method and system, smart home equipment and mobile terminal
EP2780908A1 (en) System and method for voice actuated configuration of a controlling device
CN112419693B (en) Device control method, device, display device and computer readable storage medium
CN103489304A (en) Transfer equipment, transfer processing system and method
CN104144093A (en) Intelligent device control method, relevant device and system
CN104065993A (en) Remote control method and remote control system
CN102984586A (en) Management method and device for intelligent television applications
CN104157115A (en) Cloud service based networked all-purpose remote control device and method
CN104157129A (en) Acquisition method of infrared code pattern, cloud server, infrared transponder and system
CN103561315A (en) Multi-screen interactive method, device and system
CN102346643A (en) Realization method and device for learnable type remoter
CN107743168A (en) Facility control program management method, device, storage medium and terminal
CN108922163A (en) A kind of learning method of infrared remote control, device, terminal and storage medium
CN104980322A (en) Method and device for linking network access equipment
CN104104699A (en) Handset remote configuration system and configuration method for the same
CN113034886A (en) Remote control method and device
CN103970103A (en) Intelligent home scene control method and system and scene controller
EP2874465B1 (en) Method and system for remote equipment data installation
CN105100199A (en) Method and device for transmitting cloud card
CN105207813A (en) Intelligent equipment sorting method and apparatus
CN117079445B (en) Infrared remote control method, system and medium based on intelligent watch
CN105187651B (en) A kind of method of mobile phone app additions peripheral equipment
CN104900045A (en) Signal transmission method, electronic devices and control system
CN105611093A (en) Method of pairing mobile phone App and peripheral equipment
CN114019821A (en) Smart home control method, device and system

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160525

WD01 Invention patent application deemed withdrawn after publication