CN105991355A - Method and device for configuring equipment information - Google Patents
Method and device for configuring equipment information Download PDFInfo
- Publication number
- CN105991355A CN105991355A CN201610575522.3A CN201610575522A CN105991355A CN 105991355 A CN105991355 A CN 105991355A CN 201610575522 A CN201610575522 A CN 201610575522A CN 105991355 A CN105991355 A CN 105991355A
- Authority
- CN
- China
- Prior art keywords
- equipment
- configuration
- information
- bluetooth
- described equipment
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Mobile Radio Communication Systems (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention discloses a method of configuring equipment information. The method comprises steps: Bluetooth address information for to-be-configured equipment is acquired in Bluetooth broadcasting data in any piece of to-be-configured equipment; S2, in a condition in which the Bluetooth address information for the to-be-configured equipment is not stored locally, Bluetooth connection with the to-be-configured equipment is realized based on the Bluetooth address information, and the address information for the to-be-configured equipment is saved; S3, through a Bluetooth connection communication mode, the acquired any piece of configuration information without a mark is sent to the to-be-configured equipment to enable the to-be-configured equipment to be configured according to the configuration information, wherein each piece of configuration information comprises a unique equipment identification number; and S4, the already-sent configuration information is marked. The invention also discloses an equipment information configuring device. By adopting the embodiment of the invention, the to-be-configured equipment can be effectively prevented from being repeatedly configured, and repeated use of the already-used configuration information is prevented.
Description
Technical field
The present invention relates to the communications field, particularly relate to a kind of facility information collocation method and device.
Background technology
Bluetooth equipment needs to seek configuration facility information before dispatching from the factory, and this facility information is normally used for distinguishing difference
Bluetooth equipment, screening after set up bluetooth connect or carry out blue-teeth equipment management etc..Existing bluetooth equipment
Facility information configuration process is generally: bluetooth equipment to be configured is first joined with facility information by workman by connecting line
Put device to be attached;The facility information write bluetooth equipment to be configured that will prestore again;Then the next one is changed
Bluetooth equipment to be configured is to carry out the write of facility information.
The present inventor finds in the practice of the invention: this traditional facility information collocation method for
Each bluetooth equipment to be configured is required for workman to carry out to it inserting connecting line, write device information and pulls out connecting line
Just can complete the configuration operation of facility information, it is right that the mode of this employing human configuration facility information easily produces
Equipment to be configured carries out repeating configuration, and the configuration information having used is carried out reusable problem.
Content of the invention
For the problems referred to above, the present invention provides a kind of facility information collocation method and device, and it is right to be prevented effectively from
Equipment to be configured carries out repeating configuration, moreover it is possible to prevent the configuration information having used to be reused.
For solving above-mentioned technical problem, a kind of facility information collocation method of the present invention, comprise the steps:
S1, the Bluetooth address obtaining described equipment to be configured in the Bluetooth broadcast data of arbitrary equipment to be configured
Information;
S2, in the case of judging that this locality does not stores the Bluetooth address information of described equipment to be configured, based on institute
State Bluetooth address information and realize that bluetooth is connected with described equipment to be configured, and preserve the ground of described equipment to be configured
Location information;
S3, connected communication mode by bluetooth and the configuration information of arbitrary not tape label obtaining is sent to described
Equipment to be configured, makes described equipment to be configured configure according to described configuration information;Wherein, each described
Configuration information includes unique device identification number;
S4, the described configuration information having sent is marked.
In this programme, automatically set up with equipment to be configured by way of bluetooth connects and be connected, it is not necessary to workman
Carrying out plug operation to equipment to be configured, thus effectively improving allocative efficiency, minimizing brings because of operative
Problem.Further, owing to each equipment to be configured has unique Bluetooth address information, this programme only has
When judging that this locality does not stores Bluetooth address information (i.e. equipment is not configured) of equipment to be configured, just and its
Carry out bluetooth connection and the arbitrary unlabelled configuration information preset obtaining is sent to this equipment to be configured and enters
Row configuration, and the address information of this equipment to be configured is preserved in this locality, thus can filter out this locality
The address information (i.e. equipment was configured) of storage, can be prevented effectively from and carry out to equipment to be configured repeating configuration.
Additionally, utilizing bluetooth connection communication mode after equipment to be configured sends configuration information, by sent
Configuration information is marked, and the configuration information being prevented from having used is repeatedly transmitted, and can be prevented effectively from same
Configuration information is by multiple equipment administration to be configured so that a configuration information and an equipment to be configured
Correspondence, improves the accuracy of configuration process.
As the improvement of such scheme, after described step S1, further comprise the steps of:
S2 ', in the case of judging the Bluetooth address information of locally stored described equipment to be configured, then not with
Described equipment to be configured is set up bluetooth and is connected;Or, realize that bluetooth sends after being connected with described equipment to be configured and refer to
Order makes it stop sending Bluetooth broadcast data, and closedown is connected with the bluetooth of described equipment to be configured.
In improvement project, after described step S4, further comprise the steps of:
S5, in the case of receiving the configuration failure information that described equipment to be configured returns, cancel to described
The mark of configuration information.
In improvement project, if receiving the configuration failure information that equipment to be configured returns, then it represents that to be configured
Equipment completes configuration not according to configuration information, i.e. this configuration information is not used by.Therefore wait to join receiving
In the case of installing the configuration failure information of standby return, cancel the mark to this configuration information, this can be joined
Confidence breath reclaims so that this configuration information can be used for the configuration process of another equipment to be configured, it is achieved joins
Effective utilization of confidence breath, it is to avoid the waste of configuration information resource.
As the improvement of such scheme, in described step S5,
In the case of receiving the configuration failure information that described equipment to be configured returns, further comprise the steps of:
By mark failed for the Bluetooth address information recording configuration of described equipment to be configured.
In improvement project, if receiving the configuration failure information that equipment to be configured returns, then it represents that to be configured
Equipment belongs to defective products and causes cannot be carried out information configuration, it is therefore necessary to record the bluetooth of this bad equipment
Address information, is beneficial to follow the trail of bad equipment.
As the improvement of such scheme, after described step S4, further comprise the steps of:
S6, receiving the configuration successful that described equipment to be configured returns or in the case of failure information, closing
It is connected with the bluetooth of described equipment to be configured, and configured number of devices is added up;
In the case that described configured number of devices not up to presets number of devices, return step S1;No
Then terminate to be currently configured flow process, and calculate and show that being currently configured flow process successfully configures the equipment with failed configuration
Number;Wherein, the number of devices of failed configuration is equal to the failed reference numerals of described recording configuration, and what success configured sets
Standby number is equal to the difference of described configured number of devices and the number of devices of failed configuration.
It in above-mentioned improvement project, is currently configured the configured number of devices of flow process configuration and not up to presets number of devices
In the case of, then close after being connected with the bluetooth that current equipment to be configured is set up, return step S1 with
The mode continuing through Bluetooth broadcast finds next equipment to be configured.
It in above-mentioned improvement project, is currently configured the configured number of devices of flow process (include successfully and failure)
When reaching to preset number of devices, then it represents that the number of devices to be configured being currently configured requirements of process configuration has completed,
Therefore can terminate to be currently configured flow process, and calculating and display are currently configured flow process and successfully configure and failed configuration
Number of devices.
In addition, in the case of receiving configuration successful or the failure information that described equipment to be configured returns, can
First send, to described equipment to be configured, the instruction that configuration terminates, make described equipment to be configured not retransmit bluetooth wide
Multicast data, is then shut off being connected with the bluetooth of described equipment to be configured, and then master control no longer finds that this is to be configured
Equipment, so can improve the efficiency of facility information configuration.
As the improvement of such scheme, further comprise the steps of:
S7, in the case of cannot realize that bluetooth is connected with arbitrary equipment to be configured in Preset Time, terminate to work as
Front configuration flow, and calculate and display be currently configured flow process successfully configure, failed configuration and setting of not configuring
Standby number, wherein, the number of devices not configured is the difference of described default number of devices and configured number of devices.
In the present invention, during facility information configuration, there is likely to be part equipment to be configured because of bluetooth
Problems such as fault or Bluetooth signal are too weak and causing cannot obtain this part device address to be configured information or
Set up bluetooth to connect, thus information configuration cannot be completed, therefore, cannot join with arbitrary waiting in Preset Time
Install in the case of realizing that bluetooth connects, it should terminate to be currently configured flow process, and calculating and display are currently joined
Put flow process successfully configure, failed configuration and the number of devices not configured.
It should be understood that in the present invention, with each equipment to be configured set up bluetooth be connected when, be all provided with
A fixed Connection Time, cannot connect if exceeding this Connection Time, then can abandon connecting this equipment and leading to
The mode crossing Bluetooth broadcast finds the Bluetooth address information of next equipment to be configured.In this programme, above-mentioned
Preset Time is more than this Connection Time.
As the improvement of such scheme, in described step S6, closing the bluetooth with described equipment to be configured
Before connection, further comprise the steps of: and make it stop sending Bluetooth broadcast number to the transmission instruction of described equipment to be configured
According to.
As the improvement of such scheme, before described step S1, further comprise the steps of: and described for execution equipment is believed
The main control device of breath collocation method and the equipment to be configured of default number of devices are placed in same radome;
Described mark includes: the described unique device identification number in described configuration information is to be configured with described
The address information of equipment is mated one by one.
The present invention also provides a kind of facility information configuration device, comprising:
Address information acquisition module, treats described in obtaining in the Bluetooth broadcast data of arbitrary equipment to be configured
The Bluetooth address information of configuration equipment;
Set up bluetooth link block, for judging that this locality does not stores the Bluetooth address letter of described equipment to be configured
In the case of breath, realize that bluetooth is connected based on described Bluetooth address information with described equipment to be configured, and preserve
The address information of described equipment to be configured;
Configuration information sending module, for connecting communication mode by arbitrary not tape label of acquisition by bluetooth
Configuration information is sent to described equipment to be configured, makes described equipment to be configured join according to described configuration information
Put;Wherein, each described configuration information includes unique device identification number;
Configuration information mark module, for being marked the described configuration information having sent.
In this programme, by address information acquisition module from the Bluetooth broadcast data of arbitrary equipment to be configured
Obtain the Bluetooth address information of described equipment to be configured, and to be configured with arbitrary by setting up bluetooth link block
Equipment is automatically set up bluetooth and is connected, it is not necessary to workman carries out plug operation to equipment to be configured, thus effectively improves
Allocative efficiency, reduces the problem brought because of operative.Further, owing to each equipment to be configured has
Unique address information, the bluetooth link block of setting up of this programme is only judging that this locality does not stores to be configured setting
During standby address information (i.e. equipment is not configured), just sets up bluetooth with equipment to be configured and be connected, and pass through
The arbitrary unlabelled configuration information preset obtaining is sent to this equipment to be configured by configuration information sending module
Configure, and preserve the address information of this equipment to be configured in this locality, so may filter that locally stored
Address information (i.e. equipment was configured), can be prevented effectively from and carry out repeating configuration to equipment to be configured.This
Outward, when configuration information sending module by configuration information to equipment to be configured transmission after, configuration information mark mould
The configuration information having sent is marked by block, moreover it is possible to prevent the configuration information having used to be repeatedly transmitted, can
It is prevented effectively from same configuration information by multiple equipment administration to be configured so that a configuration information is only with one
Individual equipment to be configured is corresponding, improves the accuracy of configuration process.
As the improvement of such scheme, also include:
Configuration information mark cancels module, for receiving the configuration failure letter that described equipment to be configured returns
In the case of breath, cancel the mark to described configuration information.
As the improvement of such scheme, described mark includes: uniquely set described in described configuration information
Standby identifier mates one by one with the address information of described equipment to be configured.
As the improvement of such scheme, described facility information configuration device is placed in same with described equipment to be configured
In radome.
Brief description
In order to be illustrated more clearly that technical scheme, below by use required in embodiment
Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is only some enforcements of the present invention
Mode, for those of ordinary skill in the art, on the premise of not paying creative work, all right
Obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 1.
Fig. 2 is the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 2.
Fig. 3 is the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 3.
Fig. 4 is the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 4.
Fig. 5 is the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 5.
Fig. 6 is the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 6.
Fig. 7 is the detailed process schematic diagram of a kind of facility information collocation method of the embodiment of the present invention 7.
Fig. 8 is the structural representation of a kind of facility information configuration device of the embodiment of the present invention 8.
Fig. 9 is, in the embodiment of the present invention, with equipment to be configured, facility information configuration device is placed in same radome
Interior structural representation.
Figure 10 is the structural representation of a kind of facility information configuration device of the embodiment of the present invention 9.
Figure 11 is the structural representation of a kind of facility information configuration device of the embodiment of the present invention 10.
Figure 12 is the structural representation of a kind of facility information configuration device of the embodiment of the present invention 11.
Figure 13 is the structural representation of a kind of facility information configuration device of the embodiment of the present invention 12.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
It Chu, is fully described by, it is clear that described embodiment is only a part of embodiment of the present invention, rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
Property work under the premise of the every other embodiment that obtained, broadly fall into the scope of protection of the invention.
Embodiments provide a kind of facility information collocation method and device, can avoid setting to be configured
Standby carrying out repeats configuration, moreover it is possible to prevent the configuration information having used to be reused, and carries out individually below in detail
Explanation.
See Fig. 1, be the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 1.This sets
Standby information configuring methods, comprises the steps S10~S14:
S10, the Bluetooth address obtaining described equipment to be configured in the Bluetooth broadcast data of arbitrary equipment to be configured
Information.
In this step, whole equipment to be configured all sends Bluetooth broadcast packet, each Bluetooth broadcast number
According to the unique Bluetooth address information comprising described equipment to be configured in bag.For sending out to described equipment to be configured
After the main control device sending configuration information is opened bluetooth and started Bluetooth broadcast receive capabilities, can be received each
The bluetooth data packets of equipment to be configured, thus obtain the Bluetooth address information of arbitrary equipment to be configured to set up indigo plant
Tooth connects.
When being embodied as, before step S10, can be by the equipment to be configured of main control device and predetermined number
It is placed in same radome, shield for the Bluetooth signal outside to radome, it is to avoid the indigo plant outside radome
Tooth signal produces interference to facility information configuration process, can improve the accuracy of facility information configuration.
S11, in the case of judging that this locality does not stores the Bluetooth address information of described equipment to be configured, based on institute
State Bluetooth address information and realize that bluetooth is connected with described equipment to be configured, and preserve the ground of described equipment to be configured
Location information;
In this step, owing to the Bluetooth address information of equipment to be configured is unique so that equipment to be configured and its
Bluetooth address information one_to_one corresponding.Judging not store the address information of equipment to be configured in this locality, (i.e. equipment is not
It is configured) in the case of, just realize that bluetooth is connected based on described Bluetooth address information with described equipment to be configured,
And in the address information of the described equipment to be configured of this locality preservation, thus may filter that locally stored bluetooth ground
Location information (i.e. equipment was configured), can be prevented effectively from and carry out to equipment to be configured repeating configuration.
It is to say, obtain the Bluetooth address in the Bluetooth broadcast data of arbitrary equipment to be configured at main control device
After information, only when judging that this locality does not preserve this Bluetooth address information, just initiate to described equipment to be configured
Bluetooth connection request.
It should be understood that in order to avoid cannot realize bluetooth even because the Bluetooth signal of equipment to be configured is too weak
Situation about connecing, with each equipment to be configured set up bluetooth be connected when, a Connection Time can be set, if
Exceeding this Connection Time cannot connect, then can abandon connecting this equipment and send out by way of Bluetooth broadcast
The Bluetooth address information of existing next equipment to be configured, thus improve the efficiency of information configuration.
In addition, for the efficiency and the accuracy that improve facility information configuration, main control device can be set only to bluetooth
Signal strength signal intensity sends Bluetooth connection request more than or equal to the equipment to be configured of predetermined threshold value, because Bluetooth signal is little
It is probably in the equipment of predetermined threshold value and be positioned at the equipment bad to be configured of radome or be positioned at outside radome
Other bluetooth equipments (not being i.e. equipment to be configured), the either equipment bad to be configured in radome or position
Other bluetooth equipments outside radome, all there is no need to carry out information configuration.Therefore only main control device is worked as
When detecting that the Bluetooth signal intensity of equipment to be configured is more than or equal to predetermined threshold value, just send out to this equipment to be configured
Play Bluetooth connection request, otherwise will not initiate Bluetooth connection request to this equipment to be configured and continue through bluetooth
The mode of broadcast finds the Bluetooth address information of next equipment to be configured.
S12, connected communication mode by bluetooth and the configuration information of arbitrary not tape label obtaining is sent to described
Equipment to be configured, makes described equipment to be configured configure according to described configuration information;Wherein, each described
Configuration information includes unique device identification number;
S13, the described configuration information having sent is marked.
In S12~S13 step, only the configuration information of not tape label is sent to equipment to be configured and configures,
And will be marked after this configuration information sends such that it is able to prevent the configuration information having used from being repeated to send out
Send, it is to avoid same configuration information is by multiple equipment administration to be configured so that a configuration information is only with one
Individual equipment to be configured is corresponding, improves the accuracy of configuration process.
Concrete, described mark includes: by the described unique device identification number in described configuration information and institute
The address information stating equipment to be configured is mated one by one, i.e. by by the unique device identification number in configuration information
Mate one by one with the address information of equipment to be configured and record the configuration information having used.
In addition, unique device identification number can be ID in each described configuration information.
In another embodiment, for avoiding carrying out to equipment to be configured repeating configuration, this locality can also judged
When having stored the Bluetooth address information of equipment to be configured, then do not set up bluetooth with described equipment to be configured and be connected;
Or, realize that bluetooth sends instruction and makes it stop sending Bluetooth broadcast data after being connected with described equipment to be configured,
And closedown is connected with the bluetooth of described equipment to be configured.Specifically, see Fig. 2, be the embodiment of the present invention 2
A kind of schematic flow sheet of facility information collocation method.This facility information collocation method is based on embodiment 1, and it is not
It is with part, described in the Bluetooth broadcast data of arbitrary equipment to be configured, obtain described equipment to be configured
After Bluetooth address information, also comprise the steps:
S20, in the case of judging the Bluetooth address information of locally stored described equipment to be configured, then not with
Described equipment to be configured is set up bluetooth and is connected;Or, realize that bluetooth sends after being connected with described equipment to be configured and refer to
Order makes it stop sending Bluetooth broadcast data, and closedown is connected with the bluetooth of described equipment to be configured.
For in locally stored Bluetooth address information, this corresponding equipment of Bluetooth address information is described
Have been carried out configuration, therefore without again configuration information being sent to configure to it.Mode one is directly not
Initiate bluetooth to this equipment to connect, but the mode continuing through Bluetooth broadcast finds next to be configured setting
Standby.Mode two is to set up bluetooth with described equipment to be configured to be connected, and transmission instruction makes it stop upon connection
Send Bluetooth broadcast data, then turn off and continue search for next after being connected with the bluetooth of described equipment to be configured
Individual equipment to be configured.Mode two can be prevented effectively from main control device and again find this equipment having configured
Bluetooth broadcast data, thus be conducive to improve allocative efficiency.
See Fig. 3, be the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 3.This sets
Standby information configuring methods is based on embodiment 1, and its difference is, in step S13, further comprises the steps of:
S14, in the case of receiving the configuration failure information that described equipment to be configured returns, cancel to described
The mark of configuration information.
In the present embodiment, if receiving the configuration failure information that equipment to be configured returns, then it represents that to be configured
Equipment completes configuration not according to configuration information, i.e. this configuration information is not used by.Therefore wait to join receiving
In the case of installing the configuration failure information of standby return, cancel the mark to this configuration information, this can be joined
Confidence breath reclaims so that this configuration information can be used for the configuration process of another equipment to be configured, it is achieved
Effective utilization of configuration information, it is to avoid the waste of configuration information resource.
See Fig. 4, be the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 4.This sets
Standby information configuring methods, based on embodiment 3, further comprises the steps of:
S15, receive described equipment to be configured return configuration failure information in the case of, described waiting is joined
Install the failed mark of standby Bluetooth address information recording configuration.
In the present embodiment, if receiving the configuration failure information that equipment to be configured returns, then it represents that to be configured set
Standby according to configuration information configuration failure, and cause configuration failure often caused by the problem of equipment to be configured itself,
Illustrate that this equipment to be configured is bad equipment, in order to add up and managing bad equipment, it is necessary to record,
Concrete, by the mark that the Bluetooth address information recording configuration to this equipment is failed.
See Fig. 5, be the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 5.This sets
Standby information configuring methods is on the basis of embodiment 4, including step:
S16, receiving the configuration successful that described equipment to be configured returns or in the case of failure information, closing
It is connected with the bluetooth of described equipment to be configured, and configured number of devices is added up;When described configured
Number of devices in the case of not up to preset number of devices, return step S1;Otherwise terminate to be currently configured stream
Journey, and calculate and show that being currently configured flow process successfully configures the number of devices with failed configuration;
Wherein, the number of devices of failed configuration is equal to the failed reference numerals of described recording configuration, and what success configured sets
Standby number is equal to the difference of described configured number of devices and the number of devices of failed configuration.
The present embodiment is applicable to carry out automatic information configuration to the equipment to be configured of predetermined number and (performs automatically to join
Put flow process), and carry out can automatically terminating configuration flow after configuration completes at all of equipment to be configured, and
The equipment configuring condition of complete configuration flow is added up and shows.Concrete, by receiving often
In the case of the configuration successful of equipment to be configured return described in one or failure information, all to configured number of devices
Carry out add up (specially adding 1 operation, be initially set 0), if configured number of devices not up to sets
Standby number, then illustrate not yet to complete the information configuration of all of equipment, needs to return step S1 and continues to the next one
Equipment scans for and configures;If configured number of devices reaches to preset number of devices, then explanation completes to own
The information configuration of equipment, can terminate to be currently configured flow process, and calculate and display is currently configured flow process success
Configuration and the number of devices of failed configuration.
Due to receive each described equipment to be configured return configuration failure information in the case of all can be to this
The Bluetooth address information flag configuration failure of equipment to be configured, therefore marker number is equivalent to be exactly failed configuration
Number of devices.And the number of devices successfully configuring can be by the equipment by configured number of devices and failed configuration
Number subtracts each other and obtains.
In addition, in the present embodiment, in the configuration successful receiving the return of described equipment to be configured or unsuccessfully believe
In the case of breath, first can send, to described equipment to be configured, the instruction that configuration terminates, make described equipment to be configured
Do not retransmit Bluetooth broadcast data, be then shut off being connected with the bluetooth of described equipment to be configured, and then master control is not
Find this equipment to be configured again, so can improve the efficiency of facility information configuration.
See Fig. 6, be the schematic flow sheet of a kind of facility information collocation method of the embodiment of the present invention 6.This sets
Standby information configuring methods is on the basis of embodiment 5, including step:
S17, in the case of cannot realize that bluetooth is connected with arbitrary equipment to be configured in Preset Time, terminate to work as
Front configuration flow, and calculate and display be currently configured flow process successfully configure, failed configuration and setting of not configuring
Standby number, wherein, the number of devices not configured is the difference of described default number of devices and configured number of devices.
In the present embodiment, during facility information configuration, there is likely to be part equipment to be configured because of indigo plant
Problems such as tooth fault or Bluetooth signal are too weak and causing cannot obtain this part device address to be configured information or
Person sets up bluetooth and connects, thus cannot complete information configuration, therefore, cannot treat with arbitrary in Preset Time
In the case that configuration equipment realizes that bluetooth connects (the remaining equipment not configured is described otherwise bluetooth fault, otherwise
Bluetooth signal is too weak), it should terminate to be currently configured flow process, and calculate and display be currently configured flow process successfully configure,
Failed configuration and the number of devices not configured.
It should be understood that in the present invention, with each equipment to be configured set up bluetooth be connected when, be all provided with
A fixed Connection Time, cannot connect if exceeding this Connection Time, then can abandon connecting this equipment and leading to
The mode crossing Bluetooth broadcast finds the Bluetooth address information of next equipment to be configured.In this programme, above-mentioned
Preset Time is more than this Connection Time, is preferably the quantity of this Connection Time again, such as 3~5 times.
In addition, in the present embodiment, described meeting is to be configured according to the corresponding control of result of configuration successful or failure
LED on equipment shows that corresponding state changes.Wherein, described state change includes that color changes or dodges
Bright frequency change.
In order to distinguish the state in all equipment to be configured on Macrovision, including configuration successful, configuration
State that is failed and that do not configure, arranges LED on each equipment to be configured and shows its corresponding states.
For example, when configuration flow starts the LED on all equipment to be configured all show blueness or do not flash (represent not
Configuration), in the case that equipment to be configured receives configuration information configuration successful, the LED on driving equipment
Display is green or slow flash is bright (expression configuration successful);When equipment to be configured receives configuration information configuration failure
In the case of, the LED display on driving equipment is red or flashes (expression configuration failure) soon.So, lead to
Cross the color of LED on each equipment to be configured of macroscopic observation, i.e. may know that each being currently configured flow process sets
The configuration progress put and situation.
Below, in conjunction with Fig. 7, described in detail the facility information configuration of the present invention by a specific embodiment
The complete of method performs process.In the present embodiment, treating main control device and predetermined number (such as M)
Configuration equipment is placed in same radome, and each equipment to be configured sends Bluetooth broadcast packet, and each is blue
Tooth broadcast data packet comprises unique Bluetooth address information of described equipment to be configured.Each equipment to be configured
On LED is set, LED before configuration for each equipment to be configured is shown as blue.The present embodiment performs as follows
Step:
S101, startup counter T1;
S102, the Bluetooth address information obtaining in the Bluetooth broadcast data of arbitrary described equipment to be configured;
S103, judge that the signal of the Bluetooth address information of described equipment to be configured is powerful and whether be more than threshold value;If
It is, step S104;Otherwise return step S102;
S104, judge the local Bluetooth address information whether having preserved described equipment to be configured;If it is not, perform
Step S105, otherwise returns step S102;
In this step, it is judged that the local Bluetooth address information having preserved described equipment to be configured, it is also possible to
Described equipment to be configured set up bluetooth connect and send instruction make its stop send Bluetooth broadcast data, then close
Close and return again to step S102 after being connected with the bluetooth of described equipment to be configured.
S105, to described equipment to be configured initiate set up Bluetooth connection request;
S106, judge whether realize that bluetooth is connected with described equipment to be configured in default Connection Time T2;
If so, then step S108;Otherwise step S107;
S107, judge whether T1 reaches Preset Time;If then step S120, otherwise return and perform
Step S102;
S108, closedown timer T1, preserve the Bluetooth address information of described equipment to be configured in this locality;
S109, the configuration information by arbitrary not tape label are sent to described equipment to be configured;
Wherein, described configuration information is used for making described equipment to be configured configure according to described configuration information;
Each described configuration information comprises unique EIC equipment identification code (ID).
S110, the described configuration information having sent is marked;
Concrete, by the described unique device identification number in described configuration information and described equipment to be configured
Address information is mated one by one.
The information that S111, the described equipment to be configured of judgement reception return is configuration successful or failure information;If
Configuration failure information, then step S112;Otherwise step S114.
S112, the mark to described configuration information for the cancellation;
S113, by mark failed for the Bluetooth address information recording configuration of described equipment to be configured;
S114, closedown are connected with the bluetooth of described equipment to be configured, and add up configured number of devices;
Wherein, described configured number of devices includes configuration successful and failed number of devices;
S115, judge that whether described configured number of devices is equal to M, if then step S117;Otherwise
Step S116;
S116, startup counter T1, and return step S102;
S117, end are currently configured flow process, and calculating and display are currently configured flow process and successfully configure and unsuccessfully join
The number of devices put.
Wherein, the number of devices that success configures can be by the number of devices by configured number of devices and failed configuration
Subtract each other and obtain.
S118, end are currently configured flow process, and calculating and display are currently configured flow process and successfully configure, unsuccessfully join
The number of devices put and do not configure.
Wherein, the number of devices not configured is the difference of described default number of devices M and configured number of devices.
To sum up, the facility information collocation method of the present embodiment is by judging that this locality does not stores the indigo plant of equipment to be configured
During tooth address information, just carry out, with it, the arbitrary unlabelled configuration information preset that bluetooth is connected and will obtain
It is sent to this equipment to be configured to configure, and preserve the address information of this equipment to be configured in this locality, this
Sample just can filter out locally stored address information, can be prevented effectively from and carry out repeating to join to equipment to be configured
Put.Additionally, utilizing bluetooth connection communication mode after equipment to be configured sends configuration information, will send out
The configuration information sending is marked, and the configuration information being prevented from having used is repeatedly transmitted, and can be prevented effectively from
Same configuration information is by multiple equipment administration to be configured so that a configuration information is only to be configured with one
Equipment is corresponding, improves the accuracy of configuration process.
Present invention also offers a kind of facility information configuration device, see Fig. 8, be the one of the embodiment of the present invention 8
Plant the structural representation of facility information configuration device.This facility information configuration device includes:
Address information acquisition module 21, described for obtaining in the Bluetooth broadcast data of arbitrary equipment to be configured
The Bluetooth address information of equipment to be configured;
Set up bluetooth link block 22, for judging that this locality does not stores the Bluetooth address of described equipment to be configured
In the case of information, realize that bluetooth is connected based on described Bluetooth address information with described equipment to be configured, and protect
Deposit the address information of described equipment to be configured;
Configuration information sending module 23, for connecting, by bluetooth, arbitrary not tape label that communication mode will obtain
Configuration information be sent to described equipment to be configured, make described equipment to be configured carry out according to described configuration information
Configuration;Wherein, each described configuration information includes unique device identification number;
Configuration information mark module 24, for being marked the described configuration information having sent.
Setting up before bluetooth is connected with arbitrary equipment to be configured, as it is shown in figure 9, can setting the present embodiment
The equipment to be configured of standby information configuration device 100 and predetermined number is put 200 in same radome 300, uses
Bluetooth signal outside to radome 300 shields, it is to avoid the Bluetooth signal outside radome 300 is to equipment
Information configuration process produces interference, can improve the accuracy of facility information configuration.
Owing to the address information of equipment to be configured is unique so that equipment to be configured and its address information one_to_one corresponding.
Therefore, local address information (the i.e. equipment not storing equipment to be configured is judged setting up bluetooth link block 22
It is not configured) in the case of, just preserve the address information of described equipment to be configured, and sent out by configuration information
Send module 23 by obtain preset arbitrary unlabelled configuration information by bluetooth connected mode be sent to described in treat
Configuration equipment, so may filter that locally stored address information (i.e. equipment was configured), Neng Gouyou
Effect is avoided carrying out to equipment to be configured repeating configuration.
Wherein, described mark includes: by the described unique device identification number in described configuration information with described
The address information of equipment to be configured is mated one by one.The configuration information having sent is entered by configuration information mark module 24
Line flag, prevents the configuration information having used to be repeatedly transmitted, it is to avoid same configuration information is by multiple to be configured
Equipment administration a so that configuration information is only corresponding with an equipment to be configured, can effectively improve configuration
The accuracy of process.
See Figure 10, be the structural representation of a kind of facility information configuration device of the embodiment of the present invention 9.Should
Facility information configuration device, on the basis of embodiment 8, also includes:
Configuration information mark cancels module 25, for receiving the configuration failure that described equipment to be configured returns
In the case of information, cancel the mark to described configuration information.
Concrete, if receiving the configuration failure information that equipment to be configured returns, then it represents that equipment to be configured does not has
With good grounds configuration information completes configuration, i.e. this configuration information is not used by.The present embodiment passes through configuration information mark
Keep the module 25 that disappears in mind and cancel the mark to this configuration information, this configuration information can be reclaimed so that should
Configuration information can be used for the configuration process of another equipment to be configured, it is achieved effective utilization of configuration information, it is to avoid
The waste of configuration information resource.
See Figure 11, be the structural representation of a kind of facility information configuration device of the embodiment of the present invention 10.Should
Facility information configuration device, on the basis of embodiment 9, also includes:
Configuration failure mark module 26, for receiving the configuration failure information that described equipment to be configured returns
In the case of, by mark failed for the Bluetooth address information recording configuration of described equipment to be configured.
The present embodiment receives the configuration failure information that equipment to be configured returns, by configuration failure mark module
The Bluetooth address information of the equipment of 26 mark configuration failures, is beneficial to follow the trail of bad equipment.
See Figure 12, be the structural representation of a kind of facility information configuration device of the embodiment of the present invention 11.Should
Facility information configuration device, on the basis of embodiment 10, also includes:
Bluetooth closes module 27, is used in the configuration successful information receiving the return of described equipment to be configured or joins
In the case of putting failure information, close and be connected with the bluetooth of described equipment to be configured;And
Devices to be configured number statistical module 28, for receiving the configuration successful that described equipment to be configured returns
In the case of information or configuration failure information, configured number of devices is added up;And described configured
Number of devices in the case of reach to preset number of devices, terminate to be currently configured flow process, and calculate and display is currently joined
Put flow process and successfully configure the number of devices with failed configuration.
The course of work of the present embodiment refer to embodiment 5, does not repeats them here.
See Figure 13, be the structural representation of a kind of facility information configuration device of the embodiment of the present invention 12.Should
Facility information configuration device, on the basis of embodiment 11, also includes:
Preset Time link block 29, being used for detecting device cannot be with arbitrary equipment to be configured in Preset Time
In the case of realizing that bluetooth connects, terminate to be currently configured flow process, and calculating and display are currently configured flow process success
Configuration, failed configuration and the number of devices not configured, wherein, the number of devices not configured is described default equipment
Number and the difference of configured number of devices.
The present embodiment detects device in Preset Time by Preset Time link block 29 and cannot join with arbitrary waiting
Install that standby in the case of realize that bluetooth connects (explanation is left the equipment that do not configures otherwise bluetooth fault, otherwise blue
Tooth signal is too weak), terminate to be currently configured flow process, and calculating and display are currently configured flow process and successfully configure, unsuccessfully
Configuration and the number of devices not configured.
The above is the preferred embodiment of the present invention, it is noted that for the common skill of the art
For art personnel, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, this
A little improvements and modifications are also considered as protection scope of the present invention.
Claims (10)
1. a facility information collocation method, it is characterised in that comprise the steps:
S1, the Bluetooth address obtaining described equipment to be configured in the Bluetooth broadcast data of arbitrary equipment to be configured
Information;
S2, in the case of judging that this locality does not stores the Bluetooth address information of described equipment to be configured, based on institute
State Bluetooth address information and realize that bluetooth is connected with described equipment to be configured, and preserve the ground of described equipment to be configured
Location information;
S3, connected communication mode by bluetooth and the configuration information of arbitrary not tape label obtaining is sent to described
Equipment to be configured, makes described equipment to be configured configure according to described configuration information;Wherein, each described
Configuration information includes unique device identification number;
S4, the described configuration information having sent is marked.
2. a kind of facility information collocation method as claimed in claim 1, it is characterised in that in described step
After S1, further comprise the steps of:
S2 ', in the case of judging the Bluetooth address information of locally stored described equipment to be configured, then not with
Described equipment to be configured is set up bluetooth and is connected;Or, realize that bluetooth sends after being connected with described equipment to be configured and refer to
Order makes it stop sending Bluetooth broadcast data, and closedown is connected with the bluetooth of described equipment to be configured.
3. a kind of facility information collocation method as claimed in claim 1, it is characterised in that in described step
After S4, further comprise the steps of:
S5, in the case of receiving the configuration failure information that described equipment to be configured returns, cancel to described
The mark of configuration information.
4. a kind of facility information collocation method as claimed in claim 3, it is characterised in that in described step
In S5,
In the case of receiving the configuration failure information that described equipment to be configured returns, further comprise the steps of:
By mark failed for the Bluetooth address information recording configuration of described equipment to be configured.
5. a kind of facility information collocation method as claimed in claim 4, it is characterised in that in described step
After S4, further comprise the steps of:
S6, receiving the configuration successful that described equipment to be configured returns or in the case of failure information, closing
It is connected with the bluetooth of described equipment to be configured, and configured number of devices is added up;
In the case that described configured number of devices not up to presets number of devices, return step S1;No
Then terminate to be currently configured flow process, and calculate and show that being currently configured flow process successfully configures the equipment with failed configuration
Number;Wherein, the number of devices of failed configuration is equal to the failed reference numerals of described recording configuration, and what success configured sets
Standby number is equal to the difference of described configured number of devices and the number of devices of failed configuration.
6. a kind of facility information collocation method as claimed in claim 5, it is characterised in that further comprise the steps of:
S7, in the case of cannot realize that bluetooth is connected with arbitrary equipment to be configured in Preset Time, terminate to work as
Front configuration flow, and calculate and display be currently configured flow process successfully configure, failed configuration and setting of not configuring
Standby number, wherein, the number of devices not configured is the difference of described default number of devices and configured number of devices.
7. a kind of facility information collocation method as claimed in claim 6, it is characterised in that in described step
In S6, before closing and being connected with the bluetooth of described equipment to be configured, further comprise the steps of: to described to be configured
Equipment sends instruction makes it stop sending Bluetooth broadcast data.
8. a kind of facility information collocation method as claimed in claim 1, it is characterised in that in described step
Before S1, further comprise the steps of: and will perform the main control device of described facility information collocation method and default number of devices
Equipment to be configured is placed in same radome;
Described mark includes: the described unique device identification number in described configuration information is to be configured with described
The address information of equipment is mated one by one.
9. a facility information configuration device, it is characterised in that include:
Address information acquisition module, treats described in obtaining in the Bluetooth broadcast data of arbitrary equipment to be configured
The Bluetooth address information of configuration equipment;
Set up bluetooth link block, for judging that this locality does not stores the Bluetooth address letter of described equipment to be configured
In the case of breath, realize that bluetooth is connected based on described Bluetooth address information with described equipment to be configured, and preserve
The address information of described equipment to be configured;
Configuration information sending module, for connecting communication mode by arbitrary not tape label of acquisition by bluetooth
Configuration information is sent to described equipment to be configured, makes described equipment to be configured join according to described configuration information
Put;Wherein, each described configuration information includes unique device identification number;
Configuration information mark module, for being marked the described configuration information having sent.
10. a kind of facility information configuration device as claimed in claim 9, it is characterised in that also include:
Configuration information mark cancels module, for receiving the configuration failure letter that described equipment to be configured returns
In the case of breath, cancel the mark to described configuration information;And
Described facility information configuration device is placed in same radome with described equipment to be configured.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610575522.3A CN105991355B (en) | 2016-07-20 | 2016-07-20 | A kind of facility information configuration method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610575522.3A CN105991355B (en) | 2016-07-20 | 2016-07-20 | A kind of facility information configuration method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105991355A true CN105991355A (en) | 2016-10-05 |
CN105991355B CN105991355B (en) | 2019-06-14 |
Family
ID=57044392
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610575522.3A Active CN105991355B (en) | 2016-07-20 | 2016-07-20 | A kind of facility information configuration method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105991355B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106341279A (en) * | 2016-10-31 | 2017-01-18 | 普联技术有限公司 | Configuration information synchronizing method and device |
CN109857350A (en) * | 2019-02-15 | 2019-06-07 | 北京顺丰同城科技有限公司 | A kind of Method of printing, device and electronic equipment |
CN112367607A (en) * | 2020-09-08 | 2021-02-12 | 深圳晒尔科技有限公司 | Non-inductive building patrol property management system, method and device based on Internet of things door lock |
CN114666213A (en) * | 2020-12-23 | 2022-06-24 | 北京华为数字技术有限公司 | Opening method and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095495A (en) * | 2013-01-06 | 2013-05-08 | 华为技术有限公司 | Network implementation configuration method, device and system |
CN104469980A (en) * | 2014-11-21 | 2015-03-25 | 广东欧珀移动通信有限公司 | Bluetooth connecting method and Bluetooth equipment |
CN104683938A (en) * | 2015-02-10 | 2015-06-03 | 小米科技有限责任公司 | Configuration method and device for intelligent equipment |
CN105703938A (en) * | 2014-11-28 | 2016-06-22 | 华为技术有限公司 | Equipment configuration method, configuration device and management equipment |
-
2016
- 2016-07-20 CN CN201610575522.3A patent/CN105991355B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095495A (en) * | 2013-01-06 | 2013-05-08 | 华为技术有限公司 | Network implementation configuration method, device and system |
CN104469980A (en) * | 2014-11-21 | 2015-03-25 | 广东欧珀移动通信有限公司 | Bluetooth connecting method and Bluetooth equipment |
CN105703938A (en) * | 2014-11-28 | 2016-06-22 | 华为技术有限公司 | Equipment configuration method, configuration device and management equipment |
CN104683938A (en) * | 2015-02-10 | 2015-06-03 | 小米科技有限责任公司 | Configuration method and device for intelligent equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106341279A (en) * | 2016-10-31 | 2017-01-18 | 普联技术有限公司 | Configuration information synchronizing method and device |
CN106341279B (en) * | 2016-10-31 | 2019-08-16 | 普联技术有限公司 | The synchronous method and device of configuration information |
CN109857350A (en) * | 2019-02-15 | 2019-06-07 | 北京顺丰同城科技有限公司 | A kind of Method of printing, device and electronic equipment |
CN112367607A (en) * | 2020-09-08 | 2021-02-12 | 深圳晒尔科技有限公司 | Non-inductive building patrol property management system, method and device based on Internet of things door lock |
CN114666213A (en) * | 2020-12-23 | 2022-06-24 | 北京华为数字技术有限公司 | Opening method and related equipment |
CN114666213B (en) * | 2020-12-23 | 2024-01-09 | 北京华为数字技术有限公司 | Opening method and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105991355B (en) | 2019-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105991355A (en) | Method and device for configuring equipment information | |
CN106371359B (en) | One one button security of process control network is locked | |
WO2016082417A1 (en) | Device configuration method, configuration apparatus and management device | |
CN1115143A (en) | Communication system and electronic apparatus | |
CN107360027A (en) | The distribution method, apparatus and intelligent appliance of a kind of intelligent appliance | |
CN107743154B (en) | Tracking and attendance system based on Wi-Fi intelligent terminal and method thereof | |
CN106793007A (en) | The interactive communication method of high in the clouds and bluetooth equipment, system and wireless router | |
CN105790832B (en) | The checkout and diagnosis method and apparatus of abnormal luminous optical network unit ONU | |
CN105389278A (en) | CAN bus based serial communication method for master and slave machines | |
CN105827333A (en) | System and method of baseband chip automatic test | |
CN106162067A (en) | Monitoring method, apparatus and system and the network equipment | |
CN103744707B (en) | A kind of VCI device program upgrade method, device and system | |
CN105307062B (en) | The sODN system and method for support proximal end operation and distal end guiding construction based on eID | |
CN103533069B (en) | Method for starting automatic configuration of network equipment and network equipment | |
CN101577584A (en) | Automated diagnosis and control method of ONU performance degradation | |
CN105827637B (en) | The configuration method and system of IMS fixed line number | |
CN112308540A (en) | Method and device for switching on/off state of equipment in rail transit and storage medium | |
CN107634868A (en) | A kind of method and system for managing network service | |
CN102246469A (en) | Data transfer device | |
CN111147614A (en) | Full-automatic mine network management method and system, intermediate equipment and server thereof | |
CN106452832A (en) | C-CMTS equipment method for precisely acquiring configuration parameters | |
CN103532682B (en) | Coaxial cable network unit port number obtains and management method | |
CN101711038A (en) | Confirmation sending method for acquiring sales volume information, network system and mobile terminal | |
CN108089986A (en) | A kind of version updating test method and system based on robot | |
CN104991527B (en) | A kind of KNX gateways, control system and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |