CN112037400A - Noninductive information acquisition method based on android Bluetooth SPP - Google Patents

Noninductive information acquisition method based on android Bluetooth SPP Download PDF

Info

Publication number
CN112037400A
CN112037400A CN202010934689.0A CN202010934689A CN112037400A CN 112037400 A CN112037400 A CN 112037400A CN 202010934689 A CN202010934689 A CN 202010934689A CN 112037400 A CN112037400 A CN 112037400A
Authority
CN
China
Prior art keywords
information
bluetooth
spp
equipment
reading
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
CN202010934689.0A
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202010934689.0A priority Critical patent/CN112037400A/en
Publication of CN112037400A publication Critical patent/CN112037400A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • G07C9/29Individual registration on entry or exit involving the use of a pass the pass containing active electronic elements, e.g. smartcards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • 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/005Discovery of network devices, e.g. terminals

Abstract

The invention discloses an android Bluetooth SPP-based information acquisition method, which comprises the steps that reading equipment is actively connected with an SPP protocol of the equipment, a Bluetooth module on the equipment is connected, the reading information is obtained and then compared with database information and fed back, and access control authority is obtained according to the feedback information to complete control over an access control system. According to the method, a user only needs to start the Bluetooth of the equipment and carries out non-inductive information acquisition through the android Bluetooth SPP, so that the user enters an access control system needing health confirmation, the information acquisition efficiency can be improved, and the information acquisition accuracy can be improved; and infection risks during epidemic situations caused by overlong queuing time are avoided, so that the safety of the access control system is improved.

Description

