CN105323712A - Bluetooth equipment automatic registering method - Google Patents

Bluetooth equipment automatic registering method Download PDF

Info

Publication number
CN105323712A
CN105323712A CN201510887880.3A CN201510887880A CN105323712A CN 105323712 A CN105323712 A CN 105323712A CN 201510887880 A CN201510887880 A CN 201510887880A CN 105323712 A CN105323712 A CN 105323712A
Authority
CN
China
Prior art keywords
bluetooth equipment
identification code
address information
event message
information
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
CN201510887880.3A
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510887880.3A priority Critical patent/CN105323712A/en
Publication of CN105323712A publication Critical patent/CN105323712A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • H04W8/265Network addressing or numbering for mobility support for initial activation of new user

Landscapes

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

Abstract

The invention relates to the field of registration service and in particular relates to a Bluetooth equipment automatic registering method. The Bluetooth equipment automatic registering method comprises the following steps: providing Bluetooth equipment, and newly adding an identification code used for storing information of the Bluetooth equipment; according to an event trigger of to-be-scanned Bluetooth equipment, scanning the Bluetooth equipment, and analyzing an event message from a Bluetooth equipment bottom layer; according to the analyzed event message, reading information of a data segment of the event message, and correspondingly acquiring the identification code of the Bluetooth equipment; starting a data processing process, then reading address information of the Bluetooth equipment, comparing the read address information of the Bluetooth equipment with address information in the information of the data segment, and determining the corresponding identification code; and taking the identification code as a parameter of a registration service function.

Description

