CN105321220A - Small-range bluetooth terminal counter and counting method thereof - Google Patents

Small-range bluetooth terminal counter and counting method thereof Download PDF

Info

Publication number
CN105321220A
CN105321220A CN201410281795.8A CN201410281795A CN105321220A CN 105321220 A CN105321220 A CN 105321220A CN 201410281795 A CN201410281795 A CN 201410281795A CN 105321220 A CN105321220 A CN 105321220A
Authority
CN
China
Prior art keywords
control chip
bluetooth terminal
counter
bluetooth
inquiry
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
CN201410281795.8A
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.)
Wuxi Hodgen Technology Co Ltd
Original Assignee
Wuxi Hodgen 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 Wuxi Hodgen Technology Co Ltd filed Critical Wuxi Hodgen Technology Co Ltd
Priority to CN201410281795.8A priority Critical patent/CN105321220A/en
Publication of CN105321220A publication Critical patent/CN105321220A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to quantity statistics and particularly relates to a small-range bluetooth terminal counter and a counting method thereof. The method includes the following steps: querying bluetooth terminals with a control chip, counting the number by a timer, obtaining the number of the bluetooth terminals in the small range and displaying the value on the counter through a liquid crystal display module. The counter and the method can be used for counting the number of all bluetooth terminals in the small range. The counting method is accurate and quick and is suitable for various situations with the bluetooth terminals without any limitation.

Description