Noninductive information acquisition method based on android Bluetooth SPP
Technical Field
The invention relates to the technical field of information acquisition, in particular to a non-inductive information acquisition method based on android Bluetooth SPP.
Background
At present, the new coronary pneumonia epidemic situation outbreak and the global epidemic prevention situation are severe, various health code services are provided for effectively controlling the epidemic situation in China so as to determine whether a bearer has excessive contact with a diagnosed case in a public place, and the technology scans a two-dimensional code on a mobile phone of the bearer through a camera and inputs related information. However, the two-dimensional code scanning has the technical defect of slow speed, and the time from calling out the two-dimensional code by taking out the mobile phone to confirming information by scanning the camera to successfully collecting the information usually needs 5 to 10 seconds; moreover, the media information can indicate that the code scanning can reduce the passing efficiency of public places (such as subways, buses, conference entrances and the like), so that a large number of people can wait in line, and the infection risk during the epidemic situation is higher.
Disclosure of Invention
In order to solve the problems in the prior art, the invention aims to provide a non-inductive information acquisition method based on android bluetooth SPP, reading equipment actively acquires data through bluetooth wireless signals, and the data are acquired noninductively and quickly, so that personnel can pass through the method quickly in public places with information acquisition requirements.
In order to achieve the purpose, the invention adopts the technical scheme that:
an information acquisition method based on android Bluetooth SPP comprises the steps that reading equipment actively connects with an SPP protocol of the equipment, connecting a Bluetooth module on the equipment, comparing and feeding back the reading information with database information, obtaining access control authority according to the feedback information, and finishing control over an access control system; the method comprises the following specific steps:
step 1, acquiring equipment information within a range;
step 2, establishing SPP connection, and acquiring the name and MAC address information of the equipment through the SPP connection;
step 3, establishing an object through the obtained MAC address, and preparing a connection interface to connect equipment;
step 4, reading the user health information of the equipment through the connection interface, and writing the user health information into a database;
and 5, comparing the data, and feeding back the result through a physical signal system to complete the control of the access control system.
Preferably, the reading device acquires the device information in a broadcast form.
Preferably, the step 1 further comprises detecting bluetooth status information of the device.
Preferably, the reading device in step 2 uses a BlueAdatper search device.
Preferably, in step 2, an SPP connection is established through broadcastreseiver, and then the name and MAC address information of the device in onReceive are read through the SPP connection.
Preferably, in step 3, the object is a bluetooth device object, a connection interface bluetooth socket is derived from the bluetooth device object, and a connected protocol and service are selected through the bluetooth socket.
Preferably, the connection interface in step 3 performs device uniqueness confirmation by reading the UUID of the device.
Preferably, the reading of the user health information of the device in step 4 includes reading IMEI and mobile phone number information, and obtaining the user health information by associating the mobile phone number with the identity information of the device user.
The invention has the beneficial effects that:
according to the invention, the non-inductive information acquisition is matched with the Bluetooth near field communication technology to realize the rapid information acquisition, so that the information acquisition speed can be increased, and the information acquisition accuracy can be improved, thereby improving the people flow passing efficiency in public places and preventing congestion.
Drawings
Fig. 1 is a flowchart of a method for collecting non-sensory information based on an android bluetooth SPP according to an embodiment of the present invention.
Detailed Description
The following description is presented to disclose the invention so as to enable any person skilled in the relevant art to practice the invention. The embodiments described below are intended to be examples only, and other obvious modifications will occur to those skilled in the relevant art and are within the scope of the invention.
In one embodiment, the invention provides a non-inductive information acquisition method based on android bluetooth SPP. The method comprises the following specific steps:
step 1, acquiring equipment information in a range, and searching the equipment information by reading equipment in a broadcast mode;
the reading equipment uses a register receiving register receiver to register and receive BroadcastReceiver to acquire the Bluetooth state, equipment information and the like of the equipment to be read in a signal range;
firstly, detecting whether the Bluetooth of a read device is started; if the Bluetooth module is started, the Bluetooth module on the read equipment is directly connected; if not, reminding the user to start the Bluetooth;
step 2, establishing SPP connection, and acquiring the name and MAC address information of the equipment through the SPP connection;
the reading device uses BlueAdatper to search for a read Bluetooth device; acquiring the searched Bluetooth equipment name and MAC address information in onReceive of BroadcastReceiver;
step 3, establishing an object through the obtained MAC address, and preparing a connection interface to connect the Bluetooth equipment;
establishing a Bluetooth device object through the MAC address of the device; deriving a Bluetooth SOCKET from the Bluetooth device, and preparing a SOCKET to read and write the device; selecting a connected protocol and service by a createRfcommSocketToServiceRecord method of Bluetooth socket, reading a UUID of the equipment and confirming the uniqueness of the equipment;
step 4, reading the user health information of the Bluetooth equipment through the connection interface, and writing the user health information into a database;
after the reading device and the read device are connected, using getInputStream and getOutputStream of Bluetooth socket to read the user health information of the Bluetooth device, and writing the read user health information into the database,
step 5, comparing the data, and feeding back the result through a physical signal system;
and comparing the written user health information with the existing white list/black list database information, and feeding back the database record comparison result through a physical signal system to prompt the access right verification result of the personnel.
The invention is improved according to the practical problems in the use of the current health two-dimensional code, and can overcome the defects that the two-dimensional code is low in scanning speed and is easily influenced by the outside and a user in the practical use process. Through adopting the information acquisition based on tall and erect bluetooth SPP of ann, use bluetooth near field communication information acquisition technique, make the collection process reach the noninductive effect that just passes through entrance guard fast.
As shown in fig. 1, the specific practical process is as follows:
s1: a person carries a smart phone with Bluetooth in an open state to enter a security inspection channel of a certain subway station.
S2: the Bluetooth information reading device arranged at the security check searches nearby read devices through the BlueAdatper.
S3: after the read device is found, SPP connection is established through BroadcastReceiver, and then the searched device name and MAC address basic information of the Bluetooth device information are obtained through the read onReceive.
S4: a bluetooth device object is created in the system by reading the MAC address of the device.
S5: and deriving a Bluetooth socket through the established Bluetooth device object, and preparing a data interface Bluetooth socket to read and write the Bluetooth device.
S6: selecting a connection method through a createRfcommsocketToServiceRecord method of Bluetooth socket to select a connected protocol and service, and reading a UUID of the device to confirm the uniqueness of the device;
s7: after the connection between the reading device and the device to be read is established, the bluetooth device information is read using the getInputStream and getOutputStream methods of bluetooth socket.
S8: the reading equipment reads the read Bluetooth equipment, wherein the IMEI and the key information of the mobile phone number are selected to be read by the reading equipment, and the key information is related to the real identity information of the holder of the read equipment through one mobile phone number.
S9: and writing the information into a database to finish one-time information reading and recording.
S10: and comparing the read information with a white list/a black list of the access control system.
S11: the database records the comparison result so as to trace back afterwards, and the physical signal feeds back the comparison result to prompt the person to allow/forbid access, such as prompting traffic lights, or prompting security personnel with obvious signals of voice passing, forbidding passing and the like.
By the method, the user only needs to open the Bluetooth of the equipment and perform non-inductive information acquisition through the android Bluetooth SPP, so that the user enters the access control system needing health confirmation, the efficiency of entering the access control system is greatly improved, the infection risk during epidemic caused by overlong queuing time is avoided, and the safety of entering and exiting the access control system is improved.
The above-mentioned embodiments only express the specific embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.

