CN104951822A - Data transmission control method and data transmission control system for Bluetooth bar code identifying and reading equipment - Google Patents

Data transmission control method and data transmission control system for Bluetooth bar code identifying and reading equipment Download PDF

Info

Publication number
CN104951822A
CN104951822A CN201510275894.XA CN201510275894A CN104951822A CN 104951822 A CN104951822 A CN 104951822A CN 201510275894 A CN201510275894 A CN 201510275894A CN 104951822 A CN104951822 A CN 104951822A
Authority
CN
China
Prior art keywords
bar code
bluetooth
recognizing apparatus
rssi
decoding data
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
CN201510275894.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.)
Fujian New Continent Automatic Recognition Technology Coltd
Fujian Newland Auto ID Technology Co Ltd
Original Assignee
Fujian New Continent Automatic Recognition Technology Coltd
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 Fujian New Continent Automatic Recognition Technology Coltd filed Critical Fujian New Continent Automatic Recognition Technology Coltd
Priority to CN201510275894.XA priority Critical patent/CN104951822A/en
Publication of CN104951822A publication Critical patent/CN104951822A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a data transmission control method and a data transmission control system for Bluetooth bar code identifying and reading equipment. The method includes: firstly, judging whether Bluetooth connection is established or not, and if yes, sampling a Bluetooth connection signal intensity value; then, sampling a Bluetooth connection signal intensity value again after bar code decoding succeeds, judging the status of the Bluetooth bar code identifying and reading equipment, setting a first set threshold value and a second set threshold value according to a judgment result, making judgment on sampled signals and the corresponding threshold values, and transmitting bar code decoded data through Bluetooth or storing the bar code decoded data in a local storage device. Since the two different threshold values are set according to the situations of from the near to the distant and from the distant to the near between the Bluetooth bar code identifying and reading equipment and an upper computer, transmission validity affected by frequent switching near the threshold values can be avoided effectively. When transmission is instable, the bar code decoded data are stored in the local storage device to be protected from loss.

Description