The method that bluetooth equipment is registered automatically
Technical field
The present invention relates to registration service field, particularly relate to a kind of method that bluetooth equipment is registered automatically.
Background technology
Occurred much low-power consumption medical treatment & health equipment in the market, in order to meet the demand of home intelligence, intelligent router needs the function realizing the various bluetooth equipment of access.Before acquisition bluetooth equipment information, need device registration service, to resolve the information received, and be sent to high in the clouds by certain form.For occurring more low-power consumption medical treatment & health equipment in the market, based on linux system, occur at present judging based on device name, manually increased code and carry out registration service, sizable limitation is had access to low-power consumption bluetooth equipment, is not easy to platform maintenance.
Summary of the invention
For problems of the prior art, the invention provides a kind of method that bluetooth equipment is registered automatically, make compatibility stronger, and be more beneficial to the maintenance of platform.
The present invention adopts following technical scheme:
The method that bluetooth equipment is registered automatically, described method comprises:
There is provided a bluetooth equipment, the identification code of a newly-increased preservation bluetooth equipment information;
Event according to scanning bluetooth equipment triggers, and scans bluetooth equipment and resolves the event message from bluetooth equipment bottom;
According to the event message of resolving, read the data segment information of event message, the corresponding identification code obtaining bluetooth equipment;
Read the address information of bluetooth equipment after turn-on data treatment progress, the address information in the address information of the bluetooth equipment of reading and data segment information is contrasted, determine corresponding identification code;
Using the parameter of this identification code as registration service function.
Preferably, in described method, identification code is general unique identifier, and the field of identification code is device_uuid.
Preferably, in described method, data segment information is saved in a structure variable.
Preferably, in described method, read data SMS breath, obtain the identification code of bluetooth equipment according to the type comprised in data segment information, preserve identification code in the field device_uuid of corresponding table.
Preferably, in described method, turn-on data treatment progress, receives the open event message from bluetooth equipment.
Preferably, in described method, after receiving open event message, resolve the open event message from bluetooth equipment bottom, read the address information of bluetooth equipment.
Preferably, in described method, read table data message, and table data message is saved in structure variable.
Preferably, in described method, address information in the address information of the bluetooth equipment of reading and data segment information is contrasted, determine corresponding identification code, corresponding registration service function is found according to this identification code, the table data message received is resolved, according to the form of setting, table data message is sent to cloud server.
The invention has the beneficial effects as follows:
The present invention, mainly for low-power consumption bluetooth equipment, provides a kind of new device service register method based on Linux system, namely can general unique identifier needed for the registration of automatic acquisition device service, and to be differentiated and registration service by general unique identifier.So that new low-power consumption bluetooth equipment is easy to access.Method of the present invention makes platform more easy care, the low-power consumption bluetooth equipment on easier compatible market.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the embodiment of the present invention one;
Fig. 2 is the method flow diagram of the embodiment of the present invention two.
Embodiment
It should be noted that, when not conflicting, following technical proposals, can combine between technical characteristic mutually.
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is further described:
The present invention is by finding that new equipment module is resolved message and obtained general unique identifier, differentiate and registration service at the general unique identifier of reception data module automatic acquisition, newly-increased code is not needed to the access of new low-power consumption bluetooth equipment, make current platform more easy care, the low-power consumption bluetooth equipment on easier compatible market.
Embodiment one
As shown in Figure 1, present embodiments provide a kind of method that bluetooth equipment is registered automatically, the present embodiment relates generally to the method for the general unique identifier of the new bluetooth equipment of acquisition wherein (hereinafter referred to as bluetooth equipment), and the present embodiment mainly comprises following four steps:
Step 1: new field device_uuid, is general unique identifier (hereinafter referred to as identification code), for preserving the information of bluetooth equipment.
Step 2: open scan procedure, receives scanning bluetooth equipment event and triggers, resolve the event message from bottom.
Step 3: obtain data segment information: resolve and find bluetooth equipment event, reads the data segment information of event message, and is kept in a structure variable.
Step 4: obtain bluetooth equipment identification code: the data segment information in read structure body variable, according to the type that data segment information comprises, the corresponding identification code obtaining this bluetooth equipment, and be kept in the field device_uuid of corresponding table.
Embodiment two
As shown in Figure 2, present embodiments provide a kind of method that bluetooth equipment is registered automatically, the present embodiment relates generally to the method for device registration service function wherein, and the present embodiment mainly comprises following five steps:
Step 1: turn-on data treatment progress, receives the open event message from bluetooth equipment.
Step 2: receive open event, resolves the event message from bluetooth equipment bottom, reads the address information of bluetooth equipment.
Step 3: read table data message, table data are kept in Array for structural body variable.
Step 4: the device address information in the bluetooth device address received and Array for structural body variable contrasted, finds corresponding general unique identifier.
Step 5: by the parameter of this general unique identifier as registration service function: follow-uply find deserved function according to general unique identifier, resolves the data message received, and according to the form of setting, data is sent to cloud server.
Embodiment three
The present embodiment relates to a kind of method that bluetooth equipment is registered automatically, and the method comprises:
There is provided a bluetooth equipment, the identification code of a newly-increased preservation bluetooth equipment information;
Event according to scanning bluetooth equipment triggers, and scans bluetooth equipment and resolves the event message from bluetooth equipment bottom;
According to the event message of resolving, read the data segment information of event message, the corresponding identification code obtaining bluetooth equipment;
Read the address information of bluetooth equipment after turn-on data treatment progress, the address information in the address information of the bluetooth equipment of reading and data segment information is contrasted, determine corresponding identification code;
Using the parameter of this identification code as registration service function.
In the present invention's preferred embodiment, in the method, identification code is general unique identifier, and the field of identification code is device_uuid.
In the present invention's preferred embodiment, in the method, data segment information is saved in a structure variable.
In the present invention's preferred embodiment, in the method, read data SMS breath, obtain the identification code of bluetooth equipment according to the type comprised in data segment information, preserve identification code in the field device_uuid of corresponding table.
In the present invention's preferred embodiment, in the method, turn-on data treatment progress, receives the open event message from bluetooth equipment.
In the present invention's preferred embodiment, in the method, after receiving open event message, resolve the open event message from bluetooth equipment bottom, read the address information of bluetooth equipment.
In the present invention's preferred embodiment, in the method, read table data message, and table data message is saved in structure variable.
In the present invention's preferred embodiment, in the method, address information in the address information of the bluetooth equipment of reading and data segment information is contrasted, determine corresponding identification code, corresponding registration service function is found according to this identification code, the table data message received is resolved, according to the form of setting, table data message is sent to cloud server.
To sum up, the present invention is mainly for low-power consumption bluetooth equipment, a kind of new device service register method is provided based on Linux system, namely can general unique identifier needed for the registration of automatic acquisition device service, and to be differentiated and registration service by general unique identifier.So that new low-power consumption bluetooth equipment is easy to access.Method of the present invention makes platform more easy care, the low-power consumption bluetooth equipment on easier compatible market.
By illustrating and accompanying drawing, giving the exemplary embodiments of the ad hoc structure of embodiment, based on the present invention's spirit, also can do other conversion.Although foregoing invention proposes existing preferred embodiment, but these contents are not as limitation.
For a person skilled in the art, after reading above-mentioned explanation, various changes and modifications undoubtedly will be apparent.Therefore, appending claims should regard the whole change and correction of containing true intention of the present invention and scope as.In Claims scope, the scope of any and all equivalences and content, all should think and still belong to the intent and scope of the invention.