Claims (8)

1. An information acquisition method based on android Bluetooth SPP is characterized by comprising an SPP protocol of reading equipment actively connected with the equipment, a Bluetooth module on the equipment is connected, comparison and feedback are carried out on the reading information and database information after the reading information is obtained, access control authority is obtained according to the feedback information, and control over an access control system is completed; the method comprises the following specific steps:
step 1, acquiring equipment information within a range;
step 2, establishing SPP connection, and acquiring the name and MAC address information of the equipment through the SPP connection;
step 3, establishing an object through the obtained MAC address, and preparing a connection interface to connect equipment;
step 4, reading the user health information of the equipment through the connection interface, and writing the user health information into a database;
and 5, comparing the data, and feeding back the result through a physical signal system to complete the control of the access control system.
2. The android bluetooth SPP-based information collection method of claim 1, wherein the reading device obtains device information in a broadcast format.
3. The android bluetooth SPP-based information collection method of claim 1, wherein step 1 further comprises detecting bluetooth status information of the device.
4. The android bluetooth SPP-based information collection method of claim 1, wherein the reading device in step 2 uses a BlueAdatper search device.
5. The android bluetooth SPP-based information acquisition method as claimed in claim 4, wherein in the step 2, SPP connection is established through broadcastrceiver, and then the name and MAC address information of the device in onReceive are read through SPP connection.
6. The android bluetooth SPP-based information collection method as claimed in claim 1, wherein the object in step 3 is a bluetooth device object, a connection interface bluetooth socket is derived from the bluetooth device object, and a connected protocol and service are selected through the bluetooth socket.
7. The android bluetooth SPP-based information collection method of claim 1, wherein the connection interface in step 3 performs device uniqueness validation by reading a UUID of the device.
8. The android bluetooth SPP-based information collection method of claim 1, wherein the reading of the user health information of the device in step 4 comprises reading IMEI and mobile phone number information, and obtaining the user health information by associating the mobile phone number with the identity information of the device user.
CN202010934689.0A 2020-09-08 2020-09-08 Noninductive information acquisition method based on android Bluetooth SPP Pending CN112037400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010934689.0A CN112037400A (en) 2020-09-08 2020-09-08 Noninductive information acquisition method based on android Bluetooth SPP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010934689.0A CN112037400A (en) 2020-09-08 2020-09-08 Noninductive information acquisition method based on android Bluetooth SPP

Publications (1)

Publication Number Publication Date
CN112037400A true CN112037400A (en) 2020-12-04

Family

ID=73585493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010934689.0A Pending CN112037400A (en) 2020-09-08 2020-09-08 Noninductive information acquisition method based on android Bluetooth SPP

Country Status (1)