A kind of counter of Bluetooth terminal among a small circle and statistical method thereof
Technical field
The present invention relates to its quantity statistics method, particularly relate to counter and the statistical method thereof of its a kind of Bluetooth terminal among a small circle.
Background technology
Along with the development of intelligent terminal, software engineering and Bluetooth technology, for a kind of among a small circle in count Bluetooth terminal quantity provide possibility.
Collective's occasion, the crowd's quantity how counting surrounding is fast very important, current existing statistical method, be mainly the modes such as counting method of checking card, infrared or laser counting, these methods have the condition of a common indispensability, and being exactly all to have a special counting equipment to be placed on porch, and everyone must be waited to cover this counting procedure one by one, just can complete counting, such statistical method speed is slow and very inconvenient, restricted application.
For above-mentioned defect, in conjunction with the more and more ripe Bluetooth technology of development, the statistical method of the quantity of a kind of statistics Bluetooth terminal interior among a small circle can be invented, as long as want this method can be accomplished to be applied in corresponding statistics equipment just can count rapidly crowd's quantity.
Summary of the invention
The object of the invention is to meet requirement in background technology, thus propose a kind of counter and statistical method thereof of Bluetooth terminal among a small circle, the method is applied to described counter with the form of software program, can realizes adding up fast and accurately Bluetooth terminal interior among a small circle.
In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is: a kind of counter of Bluetooth terminal among a small circle, take control chip as core, this control chip connects power supply, it is characterized in that, described control chip is connected with filtering circuit, reset circuit, clock circuit and driving circuit; Described filtering circuit wireless connections PCB antenna; Described driving circuit is also electrically connected LCD MODULE; Described LCD MODULE is also connected with power supply.
Based on described counter, the invention allows for a kind of statistical method of Bluetooth terminal among a small circle, the method is applied in described counter in the mode of program, this counter has just possessed the statistical system of complete set, the method specifically comprises the following steps: first Bluetooth terminal is set to " inquiry scan state " by (1), and by the program setting " query display cycle " in control chip; (2) then by the counter described in programmed control, by the counter O reset in control chip; (3) GIAC or DIAC inquiry Bluetooth terminal is around sent by control chip; (4) the Bluetooth terminal response request signal being in " inquiry scan state " in certain limit, by FHS Packet Generation to control chip; (5) control chip receives the FHS packet of a Bluetooth terminal and extracts address date; (6) control chip stores corresponding address date, and unison counter adds 1; (7) control chip continues to send GIAC or DIAC inquiry Bluetooth terminal around; (8) next Bluetooth terminal response inquiry, control chip again receives FHS packet and extracts address date; (9) contrast is extracted address and has been deposited address, judges whether repetition, if address is not repeated, jumps to step (6) and continue to repeat, if address is repeated, order performs next step; (10) keep the value of counter constant, judge whether completely one " query display cycle " query time, if full one-period, LCD MODULE is by the value of display counter, namely the quantity of Bluetooth terminal in certain limit has been added up, if discontented one-period, step (3) repetitive sequence will be jumped to and perform, until the quantity of LCD MODULE display Bluetooth terminal.
Preferred version: described control chip comprises bluetooth module, processor and storer.
The invention has the beneficial effects as follows: the concrete scheme that The present invention gives statistics Bluetooth terminal quantity, disclose a kind of counter having concrete structure module, and disclose statistical method accordingly, by this Application of Statistic Methods in described counter, can realize necessarily among a small circle in the quantitative statistics of all Bluetooth terminal numbers, this statistical method is accurate, quick, can be applicable to all size occasion of Bluetooth terminal, unrestricted.
Accompanying drawing explanation
Fig. 1, the structured flowchart of counter of the present invention;
Fig. 2, the control flow chart of the embodiment of the present invention one;
Fig. 3, the control flow chart of the embodiment of the present invention two.
Embodiment
Below in conjunction with accompanying drawing and preferred scheme, the specific embodiment of the present invention is described in further detail.
As shown in Figure 1, for the structured flowchart of the counter of a kind of bluetooth equipment among a small circle of the present invention, this counter is with control chip 1 for core, is powered by power supply 8, and control chip 1 is electrically connected with filtering circuit 2, reset circuit 3, clock circuit 4, driving circuit 5.Described filtering circuit 2 is connected with PCB antenna 6 with communication; Described driving circuit 7 is also connected with LCD MODULE 7, and LCD MODULE 7 is also powered by power supply 8.Described control chip 1 has the function of reception, transmission, process, storage data, actual carry out Bluetooth terminal number quantitative statistics among a small circle time, this control chip 1 is equivalent to the three zones block comprising statistical system, i.e. bluetooth module, storer and microprocessor.
Embodiment one: is as shown in Figure 2 a kind of control flow chart realizing adding up Bluetooth terminal quantity in the control chip 1 statistical method of the present invention being write counter of the present invention in the mode of program.Control chip 1 in the present embodiment adopts the chip CC2540 of preferred TI company, this chip compatible bluetooth 4.0BLE agreement, and contains processor and storer, therefore directly uses this chip to complete function of the present invention in the present embodiment.
First initialization is carried out to the program of CC2540 control chip 1, and set one " query display cycle " as 3 seconds, this cycle is made up of many " inquiry control cycle ", namely within " query display cycle ", complete the once statistics of all Bluetooth terminals within the scope of Bluetooth signal, this cycle can set as the case may be.In one " inquiry control cycle ", namely complete one query control procedure, this control chip 1 has the tally function of counter by programmed control, and after initialize routine, the initial value of counter is set to 0, then, control chip 1 sends the Bluetooth terminal being in " inquiry scan state " within the scope of GIAC or DIAC request signal, the Bluetooth terminal response inquiry of inquiry scan state, send FHS packet to control chip 1, control chip 1 extracts the Bluetooth terminal address information in packet, and store, unison counter adds 1, then control chip continues to send GIAC or DIAC inquiry Bluetooth terminal, next terminal response inquiry, send FHS packet to control chip 1, control chip 1 receives packet and extracts address date, the address of rear extraction and the address date stored are contrasted simultaneously, see and whether repeat, if repeated, give up, Counter Value is constant, control chip continues inquiry, if do not repeat, then storage address information, unison counter value adds 1, then continue to repeat inquiry, until " query display cycle " terminates, now display counter value in LCD MODULE 7.By this kind of mode, count the quantity being in the Bluetooth terminal of inquiry scan state within the scope of Bluetooth signal.
Embodiment two, mobile phone, notebook computer etc. are comprised the smart machine of Bluetooth function directly as the carrier of application statistical method of the present invention, directly use as counter by mobile phone, notebook computer etc., can in the system of these Bluetooth terminals direct Application and Development software, window display statistical figure established by software, complete Bluetooth terminal statistical function, claim the Bluetooth terminal (as mobile phone, notebook computer etc. comprise the smart machine of Bluetooth function) installing this application software to be main equipment in the present embodiment once, its software control flow process as shown in Figure 3.
First set one " query display cycle " as 2 seconds, open the application software on main equipment, in one " inquiry control cycle ", namely one query control procedure is completed, program initialization, counter O reset, then, start the Bluetooth function of main equipment, send GIAC or DIAC inquiry Bluetooth terminal around, the Bluetooth terminal of inquiry scan state is in scope, the Bluetooth terminal response inquiry of inquiry scan state, send FHS packet to main equipment, main equipment extracts the Bluetooth terminal address information in packet, and store, unison counter adds 1; Then main equipment continues to send GIAC or DIAC inquiry Bluetooth terminal, next terminal response inquiry, send FHS packet to main equipment, main equipment receives packet and extracts address date, then contrast with the address date stored, see and whether repeat, if repeated, give up, Counter Value is constant, and main equipment continues inquiry, if do not repeat, then storage address information, unison counter value adds 1, then continues to repeat inquiry, until a query display end cycle, now display counter value on primary device application window.Next " query display cycle " repeats this query script.By this kind of mode, the Bluetooth terminal being in inquiry scan state within the scope of Bluetooth signal can be counted.
The invention discloses a kind of counter and method thereof of Bluetooth terminal among a small circle, during concrete enforcement, can by this Application of Statistic Methods in described counter, or the method being arranged on the form of application software has on the smart machine of Bluetooth function, can realize necessarily among a small circle in the quantitative statistics of all Bluetooth terminal numbers, this statistical method is accurate, quick, can be applicable to all size occasion of Bluetooth terminal, unrestricted.