Claims (8)

1. the method automatically registered of bluetooth equipment, it is characterized in that, described method comprises:
There is provided a bluetooth equipment, the identification code of the described bluetooth equipment information of a newly-increased preservation;
Event according to the described bluetooth equipment of scanning triggers, and scans described bluetooth equipment and resolves the event message from described bluetooth equipment bottom;
According to the described event message of resolving, read the data segment information of described event message, the corresponding described identification code obtaining described bluetooth equipment;
Read the address information of described bluetooth equipment after turn-on data treatment progress, the address information in the address information of the described bluetooth equipment read and described data segment information is contrasted, determines corresponding identification code;
Using the parameter of this identification code as registration service function.
2. the method automatically registered of bluetooth equipment according to claim 1, it is characterized in that, in described method, described identification code is general unique identifier, and the field of described identification code is device_uuid.
3. the method automatically registered of bluetooth equipment according to claim 1, is characterized in that, in described method, be saved to by described data segment information in a structure variable.
4. the method automatically registered of bluetooth equipment according to claim 2, it is characterized in that, in described method, read described data SMS breath, obtain the identification code of described bluetooth equipment according to the type comprised in described data segment information, preserve described identification code in the field device_uuid of corresponding table.
5. the method automatically registered of bluetooth equipment according to claim 1, is characterized in that, in described method, open described data processing process, receive the open event message from described bluetooth equipment.
6. the method automatically registered of bluetooth equipment according to claim 5, it is characterized in that, in described method, after receiving described open event message, resolve the described open event message from described bluetooth equipment bottom, read the address information of described bluetooth equipment.
7. the method automatically registered of bluetooth equipment according to claim 3, is characterized in that, in described method, reads table data message, and is saved in described structure variable by described table data message.
8. the method automatically registered of bluetooth equipment according to claim 7, it is characterized in that, in described method, address information in the address information of the described bluetooth equipment read and described data segment information is contrasted, determine corresponding identification code, find corresponding described registration service function according to this identification code, the described table data message received is resolved, according to the form of setting, described table data message is sent to cloud server.
CN201510887880.3A 2015-12-04 2015-12-04 Bluetooth equipment automatic registering method Pending CN105323712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510887880.3A CN105323712A (en) 2015-12-04 2015-12-04 Bluetooth equipment automatic registering method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510887880.3A CN105323712A (en) 2015-12-04 2015-12-04 Bluetooth equipment automatic registering method

Publications (1)

Publication Number Publication Date
CN105323712A true CN105323712A (en) 2016-02-10

Family

ID=55250142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510887880.3A Pending CN105323712A (en) 2015-12-04 2015-12-04 Bluetooth equipment automatic registering method

Country Status (1)