Country Link
CN (1) CN112037400A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113962673A (en) * 2021-12-20 2022-01-21 深圳市微付充科技有限公司 Information checking system, mobile terminal, checking machine and information checking method
CN113962672A (en) * 2021-12-20 2022-01-21 深圳市微付充科技有限公司 Information checking system, mobile terminal, checking machine and information checking method
CN114443977A (en) * 2022-01-21 2022-05-06 支付宝(杭州)信息技术有限公司 Method, device, equipment and medium for acquiring and sending place information

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620649A (en) * 2009-08-07 2010-01-06 四川长虹电器股份有限公司 Real-time monitoring method for human health based on network communication
US20150264722A1 (en) * 2014-03-12 2015-09-17 Tencent Technology (Shenzhen) Company Limited Method and device for controlling peripheral devices via a social networking platform
CN105050031A (en) * 2015-06-29 2015-11-11 上海卓易科技股份有限公司 Method and device for realizing wearable equipment factory test based on Bluetooth SPP protocol
CN105574960A (en) * 2014-10-17 2016-05-11 慧锐通智能科技股份有限公司 Entrance guard control system and method
CN105788047A (en) * 2016-03-30 2016-07-20 北京千丁互联科技有限公司 Bluetooth access control device, Bluetooth access control management system and Bluetooth access control management method
CN105894627A (en) * 2016-03-30 2016-08-24 北京千丁互联科技有限公司 Bluetooth access control equipment and bluetooth access control management system and method
CN205582061U (en) * 2016-05-09 2016-09-14 贵州恒晋科技有限公司 Door opener based on bluetooth control
CN106023381A (en) * 2016-06-17 2016-10-12 北京千丁互联科技有限公司 Bluetooth terminal and Bluetooth access control system and method
CN106127890A (en) * 2016-06-17 2016-11-16 北京千丁互联科技有限公司 Control of bluetooth access equipment, Bluetooth terminal, control of bluetooth access management system and method
US9877199B1 (en) * 2016-11-10 2018-01-23 Avigilon Corporation Wireless communication of information from access control device to mobile communications device
CA3042208A1 (en) * 2016-11-11 2018-05-14 Carnival Corporation Wireless guest engagement system
CN207938148U (en) * 2018-03-20 2018-10-02 无锡职业技术学院 A kind of modular laboratory safety monitoring and warning device
CN108696845A (en) * 2017-03-10 2018-10-23 厦门雅迅网络股份有限公司 A kind of automatic connection method and its system of bluetooth equipment
CN109472903A (en) * 2018-11-20 2019-03-15 北京千丁互联科技有限公司 A kind of control of bluetooth access control method and its device
CN110415404A (en) * 2019-07-19 2019-11-05 佛山市拓拓网络科技有限公司 A kind of mobile phone induction system of building gate inhibition
CN111210886A (en) * 2020-03-05 2020-05-29 宁波一川交通科技有限公司 System and method for collecting human health data in real time
CN111243745A (en) * 2020-03-12 2020-06-05 中祖建设安装工程有限公司 Integrated health detection function's elimination control system
CN111539368A (en) * 2020-04-30 2020-08-14 中穗科技股份有限公司 Epidemic prevention detection information integrated identification method and device
AU2020101374A4 (en) * 2020-07-15 2020-08-20 Oxti Corporation Epidemic prevention device for electronic apparatus
CN111567939A (en) * 2020-05-26 2020-08-25 追信数字科技有限公司 Human body recognition mask based on special epidemic situation and use method thereof
CN111612113A (en) * 2020-05-26 2020-09-01 宁波军鸽防务科技有限公司 Epidemic prevention control method, device, system, storage medium and processor

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620649A (en) * 2009-08-07 2010-01-06 四川长虹电器股份有限公司 Real-time monitoring method for human health based on network communication
US20150264722A1 (en) * 2014-03-12 2015-09-17 Tencent Technology (Shenzhen) Company Limited Method and device for controlling peripheral devices via a social networking platform
CN105574960A (en) * 2014-10-17 2016-05-11 慧锐通智能科技股份有限公司 Entrance guard control system and method
CN105050031A (en) * 2015-06-29 2015-11-11 上海卓易科技股份有限公司 Method and device for realizing wearable equipment factory test based on Bluetooth SPP protocol
CN105788047A (en) * 2016-03-30 2016-07-20 北京千丁互联科技有限公司 Bluetooth access control device, Bluetooth access control management system and Bluetooth access control management method
CN105894627A (en) * 2016-03-30 2016-08-24 北京千丁互联科技有限公司 Bluetooth access control equipment and bluetooth access control management system and method
CN205582061U (en) * 2016-05-09 2016-09-14 贵州恒晋科技有限公司 Door opener based on bluetooth control
CN106023381A (en) * 2016-06-17 2016-10-12 北京千丁互联科技有限公司 Bluetooth terminal and Bluetooth access control system and method
CN106127890A (en) * 2016-06-17 2016-11-16 北京千丁互联科技有限公司 Control of bluetooth access equipment, Bluetooth terminal, control of bluetooth access management system and method
US9877199B1 (en) * 2016-11-10 2018-01-23 Avigilon Corporation Wireless communication of information from access control device to mobile communications device
CA3042208A1 (en) * 2016-11-11 2018-05-14 Carnival Corporation Wireless guest engagement system
CN108696845A (en) * 2017-03-10 2018-10-23 厦门雅迅网络股份有限公司 A kind of automatic connection method and its system of bluetooth equipment
CN207938148U (en) * 2018-03-20 2018-10-02 无锡职业技术学院 A kind of modular laboratory safety monitoring and warning device
CN109472903A (en) * 2018-11-20 2019-03-15 北京千丁互联科技有限公司 A kind of control of bluetooth access control method and its device
CN110415404A (en) * 2019-07-19 2019-11-05 佛山市拓拓网络科技有限公司 A kind of mobile phone induction system of building gate inhibition
CN111210886A (en) * 2020-03-05 2020-05-29 宁波一川交通科技有限公司 System and method for collecting human health data in real time
CN111243745A (en) * 2020-03-12 2020-06-05 中祖建设安装工程有限公司 Integrated health detection function's elimination control system
CN111539368A (en) * 2020-04-30 2020-08-14 中穗科技股份有限公司 Epidemic prevention detection information integrated identification method and device
CN111567939A (en) * 2020-05-26 2020-08-25 追信数字科技有限公司 Human body recognition mask based on special epidemic situation and use method thereof
CN111612113A (en) * 2020-05-26 2020-09-01 宁波军鸽防务科技有限公司 Epidemic prevention control method, device, system, storage medium and processor
AU2020101374A4 (en) * 2020-07-15 2020-08-20 Oxti Corporation Epidemic prevention device for electronic apparatus

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
董雅婧等: ""安馨"智能手表的创意与设计", 《实验教学与仪器》 *
超级方: "史上最全系列之网络通信之蓝牙", 《HTTP://BLOG.CSDN.NET/SUPERFANG119/ARTICLE/DETAILS/9418359》 *
饭小粒: "Android蓝牙通用数据传输之一(SPP)", 《HTTPS://BLOG.CSDN.NET/FEELINGHAPPY/ARTICLE/DETAILS/91345616?SPM》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113962673A (en) * 2021-12-20 2022-01-21 深圳市微付充科技有限公司 Information checking system, mobile terminal, checking machine and information checking method
CN113962672A (en) * 2021-12-20 2022-01-21 深圳市微付充科技有限公司 Information checking system, mobile terminal, checking machine and information checking method
CN113962672B (en) * 2021-12-20 2022-04-12 深圳市微付充科技有限公司 Information checking system, mobile terminal, checking machine and information checking method
CN114443977A (en) * 2022-01-21 2022-05-06 支付宝(杭州)信息技术有限公司 Method, device, equipment and medium for acquiring and sending place information