A kind of bluetooth bar code recognizing apparatus data transfer control method and system
Technical field
The present invention relates to a kind of bluetooth equipment data transfer control method and system, relate in particular to a kind of bluetooth bar code recognizing apparatus data transfer control method and system.
Background technology
Bar code (abbreviation bar code) can be divided into bar code and two-dimensional bar code, the mark that bar code is made up of one group of regularly arranged bar, sky and corresponding character, " bar " refers to the part lower to light reflectance, " sky " refers to the part higher to light reflectance, the information that the data representation that these and sky form is certain.Two-dimensional bar code is the barcode technology of a new generation of the chequered with black and white rectangle square formation record data symbol information distributed in plane (on two-dimensional directional) according to certain rules with specific geometric figure; Two-dimensional bar code can be divided into stack two-dimensional bar code and matrix two-dimensional barcode.Stack two-dimensional bar code form is form (as PDF417 bar code) by the bar code of multirow cutting back is stacking; Matrix two-dimensional barcode forms with a matrix type, matrix respective element position represents binary one with " point ", represents binary zero with " sky ", rearranges code (as QR code) by " point " and " sky ".It is large that Quick Response Code has memory capacity, comprises abundant information, and need special analysis mode, have very strong confidentiality.
In daily life and commercial Application, the use of bar code is more and more extensive, such as: the user demand to bar code of retail trade, logistic industry, financial industry is increasing.Contacting maximum in life is in supermarket, and when choosing commodity, the bar code that cashier itself is carried by bar code reader scans commodity, background devices can realize the confirmation of commodity, the calculating of price.Bar code recognizing apparatus is applied in storage center, significantly improves the efficiency that keeper makes an inventory, and keeper only need scan the bar code on kinds of goods surface, and bar code recognizing apparatus decoding bar code, can obtain inventory information, and realize record, replace traditional hand-kept.Hand-kept has the larger bit error rate, and uses bar code, and the bit error rate will be made greatly to reduce.Along with developing rapidly of logistics, the dependence of people to net purchase is more and more stronger, usual people electric business (as store, Jingdone district, Taobao) webpage is chosen and admires article, the Quick Response Code that one comprises sequence information can add on item parcels in businessman, along with in logistics transportation process, every logistics node, staff can carry out scanning recognition decoding with intelligent hand-held terminal (as the New World, Fujian identifies the MT80 portable data collector of company automatically) to bar code, by decoded bar code by Internet Transmission to back-end server, back-end server generates can for the logistics information of customer inquiries.Bluetooth bar code recognizing apparatus, is subject to the favor of user just day by day as the barcode device that a kind of actionradius is larger.Particularly, warehouse stock counting, logistics transportation is just growing to the demand of bluetooth barcode device.Existing wireless bar code equipment, mainly utilizes mobile data network (2G/3G/4G and subsequent network evolution), Wi-Fi, bluetooth and zigbee (purple honeybee) agreement to carry out data transmission.Wireless bar code recognizing apparatus needs to catch the image that at least one frame comprises bar code, then decodes, decoded data are being transferred to host computer.Host computer can be server, smart mobile phone, panel computer etc.In prior art, when two equipment (bluetooth bar code recognizing apparatus and host computer) are connected by bluetooth, bluetooth barcode device constantly can judge the connection status of two equipment rooms, when causing connecting instability due to distance or signal intensity attenuation, bluetooth barcode device can carry out threshold decision to the intensity of signal transmission, when threshold value is lower than setting value, the emissive power of adjustment bluetooth bar code recognizing apparatus, keeps the UNICOM of two equipment by increasing emissive power.And increase emissive power bluetooth bar code recognizing apparatus power consumption must be caused to increase, if increase emissive power, and two equipment still without effectively connecting, in this case, the bit error rate increase of data transmission, easily causes corrupt data or loss.Simple add verification to data sequence numbering, can exist and frequently carry out invalid repeating transmission behavior, repeatedly retransmit the integrality all may cannot guaranteeing data, the reliability of Bluetooth transmission can not get ensureing, the Signal transmissions bit error rate is high.If increase emissive power to bluetooth barcode device certainly will shorten equipment task time, usually carry out extensive kinds of goods when making an inventory, need the working time that barcode device keeps longer.
Summary of the invention
For this reason, technical matters to be solved by this invention is that in prior art, bluetooth bar code recognizing apparatus connects to keep when signal transmission weakens, increase emissive power, but still Transmission may be there is cause loss of data, situation that transmission error rates is high, Bluetooth transmission reliability can not get ensureing.
For solving the problems of the technologies described above, of the present invention adopted technical scheme:
A kind of bluetooth bar code recognizing apparatus data transfer control method, comprises the following steps:
S1: attempt setting up bluetooth and connect, judges whether that setting up effective bluetooth connects; That the intensity level of bluetooth connection signal of then sampling, is designated as RSSI (n);
S2: the intensity level of bluetooth connection signal of sampling again after the two field picture that decoding comprises bar code obtains bar code decoding data, is designated as RSSI (n+1);
S3: the intensity level comparing the bluetooth connection signal of double sampling, judge bluetooth bar code recognizing apparatus and host computer whether close to each other, namely judge whether the value of RSSI (n+1) is greater than RSSI (n) value;
S4: if RSSI (n+1) >RSSI (n), then described bluetooth bar code recognizing apparatus is in the first state, whether the intensity level of the bluetooth connection signal of sampling again described in then judging is greater than the first setting threshold value;
S41: if so, then by described bar code decoding data by Bluetooth transmission to host computer;
S42: if not, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus;
S5: if RSSI (n+1)≤RSSI (n), then described bluetooth bar code recognizing apparatus is in the second state, whether the intensity level of the bluetooth connection signal of sampling again described in then judging is less than the second setting threshold value;
S51: if so, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus;
S52: if not, then by described bar code decoding data by Bluetooth transmission to host computer.
In described step S1, if connect without setting up effective bluetooth, then direct by the local storage of bar code decoding data stored in described bluetooth bar code recognizing apparatus.
In described step S41, first the bar code decoding data stored in described local storage being transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmitting described bar code decoding data.
In described step S52, first the bar code decoding data stored in described local storage being transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmitting described bar code decoding data.
Described first setting threshold value is larger than described second setting threshold value.
A kind of bluetooth bar code recognizing apparatus data transfer control system, comprises with lower module:
First sampling module: attempt setting up bluetooth and connect, judges whether that setting up effective bluetooth connects; That the intensity level of bluetooth connection signal of then sampling, is designated as RSSI (n);
Second sampling module: the intensity level of bluetooth connection signal of sampling again after the two field picture that decoding comprises bar code obtains bar code decoding data, is designated as RSSI (n+1);
Multilevel iudge module: the intensity level comparing the bluetooth connection signal of double sampling, judge bluetooth bar code recognizing apparatus and host computer whether close to each other, namely judge whether the value of RSSI (n+1) is greater than RSSI (n) value;
First processing module: if RSSI (n+1) >RSSI (n), then described bluetooth bar code recognizing apparatus is in the first state, and whether the intensity level of the bluetooth connection signal of sampling again described in then judging is greater than the first setting threshold value;
First transport module: if so, then by described bar code decoding data by Bluetooth transmission to host computer;
First memory module: if not, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus;
Second processing module: if RSSI (n+1)≤RSSI (n), then described bluetooth bar code recognizing apparatus is in the second state, whether the intensity level of the bluetooth connection signal of sampling again described in then judging is less than the second setting threshold value;
Second memory module: if so, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus;
Second transport module: if not, then by described bar code decoding data by Bluetooth transmission to host computer.
In described first sampling module, if connect without setting up effective bluetooth, then direct by the local storage of bar code decoding data stored in described bluetooth bar code recognizing apparatus.
In described first transport module, first the bar code decoding data stored in described local storage are transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmit described bar code decoding data.
In described second transport module, first the bar code decoding data stored in described local storage are transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmit described bar code decoding data.
Described first setting threshold value is larger than described second setting threshold value.
Technique scheme of the present invention has the following advantages compared to existing technology.
1. first a kind of bluetooth bar code recognizing apparatus data transfer control method of the present invention judges whether that setting up bluetooth connects, and connects if set up bluetooth, the intensity level of sampling bluetooth connection signal.The intensity level of bluetooth connection signal of sampling again after the success of decoding bar code, judge the state of bluetooth bar code recognizing apparatus, and set first, second setting threshold value according to judged result, the signal of sampling and corresponding threshold value are judged, selects to store bar code decoded data by Bluetooth transmission bar code decoding data or at local storage.By described bluetooth bar code recognizing apparatus and described host computer from the close-by examples to those far off, the situation that draws near, two different threshold values are set, effectively can avoid so frequently switching at Near Threshold, affect transmission availability.When transmitting unstable by bar code decoding data stored in local storage, prevent loss of data.
2. a kind of bluetooth bar code recognizing apparatus data transfer control method of the present invention, without when setting up the connection of effective bluetooth, during the bar code decoding data of decoding are directly stored stored in this locality, thus ensure the moment to keep duty, and adopt conventional memory device, convenient adaptive.
3. the bar code decoding data stored in local storage, when setting up effective bluetooth and connecting, are uploaded, are guaranteed the ageing of data by a kind of bluetooth bar code recognizing apparatus data transfer control method of the present invention successively successively.
4. a kind of bluetooth bar code recognizing apparatus data transfer control method of the present invention for described bluetooth bar code recognizing apparatus and described host computer from the close-by examples to those far off, the situation that draws near, when drawing near, relative motion trend due to described invalid bar code recognizing apparatus and host computer can strengthen the intensity level of described bluetooth connection signal to a certain extent, owing to may be the information obtained after first time Propagation solution code-bar code, for ensureing transmission stability and reliability, the ratio second of the first setting threshold value setting need be set threshold value larger.Time from the close-by examples to those far off, relative motion trend due to described invalid bar code recognizing apparatus and host computer can weaken the intensity level of described bluetooth connection signal to a certain extent, due to bluetooth bar code recognizing apparatus and host computer effective to be invalidly connected may be there is, in order to the information obtained after Propagation solution code-bar code as much as possible, therefore it is smaller the ratio first of the second setting threshold value setting need to be set threshold value.
5. first a kind of bluetooth bar code recognizing apparatus data transfer control system of the present invention judges whether that setting up bluetooth connects, and connects if set up bluetooth, the intensity level of sampling bluetooth connection signal.The intensity level of bluetooth connection signal of sampling again after the success of decoding bar code, judge bluetooth bar code recognizing apparatus and host computer whether close to each other, and set first, second setting threshold value according to judged result, the signal of sampling and corresponding threshold value are judged, selects to store bar code decoded data by Bluetooth transmission bar code decoding data or at local storage.By described bluetooth bar code recognizing apparatus and described host computer from the close-by examples to those far off, the situation that draws near, two different threshold values are set, effectively can avoid so frequently switching at Near Threshold, affect transmission availability.When transmitting unstable by bar code decoding data stored in local storage, prevent loss of data.
6. a kind of bluetooth bar code recognizing apparatus data transfer control system of the present invention, without when setting up the connection of effective bluetooth, during the bar code decoding data of decoding are directly stored stored in this locality, thus ensure the moment to keep duty, and adopt conventional memory device, convenient adaptive.
7. the bar code decoding data stored in local storage, when setting up effective bluetooth and connecting, are uploaded, are guaranteed the ageing of data by a kind of bluetooth bar code recognizing apparatus data transfer control system of the present invention successively successively.
8. a kind of bluetooth bar code recognizing apparatus data transfer control system of the present invention for described bluetooth bar code recognizing apparatus and described host computer from the close-by examples to those far off, the situation that draws near, when drawing near, relative motion trend due to described invalid bar code recognizing apparatus and host computer can strengthen the intensity level of described bluetooth connection signal to a certain extent, owing to may be the information obtained after first time Propagation solution code-bar code, for ensureing transmission stability and reliability, the ratio second of the first setting threshold value setting need be set threshold value larger.Time from the close-by examples to those far off, relative motion trend due to described invalid bar code recognizing apparatus and host computer can weaken the intensity level of described bluetooth connection signal to a certain extent, due to bluetooth bar code recognizing apparatus and host computer effective to be invalidly connected may be there is, in order to the information obtained after Propagation solution code-bar code as much as possible, therefore it is smaller the ratio first of the second setting threshold value setting need to be set threshold value.
Accompanying drawing explanation
In order to make content of the present invention be more likely to be clearly understood, below according to a particular embodiment of the invention and by reference to the accompanying drawings, the present invention is further detailed explanation, wherein,
Fig. 1 is the process flow diagram of an embodiment of a kind of bluetooth bar code recognizing apparatus of the present invention data transfer control method;
Fig. 2 is the structured flowchart of an embodiment of a kind of bluetooth bar code recognizing apparatus of the present invention data transfer control system.
In figure, Reference numeral is expressed as: 1-first sampling module; 2-second sampling module; 3-multilevel iudge module; 4-first processing module; 41-first transport module; 42-first memory module; 5-second processing module; 51-second memory module; 52-second transport module.
Embodiment
Embodiment 1
As shown in Figure 1, be a preferred embodiment of the invention.A kind of bluetooth bar code recognizing apparatus data transfer control method, comprises the following steps:
S1: attempt setting up bluetooth and connect, judges whether that setting up effective bluetooth connects; That the intensity level of bluetooth connection signal of then sampling, is designated as RSSI (n); Such as first time collects intensity level RSSI (1)=-70dbm of bluetooth connection signal.When successfully setting up bluetooth connection, pointed out by the slow flicker of the first attention gatter and set up bluetooth connection.Can be such as that the slow flicker of blue led (light emitting diode) carrys out reminding user.The frequency of slow flicker can be that 1s (second) glimmers 0.5 time, and namely 2s glimmers 1 time, also can arrange other frequencies.If connect without setting up effective bluetooth, bluetooth connection is pointed out not set up by the often bright of the first attention gatter.
S2: the intensity level of bluetooth connection signal of sampling again after the two field picture that decoding comprises bar code obtains bar code decoding data, be designated as RSSI (n+1), such as described bluetooth bar code reader scans one frame comprises the image of bar code, after successfully decoded, the intensity level of bluetooth connection signal of sampling again, is RSSI (2)=-71dbm.After successfully decoded, pointing out bar code reading successfully decoded by lighting the second attention gatter, such as, can be green LED, shows green spot after successfully decoded in gathered bar code with certain geometric configuration within the time of setting.Or, described bluetooth bar code recognizing apparatus carries out button operation, and this button operation can trigger bluetooth bar code recognizing apparatus as described in host computer (as server, panel computer, mobile phone etc.) execution associative operation, then the intensity level of bluetooth connection signal of also sampling when carrying out button operation.Also can be by setting-up time, gather the intensity level of bluetooth connection signal between described bluetooth bar code recognizing apparatus and host computer at interval of 6s (second).It is RSSI (n) that such as front 6s collects intensity level, and the current intensity level that collects is RSSI (n+1).
S3: the intensity level comparing the bluetooth connection signal of double sampling, judge the state of bluetooth bar code recognizing apparatus namely judge bluetooth bar code recognizing apparatus and host computer whether close to each other, namely judge whether the value of RSSI (n+1) is greater than RSSI (n) value.Owing to controlling the described process of bluetooth bar code recognizing apparatus internal signal, the instruction of transmission be adopt binary program language, conveniently judge bluetooth bar code recognizing apparatus and host computer whether close to each other, take to arrange the way of zone bit mark mobile status.Communication distance between described bluetooth bar code recognizing apparatus and host computer, mobile status from the close-by examples to those far off, signal strength values progressively weakens, and zone bit is set to " 1 " in order to represent the first state; On the contrary, draw near, zone bit is set to " 0 " in order to represent the second state.Through many experiments, when the intensity level of bluetooth connection signal is lower than-90dBm, the connection between described bluetooth bar code recognizing apparatus and host computer is insecure.
S4: if RSSI (n+1) >RSSI (n), then described bluetooth bar code recognizing apparatus is in the first state, namely bluetooth bar code recognizing apparatus and host computer are close to each other, whether the intensity level of bluetooth connection signal of sampling again described in then judging is greater than the first setting threshold value, and first to set threshold might be set be-85dbm.
S41: if so, then by described bar code decoding data by Bluetooth transmission to host computer.Complete this step and then return S1.
S42: if not, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus, stop to transmit with the data of host computer simultaneously.This process is asynchronous transmission process, when triggering this process, is pointed out described bar code decoding data stored in local storage by the fast blink of the first attention gatter.The frequency of fast blink can be 5 flickers in 1s (second) time, or arranges other frequencies and glimmer at a slow speed in order to obviously to distinguish.Complete this step and then return S1.
S5: if RSSI (n+1)≤RSSI (n), then described bluetooth bar code recognizing apparatus is in the second state, namely described bluetooth bar code recognizing apparatus and host computer are not close to each other, whether the intensity level of bluetooth connection signal of sampling again described in then judging is less than the second setting threshold value, and second to set threshold might be set be-90dbm.
S51: if so, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus.This process is asynchronous transmission process, when triggering this process, is pointed out described bar code decoding data stored in local storage by the fast blink of the first attention gatter.The frequency of fast blink can be 5 flickers in 1s (second) time, or arranges other frequencies and glimmer at a slow speed in order to obviously to distinguish.Complete this step and then return S1.
S52: if not, then by described bar code decoding data by Bluetooth transmission to host computer.Complete this step and then return S1.
For described bluetooth bar code recognizing apparatus and described host computer from the close-by examples to those far off, the situation that draws near, two different threshold values are set, effectively can avoid so frequently switching at Near Threshold, affect transmission availability.When drawing near, relative motion trend due to described invalid bar code recognizing apparatus and host computer can strengthen the intensity level of described bluetooth connection signal to a certain extent, owing to may be the information obtained after first time Propagation solution code-bar code, for ensureing transmission stability and reliability, the ratio second of the first setting threshold value setting need be set threshold value larger.Time from the close-by examples to those far off, relative motion trend due to described invalid bar code recognizing apparatus and host computer can weaken the intensity level of described bluetooth connection signal to a certain extent, due to bluetooth bar code recognizing apparatus and host computer effective to be invalidly connected may be there is, in order to the information obtained after Propagation solution code-bar code as much as possible, therefore it is smaller the ratio first of the second setting threshold value setting need to be set threshold value.
First a kind of bluetooth bar code recognizing apparatus data transfer control method described in the present embodiment judges whether that setting up bluetooth connects, and connects if set up bluetooth, the intensity level of sampling bluetooth connection signal.The intensity level of bluetooth connection signal of sampling again after the success of decoding bar code, judge bluetooth bar code recognizing apparatus and host computer whether close to each other, and set first, second setting threshold value according to judged result, the signal of sampling and corresponding threshold value are judged, selects to store bar code decoded data by Bluetooth transmission bar code decoding data or at local storage.By described bluetooth bar code recognizing apparatus and described host computer from the close-by examples to those far off, the situation that draws near, two different threshold values are set, effectively can avoid so frequently switching at Near Threshold, affect transmission availability.When transmitting unstable by bar code decoding data stored in local storage, prevent loss of data.
Embodiment 2
On the basis of above-described embodiment 1, in described step S1, if connect without setting up effective bluetooth, then direct by the local storage of bar code decoding data stored in described bluetooth bar code recognizing apparatus.Local storage can be conventional memory device, as the one in nand flash memory, storage card (SD, TF, CF etc.).
A kind of bluetooth bar code recognizing apparatus data transfer control method described in the present embodiment, without when setting up the connection of effective bluetooth, during the bar code decoding data of decoding are directly stored stored in this locality, thus ensure the moment to keep duty, and adopt conventional memory device, convenient adaptive.
Embodiment 3
On the basis of above-described embodiment 2, in described step S41, first the bar code decoding data stored in described local storage are transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmit described bar code decoding data.Described bar code decoding data are the bar code decoding data of the up-to-date recognition successfully decoded of described bluetooth bar code recognizing apparatus.
The bar code decoding data stored in local storage, when setting up effective bluetooth and connecting, are uploaded, are guaranteed the ageing of data by a kind of bluetooth bar code recognizing apparatus data transfer control method described in the present embodiment successively successively.
Embodiment 4
On the basis of above-described embodiment 3, in described step S52, first the bar code decoding data stored in described local storage are transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmit described bar code decoding data.Described bar code decoding data are the bar code decoding data of the up-to-date recognition successfully decoded of described bluetooth bar code recognizing apparatus.
The bar code decoding data stored in local storage, when setting up effective bluetooth and connecting, are uploaded, are guaranteed the ageing of data by a kind of bluetooth bar code recognizing apparatus data transfer control method described in the present embodiment successively successively.
Embodiment 5
On the basis of above-described embodiment 4, described first setting threshold value is larger than described second setting threshold value.
A kind of bluetooth bar code recognizing apparatus data transfer control method described in the present embodiment for described bluetooth bar code recognizing apparatus and described host computer from the close-by examples to those far off, the situation that draws near, when drawing near, relative motion trend due to described invalid bar code recognizing apparatus and host computer can strengthen the intensity level of described bluetooth connection signal to a certain extent, owing to may be the information obtained after first time Propagation solution code-bar code, for ensureing transmission stability and reliability, the ratio second of the first setting threshold value setting need be set threshold value larger.Time from the close-by examples to those far off, relative motion trend due to described invalid bar code recognizing apparatus and host computer can weaken the intensity level of described bluetooth connection signal to a certain extent, due to bluetooth bar code recognizing apparatus and host computer effective to be invalidly connected may be there is, in order to the information obtained after Propagation solution code-bar code as much as possible, therefore it is smaller the ratio first of the second setting threshold value setting need to be set threshold value.
Embodiment 6
As shown in Figure 2, a kind of bluetooth bar code recognizing apparatus data transfer control system, comprises with lower module:
First sampling module 1: attempt setting up bluetooth and connect, judges whether that setting up effective bluetooth connects; That the intensity level of bluetooth connection signal of then sampling, is designated as RSSI (n).Such as first time collects intensity level RSSI (1)=-70dbm of bluetooth connection signal.It can be bluetooth, zigbee, cellular data (GSM/CDMA/EVDO/WCDMA/TD-SCDMA/TDD-LTE/FDD-LTE, and follow-up evolution etc.), Wi-Fi etc. that bluetooth described in the present embodiment connects.When successfully setting up bluetooth connection, pointed out by the slow flicker of the first attention gatter and set up bluetooth connection.Can be such as that the slow flicker of blue led (light emitting diode) carrys out reminding user.The frequency of slow flicker can be that 1s (second) glimmers 0.5 time, and namely 2s glimmers 1 time, also can arrange other frequencies.If connect without setting up effective bluetooth, bluetooth connection is pointed out not set up by the often bright of the first attention gatter.
Second sampling module 2: the intensity level of bluetooth connection signal of sampling again after the two field picture that decoding comprises bar code obtains bar code decoding data, is designated as RSSI (n+1); Such as described bluetooth bar code reader scans one frame comprises the image of bar code, and after successfully decoded, the intensity level of bluetooth connection signal of sampling again, is RSSI (2)=-71dbm.After successfully decoded, pointing out bar code reading successfully decoded by lighting the second attention gatter, such as, can be green LED, shows green spot after successfully decoded in gathered bar code with certain geometric configuration within the time of setting.Or, described bluetooth bar code recognizing apparatus carries out button operation, and this button operation can trigger bluetooth bar code recognizing apparatus as described in host computer (as server, panel computer, mobile phone etc.) execution associative operation, then the intensity level of bluetooth connection signal of also sampling when carrying out button operation.Also can be by setting-up time, gather the intensity level of bluetooth connection signal between described bluetooth bar code recognizing apparatus and host computer at interval of 6s (second).It is RSSI (n) that such as front 6s collects intensity level, and the current intensity level that collects is RSSI (n+1).
Multilevel iudge module 3: the intensity level comparing the bluetooth connection signal of double sampling, judge bluetooth bar code recognizing apparatus and host computer whether close to each other, namely judge whether the value of RSSI (n+1) is greater than RSSI (n) value.Owing to controlling the described process of bluetooth bar code recognizing apparatus internal signal, the instruction of transmission be adopt binary program language, conveniently judge bluetooth bar code recognizing apparatus and host computer whether close to each other, take to arrange the way of zone bit mark mobile status.Communication distance between described bluetooth bar code recognizing apparatus and host computer, mobile status from the close-by examples to those far off, signal strength values progressively weakens, and zone bit is set to " 1 " in order to represent the first state; On the contrary, draw near, zone bit is set to " 0 " in order to represent the second state.Through many experiments, when the intensity level of bluetooth connection signal is lower than-90dBm, the connection between described bluetooth bar code recognizing apparatus and host computer is insecure.
First processing module 4: if RSSI (n+1) >RSSI (n), then described bluetooth bar code recognizing apparatus is in the first state, namely described bluetooth bar code recognizing apparatus and host computer close to each other, whether the intensity level of bluetooth connection signal of sampling again described in then judging is greater than the first setting threshold value, and first to set threshold might be set be-85dbm.
First transport module 41: if so, then by described bar code decoding data by Bluetooth transmission to host computer.
First memory module 42: if not, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus, stop to transmit with the data of host computer simultaneously.This process is asynchronous transmission process, when triggering this process, is pointed out described bar code decoding data stored in local storage by the fast blink of the first attention gatter.The frequency of fast blink can be 5 flickers in 1s (second) time, or arranges other frequencies and glimmer at a slow speed in order to obviously to distinguish.
Second processing module 5: if RSSI (n+1)≤RSSI (n), then described bluetooth bar code recognizing apparatus is in the second state, namely described bluetooth bar code recognizing apparatus and host computer are not close to each other, whether the intensity level of the bluetooth connection signal of sampling again described in then judging is less than the second setting threshold value,, second to set threshold might be set be-90dbm.
Second memory module 51: if so, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus.This process is asynchronous transmission process, when triggering this process, is pointed out described bar code decoding data stored in local storage by the fast blink of the first attention gatter.The frequency of fast blink can be 5 flickers in 1s (second) time, or arranges other frequencies and glimmer at a slow speed in order to obviously to distinguish.
Second transport module 52: if not, then by described bar code decoding data by Bluetooth transmission to host computer.
First a kind of bluetooth bar code recognizing apparatus data transfer control system described in the present embodiment judges whether that setting up bluetooth connects, and connects if set up bluetooth, the intensity level of sampling bluetooth connection signal.The intensity level of bluetooth connection signal of sampling again after the success of decoding bar code, judge bluetooth bar code recognizing apparatus and host computer whether close to each other, and set first, second setting threshold value according to judged result, the signal of sampling and corresponding threshold value are judged, selects to store bar code decoded data by Bluetooth transmission bar code decoding data or at local storage.By described bluetooth bar code recognizing apparatus and described host computer from the close-by examples to those far off, the situation that draws near, two different threshold values are set, effectively can avoid so frequently switching at Near Threshold, affect transmission availability.When transmitting unstable by bar code decoding data stored in local storage, prevent loss of data.
Embodiment 7
On the basis of above-described embodiment 6, in described first sampling module, if connect without setting up effective bluetooth, then direct by the local storage of bar code decoding data stored in described bluetooth bar code recognizing apparatus.Local storage can be conventional memory device, as the one in nand flash memory, storage card (SD, TF, CF etc.).
A kind of bluetooth bar code recognizing apparatus data transfer control system described in the present embodiment, without when setting up the connection of effective bluetooth, during the bar code decoding data of decoding are directly stored stored in this locality, thus ensure the moment to keep duty, and adopt conventional memory device, convenient adaptive.
Embodiment 8
On the basis of above-described embodiment 7, in described first transport module, first the bar code decoding data stored in described local storage are transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmit described bar code decoding data.Described bar code decoding data are the bar code decoding data of the up-to-date recognition successfully decoded of described bluetooth bar code recognizing apparatus.
The bar code decoding data stored in local storage, when setting up effective bluetooth and connecting, are uploaded, are guaranteed the ageing of data by a kind of bluetooth bar code recognizing apparatus data transfer control system described in the present embodiment successively successively.
Embodiment 9
On the basis of above-described embodiment 8, in described second transport module, first the bar code decoding data stored in described local storage are transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmit described bar code decoding data.Described bar code decoding data are the bar code decoding data of the up-to-date recognition successfully decoded of described bluetooth bar code recognizing apparatus.
The bar code decoding data stored in local storage, when setting up effective bluetooth and connecting, are uploaded, are guaranteed the ageing of data by a kind of bluetooth bar code recognizing apparatus data transfer control system described in the present embodiment successively successively.
Embodiment 10
On the basis of above-described embodiment 9, described first setting threshold value is larger than described second setting threshold value.
A kind of bluetooth bar code recognizing apparatus data transfer control system described in the present embodiment, for described bluetooth bar code recognizing apparatus and described host computer from the close-by examples to those far off, the situation that draws near, two different threshold values are set, effectively can avoid so frequently switching at Near Threshold, affect transmission availability.When drawing near, relative motion trend due to described invalid bar code recognizing apparatus and host computer can strengthen the intensity level of described bluetooth connection signal to a certain extent, owing to may be the information obtained after first time Propagation solution code-bar code, for ensureing transmission stability and reliability, the ratio second of the first setting threshold value setting need be set threshold value larger.Time from the close-by examples to those far off, relative motion trend due to described invalid bar code recognizing apparatus and host computer can weaken the intensity level of described bluetooth connection signal to a certain extent, due to bluetooth bar code recognizing apparatus and host computer effective to be invalidly connected may be there is, in order to the information obtained after Propagation solution code-bar code as much as possible, therefore it is smaller the ratio first of the second setting threshold value setting need to be set threshold value.
Obviously, above-described embodiment is only for clearly example being described, and the restriction not to embodiment.For those of ordinary skill in the field, can also make other changes in different forms on the basis of the above description.Here exhaustive without the need to also giving all embodiments.And thus the apparent change of extending out or variation be still among the protection domain of the invention.