Claims (3)

1. the counter of a Bluetooth terminal among a small circle, with control chip (1) for core, this control chip connects power supply (8), it is characterized in that: described control chip (1) is connected with filtering circuit (2), reset circuit (3), clock circuit (4) and driving circuit (5); Described filtering circuit (2) wireless connections PCB antenna (6); Described driving circuit (5) is also electrically connected LCD MODULE (7); Described LCD MODULE (7) is also connected with power supply (8).
2. the counter of Bluetooth terminal among a small circle according to claim 1, is characterized in that: described control chip (1) comprises Bluetooth protocol, microprocessor and storer.
3. a statistical method for Bluetooth terminal among a small circle, be applied to described counter, it is characterized in that, this statistical method comprises the steps:
(1) first Bluetooth terminal is set to " inquiry scan state ", and by the program setting " query display cycle " in control chip;
(2) then by the counter described in programmed control, by the counter O reset in control chip;
(3) GIAC or DIAC inquiry Bluetooth terminal is around sent by control chip;
(4) the Bluetooth terminal response request signal being in " inquiry scan state " in certain limit, by FHS Packet Generation to control chip;
(5) control chip receives the FHS packet of a Bluetooth terminal and extracts address date;
(6) control chip stores corresponding address date, and unison counter adds 1;
(7) control chip continues to send GIAC or DIAC inquiry Bluetooth terminal around;
(8) next Bluetooth terminal response inquiry, control chip again receives FHS packet and extracts address date;
(9) contrast is extracted address and has been deposited address, judges whether repetition, if address is not repeated, jumps to step (6) and continue to repeat, if address is repeated, order performs next step;
(10) keep the value of counter constant, judge whether completely one " query display cycle " query time, if full one-period, LCD MODULE is by the value of display counter, namely the quantity of Bluetooth terminal in certain limit has been added up, if discontented one-period, step (3) repetitive sequence will be jumped to and perform, until the quantity of LCD MODULE display Bluetooth terminal.
CN201410281795.8A 2014-06-23 2014-06-23 Small-range bluetooth terminal counter and counting method thereof Pending CN105321220A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410281795.8A CN105321220A (en) 2014-06-23 2014-06-23 Small-range bluetooth terminal counter and counting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410281795.8A CN105321220A (en) 2014-06-23 2014-06-23 Small-range bluetooth terminal counter and counting method thereof

Publications (1)

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

Family

ID=55248529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410281795.8A Pending CN105321220A (en) 2014-06-23 2014-06-23 Small-range bluetooth terminal counter and counting method thereof

Country Status (1)