Similar Documents

Publication Publication Date Title
CN112037400A (en) Noninductive information acquisition method based on android Bluetooth SPP
EP3171308A1 (en) Information processing method, information processing apparatus, terminal, and server
CN106097468B (en) One kind is registered method, terminal and IM application server
CN107798869B (en) Bus passenger flow acquisition and analysis method based on station WiFi and vehicle-mounted GPS
WO2012148240A2 (en) Vehicle control system and method for controlling same
CN108092685B (en) Double-card-slot terminal double-card-slot state identification method, device, equipment and medium
CN107483416A (en) The method and device of authentication
AU2008298465B2 (en) Radio communication device, information processing system, program, and radio communication method
CN105517103A (en) Network access method and device based on intelligent terminal device
CN110633642B (en) Identity information verification method and device, terminal equipment and storage medium
CN101459721A (en) Method and device for anti-theft tracking of mobile phone
CN109255863A (en) The intelligent door lock and its operation method verified based on user's face and two dimensional code
CN104244253A (en) Method and device for recognizing false base station
CN110556022A (en) Parking lot parking space indication method and device based on artificial intelligence and electronic equipment
CN107563712A (en) A kind of mobile terminal punch card method, device, equipment and system
CN103150776A (en) System and method for attendance based on navigational positioning and biometric feature recognition
CN108540755A (en) Personal identification method and device
EP3140825B1 (en) Authentication method for vehicular number plate recognition
CN105976442A (en) Vehicle-mounted-radio-frequency-device-based vehicle management system and method thereof
CN111711676B (en) Method for confirming indoor close contact person of infectious disease patient and server
CN104837181A (en) Network access method and device
CN107610452B (en) Quick car booking method and system for short-distance Bluetooth hotspot positioning
CN110312201A (en) People's vehicle correlating method and system based on communication network and vehicle information acquisition system
CN113997810B (en) Control method and device for vehicle charging port and vehicle
EP3972302A1 (en) Network registration method, apparatus and system, and storage medium

Legal Events

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

Application publication date: 20201204