Claims (10)

1. a bluetooth bar code recognizing apparatus data transfer control method, is characterized in that, comprises the following steps:
S1: attempt setting up bluetooth and connect, judges whether that setting up effective bluetooth connects; That the intensity level of bluetooth connection signal of then sampling, is designated as RSSI (n);
S2: the intensity level of bluetooth connection signal of sampling again after the two field picture that decoding comprises bar code obtains bar code decoding data, is designated as RSSI (n+1);
S3: the intensity level comparing the bluetooth connection signal of double sampling, judges the state of bluetooth bar code recognizing apparatus, namely judges whether the value of RSSI (n+1) is greater than RSSI (n) value;
S4: if RSSI (n+1) >RSSI (n), then described bluetooth bar code recognizing apparatus is in the first state, whether the intensity level of the bluetooth connection signal of sampling again described in then judging is greater than the first setting threshold value;
S41: if so, then by described bar code decoding data by Bluetooth transmission to host computer;
S42: if not, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus;
S5: if RSSI (n+1)≤RSSI (n), then described bluetooth bar code recognizing apparatus is in the second state, whether the intensity level of the bluetooth connection signal of sampling again described in then judging is less than the second setting threshold value;
S51: if so, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus;
S52: if not, then by described bar code decoding data by Bluetooth transmission to host computer.
2. a kind of bluetooth bar code recognizing apparatus data transfer control method according to claim 1, it is characterized in that, in described step S1, if connect without setting up effective bluetooth, then direct by the local storage of bar code decoding data stored in described bluetooth bar code recognizing apparatus.
3. a kind of bluetooth bar code recognizing apparatus data transfer control method according to claim 2, it is characterized in that, in described step S41, first the bar code decoding data stored in described local storage are transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmit described bar code decoding data.
4. a kind of bluetooth bar code recognizing apparatus data transfer control method according to claim 3, it is characterized in that, in described step S52, first the bar code decoding data stored in described local storage are transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmit described bar code decoding data.
5. a kind of bluetooth bar code recognizing apparatus data transfer control method according to claim 4, is characterized in that, described first setting threshold value is larger than described second setting threshold value.
6. a bluetooth bar code recognizing apparatus data transfer control system, is characterized in that, comprises with lower module:
First sampling module: attempt setting up bluetooth and connect, judges whether that setting up effective bluetooth connects; That the intensity level of bluetooth connection signal of then sampling, is designated as RSSI (n);
Second sampling module: the intensity level of bluetooth connection signal of sampling again after the two field picture that decoding comprises bar code obtains bar code decoding data, is designated as RSSI (n+1);
Multilevel iudge module: the intensity level comparing the bluetooth connection signal of double sampling, judges the state of bluetooth bar code recognizing apparatus, namely judges whether the value of RSSI (n+1) is greater than RSSI (n) value;
First processing module: if RSSI (n+1) >RSSI (n), then described bluetooth bar code recognizing apparatus is in the first state, and whether the intensity level of the bluetooth connection signal of sampling again described in then judging is greater than the first setting threshold value;
First transport module: if so, then by described bar code decoding data by Bluetooth transmission to host computer;
First memory module: if not, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus;
Second processing module: if RSSI (n+1)≤RSSI (n), then described bluetooth bar code recognizing apparatus is in the second state, whether the intensity level of the bluetooth connection signal of sampling again described in then judging is less than the second setting threshold value;
Second memory module: if so, then by the local storage of described bar code decoding data stored in described bluetooth bar code recognizing apparatus;
Second transport module: if not, then by described bar code decoding data by Bluetooth transmission to host computer.
7. a kind of bluetooth bar code recognizing apparatus data transfer control system according to claim 6, it is characterized in that, in described first sampling module, if connect without setting up effective bluetooth, then direct by the local storage of bar code decoding data stored in described bluetooth bar code recognizing apparatus.
8. a kind of bluetooth bar code recognizing apparatus data transfer control system according to claim 7, it is characterized in that, in described first transport module, first the bar code decoding data stored in described local storage are transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmit described bar code decoding data.
9. a kind of bluetooth bar code recognizing apparatus data transfer control system according to claim 8, it is characterized in that, in described second transport module, first the bar code decoding data stored in described local storage are transferred to host computer successively by sequentially passing through bluetooth stored in the time order and function in described local storage, after being transmitted, then transmit described bar code decoding data.
10. a kind of bluetooth bar code recognizing apparatus data transfer control system according to claim 9, is characterized in that, described first setting threshold value is larger than described second setting threshold value.
CN201510275894.XA 2015-05-27 2015-05-27 Data transmission control method and data transmission control system for Bluetooth bar code identifying and reading equipment Pending CN104951822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510275894.XA CN104951822A (en) 2015-05-27 2015-05-27 Data transmission control method and data transmission control system for Bluetooth bar code identifying and reading equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510275894.XA CN104951822A (en) 2015-05-27 2015-05-27 Data transmission control method and data transmission control system for Bluetooth bar code identifying and reading equipment