Country Link
CN (1) CN105321220A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111063183A (en) * 2019-12-25 2020-04-24 宁波三星医疗电气股份有限公司 Bluetooth-based electric energy meter statistical method and device and storage medium
CN113536082A (en) * 2020-04-14 2021-10-22 哈尔滨海能达科技有限公司 Terminal quantity query processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040000587A1 (en) * 2002-06-18 2004-01-01 Koichi Shibata Electronic balloting module and electronic balloting method
CN1523777A (en) * 2003-02-17 2004-08-25 ��ʽ���綫֥ Service providing apparatus, service providing program and service providing method
CN102693564A (en) * 2012-05-23 2012-09-26 苏州奇可思信息科技有限公司 Operation method for roll-call system with bluetooth
CN103686594A (en) * 2012-09-26 2014-03-26 安凯(广州)微电子技术有限公司 People flow distribution detection system
CN103871116A (en) * 2012-12-07 2014-06-18 大连联达科技有限公司 Method for collecting student attendance based on Bluetooth identification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040000587A1 (en) * 2002-06-18 2004-01-01 Koichi Shibata Electronic balloting module and electronic balloting method
CN1523777A (en) * 2003-02-17 2004-08-25 ��ʽ���綫֥ Service providing apparatus, service providing program and service providing method
CN102693564A (en) * 2012-05-23 2012-09-26 苏州奇可思信息科技有限公司 Operation method for roll-call system with bluetooth
CN103686594A (en) * 2012-09-26 2014-03-26 安凯(广州)微电子技术有限公司 People flow distribution detection system
CN103871116A (en) * 2012-12-07 2014-06-18 大连联达科技有限公司 Method for collecting student attendance based on Bluetooth identification

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱淑峰: "蓝牙技术在智能监控领域的新应用", 《机电一体化》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111063183A (en) * 2019-12-25 2020-04-24 宁波三星医疗电气股份有限公司 Bluetooth-based electric energy meter statistical method and device and storage medium
CN111063183B (en) * 2019-12-25 2021-03-19 宁波三星医疗电气股份有限公司 Bluetooth-based electric energy meter statistical method and device and storage medium
CN113536082A (en) * 2020-04-14 2021-10-22 哈尔滨海能达科技有限公司 Terminal quantity query processing method and device
CN113536082B (en) * 2020-04-14 2023-06-09 哈尔滨海能达科技有限公司 Terminal quantity query processing method and device

Similar Documents

Publication Publication Date Title
CN114697948B (en) Method and system for controlling UICC and EUICC
CN103501333B (en) Method, device and terminal equipment for downloading files
CN104168625B (en) Smart machine and its method and wireless routing device for being connected to wireless routing device
CN104185141A (en) Bluetooth beacon device based system and method for detecting stay time of user in area
CN105580394B (en) The method and apparatus that message push and message are shown
CN105100213B (en) Apparatus bound method and device
CN103747414B (en) The method and mobile terminal of more new state information
KR102275720B1 (en) Bluetooth communication method and bluetooth communication device
US20160210632A1 (en) Secured payment method and relevant device and system
KR20170109467A (en) Method and apparatus for controlling electronic device
CN104765591A (en) Method and system for updating software configuration parameter, and terminal server
CN109062745B (en) Test terminal with test server hardware temperature
CN107247604A (en) A kind of charger baby software firmware update system and its update method
US20170215169A1 (en) Electronic device group paging method and electronic device thereof
CN103716793A (en) Access point information sharing method and apparatus
CN109347938B (en) Traffic monitoring method, telephone watch, mobile terminal and server
CN105306199A (en) Identity verification method, device and system
CN106341809A (en) Data transmission method and apparatus
CN103687063A (en) Network connecting method, network connecting device and terminal equipment
CN103868421A (en) Method for displaying position information of electronic detonators on screen of control host
CN105321220A (en) Small-range bluetooth terminal counter and counting method thereof
CN109862083B (en) Method, device and equipment for activating Internet of things equipment
CN104135396B (en) Show the method for network speed information, device and terminal
CN102761613A (en) Mobile terminal and device information obtaining method and system thereof as well as server
CN204926225U (en) Signature equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160210

WD01 Invention patent application deemed withdrawn after publication