Country Link
CN (1) CN105323712A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115276A (en) * 2019-12-24 2021-07-13 成都鼎桥通信技术有限公司 Bluetooth device identification method and device, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345761A (en) * 2008-08-20 2009-01-14 深圳市同洲电子股份有限公司 Private data transmission method and system
CN102238491A (en) * 2010-04-21 2011-11-09 卢业力 Mobile friends-making system and method
CN103702606A (en) * 2011-01-14 2014-04-02 高通股份有限公司 Telehealth wireless communication hub device and service platform system
CN104469980A (en) * 2014-11-21 2015-03-25 广东欧珀移动通信有限公司 Bluetooth connecting method and Bluetooth equipment
CN104540190A (en) * 2014-12-30 2015-04-22 广州视源电子科技股份有限公司 Bluetooth device matching method and system
CN104821031A (en) * 2015-05-27 2015-08-05 重庆大学 Dynamic authentication method for intelligent lock control system of Bluetooth mobile phone

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345761A (en) * 2008-08-20 2009-01-14 深圳市同洲电子股份有限公司 Private data transmission method and system
CN102238491A (en) * 2010-04-21 2011-11-09 卢业力 Mobile friends-making system and method
CN103702606A (en) * 2011-01-14 2014-04-02 高通股份有限公司 Telehealth wireless communication hub device and service platform system
CN104469980A (en) * 2014-11-21 2015-03-25 广东欧珀移动通信有限公司 Bluetooth connecting method and Bluetooth equipment
CN104540190A (en) * 2014-12-30 2015-04-22 广州视源电子科技股份有限公司 Bluetooth device matching method and system
CN104821031A (en) * 2015-05-27 2015-08-05 重庆大学 Dynamic authentication method for intelligent lock control system of Bluetooth mobile phone

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MANTEAU: "《[android源码分析] enable_native中的hci dev注册和up》", 《《[ANDROID源码分析] ENABLE_NATIVE中的HCI DEV注册和UP》》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115276A (en) * 2019-12-24 2021-07-13 成都鼎桥通信技术有限公司 Bluetooth device identification method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
RU2607615C2 (en) Methods and apparatus for obtaining service
US10165394B2 (en) Location accuracy for proximity services
US10880756B2 (en) Information notification method, user terminal, first base station, and second base station
CN102255688A (en) LTEPDCCH (Long Term Evolution System Physical Downlink Control Channel) blind inspection control method and device
US9986415B2 (en) Method for saving standard format page and server
EP3169109A1 (en) Network access method and mobile communication terminal
US20160050281A1 (en) Seamless peer to peer internet connectivity
US20170171852A1 (en) Method and apparatus for managing capability of electronic device in wireless communication system
US11368901B2 (en) Method for identifying a type of a wireless hotspot and a network device thereof
BR112012022788B1 (en) EXCHANGE OF MESSAGES REGARDING POSITIONING DATA
CN107371234B (en) Registration method, device and terminal
US9420467B2 (en) Mobile phone and received information processing method thereof
CN107529158A (en) A kind of method for obtaining LTE terminal Cell Radio Network Temporary Identifier/Identity, Cell-RNTI code
US9954966B2 (en) Method and apparatus for disaster notification
CN106162541A (en) A kind of method and system inquiring about neighbouring terminal unit
CN105491092B (en) Message pushing method and device
CN105323712A (en) Bluetooth equipment automatic registering method
US20170118625A1 (en) Method and Device for Controlling Subscriber Identity Module Card of Mobile Terminal
EP3799399A1 (en) Method and apparatus for acquiring address information
CN101360026A (en) Method accelerating wireless communication system terminal entering network
WO2016173338A1 (en) Network access method and mobile communications terminal
CN112970276B (en) Communication processing method, device, mobile terminal and storage medium
CN107872785B (en) Terminal attachment method and system, and mobility management entity
CN106612515B (en) Terminal APN synchronization method, device and system
ES2756373T3 (en) Neighbor cell configuration method, neighbor cell information communication method, apparatus and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160210