Publications (1)

Publication Number Publication Date
CN104951822A true CN104951822A (en) 2015-09-30

Family

ID=54166461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510275894.XA Pending CN104951822A (en) 2015-05-27 2015-05-27 Data transmission control method and data transmission control system for Bluetooth bar code identifying and reading equipment

Country Status (1)

Country Link
CN (1) CN104951822A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101109811A (en) * 2006-07-20 2008-01-23 株式会社半导体能源研究所 Position information detection system and position information detection method
KR100936004B1 (en) * 2008-09-22 2010-01-08 에스티엑스조선해양 주식회사 Steel plate barcode detecting system using pattern matching
CN101891052A (en) * 2010-03-30 2010-11-24 江苏六维物流设备实业有限公司 New piler cargo quick stock-taking technique based on RFID
US20120091202A1 (en) * 2000-06-09 2012-04-19 Flash Seats, Llc Mobile application bar code identification method and system
CN104504357A (en) * 2014-12-23 2015-04-08 福建新大陆自动识别技术有限公司 Automatic barcode scanner and scanning method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120091202A1 (en) * 2000-06-09 2012-04-19 Flash Seats, Llc Mobile application bar code identification method and system
CN101109811A (en) * 2006-07-20 2008-01-23 株式会社半导体能源研究所 Position information detection system and position information detection method
KR100936004B1 (en) * 2008-09-22 2010-01-08 에스티엑스조선해양 주식회사 Steel plate barcode detecting system using pattern matching
CN101891052A (en) * 2010-03-30 2010-11-24 江苏六维物流设备实业有限公司 New piler cargo quick stock-taking technique based on RFID
CN104504357A (en) * 2014-12-23 2015-04-08 福建新大陆自动识别技术有限公司 Automatic barcode scanner and scanning method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁茂峰: "条形码数据用蓝牙采集", 《金卡工程》 *

Similar Documents

Publication Publication Date Title
KR101597199B1 (en) Rfid portal system with rfid tags having various read ranges
JP4691987B2 (en) Wireless tag and portable terminal
US20080191845A1 (en) Location-Based Power Management in RFID Applications
US7825806B2 (en) Optimizing RFID reader duty cycle or power to preserve battery life
US20100019907A1 (en) Self Tuning RFID
US7663486B2 (en) RFID tag user memory indication
CN106650530B (en) Enhanced quaternary tree anti-collision algorithm suitable for RFID system
CN102708341A (en) Label anti-collision method for radio frequency identification (RFID) system
CN103761500A (en) Intelligent book locating device based on two-dimension code technology
US9858454B2 (en) Method and a radio tag communication apparatus
Hessar et al. Energy based performance evaluation of passive EPC Gen 2 class 1 RFID systems
CN102663458A (en) Multi-core UHF RFID reader-writer realized by application software
KR20100015224A (en) Method of recogniging rfid tag for the purpose of preventing throughput inversion and rfid reader performing the same
US20080191843A1 (en) Scanning Settings Inferred From Prior Scan Data
CN105654010B (en) A kind of RFID tag collision-proof method based on adaptive search strategies
CN104933384A (en) Wireless bar code recognition and reading equipment
CN104951822A (en) Data transmission control method and data transmission control system for Bluetooth bar code identifying and reading equipment
CN104951821A (en) Data transmission control method and system of wireless barcode recognizing and reading equipment
CN202838372U (en) Storage detection device
CN104951820A (en) Bluetooth mark identifying and reading equipment
CN103049719B (en) The system and method for extensive label is read in radio-frequency recognition system
Cui et al. A modified Q-parameter anti-collision scheme for RFID systems
Tsao et al. Runtime optimization of framed slotted ALOHA based RFID Systems
US20090160611A1 (en) Enhanced Communication Via RFID Interrogator
CN105718834B (en) A kind of method for eliminating identification blind area

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20180601