CN106100904B - Equipment connection method connects system with equipment - Google Patents
Equipment connection method connects system with equipment Download PDFInfo
- Publication number
- CN106100904B CN106100904B CN201610645888.3A CN201610645888A CN106100904B CN 106100904 B CN106100904 B CN 106100904B CN 201610645888 A CN201610645888 A CN 201610645888A CN 106100904 B CN106100904 B CN 106100904B
- Authority
- CN
- China
- Prior art keywords
- equipment
- type
- service
- scanned
- incidence relation
- 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.)
- Active
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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Abstract
The invention proposes a kind of equipment connection methods to connect system with equipment, wherein the equipment connection method includes: to obtain the title of the equipment scanned in scanning device;According to the title of the equipment scanned, the type of service of the equipment scanned is inquired;The incidence relation between the type of service and the equipment scanned is established, and equipment is connected according to the incidence relation.According to the technical solution of the present invention, equipment can not only be neatly connected, the time of connection equipment can also be effectively shortened, to ensure that the speed of connection equipment, and then improves the usage experience of user.
Description
Technical field
The present invention relates to communication linkage technology fields, connect in particular to a kind of equipment connection method and a kind of equipment
Welding system.
Background technique
Currently, universal with electronic equipment, more and more electronic equipments are widely used by people, as smart phone,
Platform, laptop, portable glucose meter, instrument Urine Analyzer, body temperature rifle, printer etc..General meeting in a system
Use multiple equipment.Such as obtain temperature data, blood glucose level data, urinalysis result etc., it obtains result and later passes through these
Printer prints.System needs to be connected with multiple and different equipment according to the switching of type of service in this process
It connects, it is therefore desirable to identify the corresponding equipment of each type of service.
In the related art, each producer is customized communications protocol in order to solve that automatic identification equipment takes, broadcast
It is communicated after scanning device by bluetooth and equipment, then identifies the equipment after carrying out data exchange according to the agreement of regulation
Then corresponding type of service is attached according to the corresponding equipment of type of service.The method needs equipment manufacturer to determine
To provide proof of identification by protocol requirement after connecting with equipment, the method customization is too high for inhibition and generation programming.Another is asked
Topic is to connect the process for requiring experience identification and connection every time, by being attached respectively with the equipment scanned to identify
Type of service out.Since the process of identification is a serial process, identifies that equipment requires to expend every time and wants when the long time,
Very poor experience is brought to user.
Therefore, equipment how is neatly connected, while shortening the time of connection equipment, to ensure that connection equipment
Speed become urgent problem to be solved.
Summary of the invention
The present invention is based on the above problems, proposes a kind of new technical solution, can not only neatly connect equipment,
It can also be effectively shortened the time of connection equipment, to ensure that the speed of connection equipment, and then improve making for user
With experience.
In view of this, the first aspect of the present invention proposes a kind of equipment connection method, comprising: in scanning device, obtain
The title for the equipment for taking scanning to arrive;According to the title of the equipment scanned, the service class of the equipment scanned is inquired
Type;The incidence relation between the type of service and the equipment scanned is established, and is set according to incidence relation connection
It is standby.
In the technical scheme, by the incidence relation established between the equipment and its type of service that scan, thus root
According to the incidence relation can directly, rapidly connect equipment, avoid to connect with equipment exclusively for equipment research and development, not only
The flexibility of equipment connection is improved, development cost is also reduced.And business is just had been set up before connecting with equipment
Incidence relation between type and the equipment scanned is assured that the type of service of equipment before connecting with equipment,
The type of service that just can determine that equipment after connecting equipment in the related technology is avoided, connection equipment is effectively shortened
Time improves the usage experience of user to ensure that the speed of connection equipment.
In the above-mentioned technical solutions, it is preferable that the title according to the equipment scanned is inquired the scanning and arrived
Equipment type of service the step of, specifically include: being split according to title of the preset rules to the equipment scanned,
To obtain at least one characteristic information;According at least one described characteristic information, inquired in pre-set business type list described
Type of service.
In the technical scheme, the corresponding characteristic information and type of service for being stored with equipment in pre-set business type list,
The corresponding type of service of the characteristic information in the title with equipment inquired in pre-set business type list is setting of scanning
Standby type of service, to realize the type of service for being assured that equipment before connecting with equipment.
In any of the above-described technical solution, it is preferable that at least one described characteristic information includes following one or combinations thereof:
Brand message, type information, serial number, batch coding.
In the technical scheme, at least one characteristic information includes but is not limited to following one or combinations thereof: brand message,
Type information, serial number, batch coding, the industry of the equipment scanned can be accurately inquired according to characteristic information among the above
Service type.
In any of the above-described technical solution, it is preferable that it is described establish the type of service and the equipment scanned it
Between incidence relation the step of, specifically include: judging whether there is equipment associated with the type of service;If it exists with institute
State the associated equipment of type of service, then by device address associated with the type of service be changed to it is described scan set
Standby address, to establish the incidence relation;Equipment associated with the type of service if it does not exist, then by the service class
Type storage corresponding with the address of the equipment scanned, to establish the incidence relation.
In any of the above-described technical solution, it is preferable that described the step of connecting equipment according to the incidence relation, specific to wrap
It includes: when the type of service of current application changes, according to the incidence relation, inquiring related to the type of service after change
The device address of connection, and be attached according to the device address.
In the technical scheme, when the type of service of current application changes, pass through the service class after inquiry change
The associated device address of type is connected according between the device address inquired, to ensure that type of service becomes
The rapidity that equipment connects when change.
In any of the above-described technical solution, it is preferable that further include: obtaining the same of the title of the equipment scanned
When, obtain the address of the equipment scanned;Or it is establishing between the type of service and the equipment scanned
When incidence relation, the address of the equipment scanned is obtained.
The second aspect of the present invention proposes a kind of equipment connection system, comprising: acquiring unit, in scanning device
When, obtain the title of the equipment scanned;Query unit is swept described in inquiry for the title according to the equipment scanned
The type of service for the equipment retouched;Connection unit, the pass for establishing between the type of service and the equipment scanned
Connection relationship, and equipment is connected according to the incidence relation.
In the technical scheme, by the incidence relation established between the equipment and its type of service that scan, thus root
According to the incidence relation can directly, rapidly connect equipment, avoid to connect with equipment exclusively for equipment research and development, not only
The flexibility of equipment connection is improved, development cost is also reduced.And business is just had been set up before connecting with equipment
Incidence relation between type and the equipment scanned is assured that the type of service of equipment before connecting with equipment,
The type of service that just can determine that equipment after connecting equipment in the related technology is avoided, connection equipment is effectively shortened
Time improves the usage experience of user to ensure that the speed of connection equipment.
In the above-mentioned technical solutions, it is preferable that the query unit includes: fractionation subelement, for according to preset rules
The title of the equipment scanned is split, to obtain at least one characteristic information;Subelement is inquired, for according to institute
At least one characteristic information is stated, the type of service is inquired in pre-set business type list.
In the technical scheme, the corresponding characteristic information and type of service for being stored with equipment in pre-set business type list,
The corresponding type of service of the characteristic information in the title with equipment inquired in pre-set business type list is setting of scanning
Standby type of service, to realize the type of service for being assured that equipment before connecting with equipment.
In any of the above-described technical solution, it is preferable that at least one described characteristic information includes following one or combinations thereof:
Brand message, type information, serial number, batch coding.
In the technical scheme, at least one characteristic information includes but is not limited to following one or combinations thereof: brand message,
Type information, serial number, batch coding, the industry of the equipment scanned can be accurately inquired according to characteristic information among the above
Service type.
In any of the above-described technical solution, it is preferable that the connection unit includes: judgment sub-unit, for judging whether
In the presence of equipment associated with the type of service;Subelement is established, is set for associated with the type of service if it exists
It is standby, then device address associated with the type of service is changed to the address of the equipment scanned, described in establishing
Incidence relation;The subelement of establishing is also used to, if it does not exist equipment associated with the type of service, then by the business
Type storage corresponding with the address of the equipment scanned, to establish the incidence relation.
In any of the above-described technical solution, it is preferable that the connection unit includes: connection subelement, for answering currently
When type of service changes, according to the incidence relation, with inquiring equipment associated with the type of service after change
Location, and be attached according to the device address.
In the technical scheme, when the type of service of current application changes, pass through the service class after inquiry change
The associated device address of type is connected according between the device address inquired, to ensure that type of service becomes
The rapidity that equipment connects when change.
In any of the above-described technical solution, it is preferable that obtain the title of the equipment scanned in the acquiring unit
While, the acquiring unit is also used to obtain the address of the equipment scanned;Or it is established in the subelement of establishing
When incidence relation between the type of service and the equipment scanned, the acquiring unit is also used to obtain the scanning
The address of the equipment arrived.
According to the technical solution of the present invention, equipment can not only be neatly connected, connection can also be effectively shortened and set
The standby time to ensure that the speed of connection equipment, and then improves the usage experience of user.
Detailed description of the invention
Fig. 1 shows the flow diagram of equipment connection method according to an embodiment of the invention;
Fig. 2 shows the flow diagrams of equipment connection method according to another embodiment of the invention;
Fig. 3 shows the structural schematic diagram of equipment connection system according to an embodiment of the invention;
Fig. 4 shows the structural schematic diagram of the connection system of equipment according to another embodiment of the invention.
Specific embodiment
It is with reference to the accompanying drawing and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application
Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also
To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
Fig. 1 shows the flow diagram of equipment connection method according to an embodiment of the invention.
As shown in Figure 1, equipment connection method according to an embodiment of the invention, comprising:
Step 102, in scanning device, the title of the equipment scanned is obtained.
Step 104, according to the title of the equipment scanned, the type of service of the equipment scanned is inquired.
Step 106, the incidence relation between the type of service and the equipment scanned is established, and according to the pass
Connection relationship connects equipment.
In the technical scheme, by the incidence relation established between the equipment and its type of service that scan, thus root
According to the incidence relation can directly, rapidly connect equipment, avoid to connect with equipment exclusively for equipment research and development, not only
The flexibility of equipment connection is improved, development cost is also reduced.And business is just had been set up before connecting with equipment
Incidence relation between type and the equipment scanned is assured that the type of service of equipment before connecting with equipment,
The type of service that just can determine that equipment after connecting equipment in the related technology is avoided, connection equipment is effectively shortened
Time improves the usage experience of user to ensure that the speed of connection equipment.
In the above-mentioned technical solutions, it is preferable that step 104 specifically includes: according to preset rules to it is described scan set
Standby title is split, to obtain at least one characteristic information;According at least one described characteristic information, in pre-set business class
The type of service is inquired in type table.
In the technical scheme, the corresponding characteristic information and type of service for being stored with equipment in pre-set business type list,
The corresponding type of service of the characteristic information in the title with equipment inquired in pre-set business type list is setting of scanning
Standby type of service, to realize the type of service for being assured that equipment before connecting with equipment.
In any of the above-described technical solution, it is preferable that at least one described characteristic information includes following one or combinations thereof:
Brand message, type information, serial number, batch coding.
In the technical scheme, at least one characteristic information includes but is not limited to following one or combinations thereof: brand message,
Type information, serial number, batch coding, the industry of the equipment scanned can be accurately inquired according to characteristic information among the above
Service type.
In any of the above-described technical solution, it is preferable that it is described establish the type of service and the equipment scanned it
Between incidence relation the step of, specifically include: judging whether there is equipment associated with the type of service;If it exists with institute
State the associated equipment of type of service, then by device address associated with the type of service be changed to it is described scan set
Standby address, to establish the incidence relation;Equipment associated with the type of service if it does not exist, then by the service class
Type storage corresponding with the address of the equipment scanned, to establish the incidence relation.
In any of the above-described technical solution, it is preferable that further include: obtaining the same of the title of the equipment scanned
When, obtain the address of the equipment scanned;Or it is establishing between the type of service and the equipment scanned
When incidence relation, the address of the equipment scanned is obtained.
In any of the above-described technical solution, it is preferable that described the step of connecting equipment according to the incidence relation, specific to wrap
It includes: when the type of service of current application changes, according to the incidence relation, inquiring related to the type of service after change
The device address of connection, and be attached according to the device address.
In the technical scheme, when the type of service of current application changes, pass through the service class after inquiry change
The associated device address of type is connected according between the device address inquired, to ensure that type of service becomes
The rapidity that equipment connects when change.
For example, the type of service of current application is detection body temperature by detection change of blood sugar, then inquire associated with body temperature
The device address of body temperature rifle can be quickly directly attached with body temperature rifle according to the device address.
Fig. 2 shows the flow diagrams of equipment connection method according to another embodiment of the invention.
As shown in Fig. 2, equipment connection method according to another embodiment of the invention, comprising:
Step 202, scanning device.Wherein, center bluetooth equipment calls bluetooth equipment scan interface to periphery bluetooth equipment
It is scanned.
Step 204, judge whether that scanning enters step 206 when the judgment result is yes to equipment, otherwise, terminate this
Process.Wherein, when scanning is to periphery bluetooth equipment, receive its sent according to Bluetooth protocol from periphery bluetooth equipment from
Body device name, device address, equipment bluetooth protocol version information.
Step 206, it stores, update facility information.Step 202, step 204 and step 206 are repeated until periphery bluetooth is set
Standby all scan through becomes only.Wherein, by facility information storage into facility information table, facility information include device name,
Device address, equipment bluetooth protocol version information.
Step 208, the associated type of service of query facility.Specifically, according to the device name in facility information table come
Inquire associated type of service.
Since device name is generated according to preset rules, by some characteristic informations (for example, brand message, model are believed
Breath, serial number) it is combined according to preset rules, form device name.By characteristic information, (brand is believed after scanning is to equipment
Breath, type information, serial number) it is extracted from device name, then believed according to brand message, type information, serial number etc.
Breath carries out the identification of type of service, and equipment is associated with type of service, then quickly establishes connection.
The rule of the name format of device name can be with are as follows: brand encodes (i.e. brand message)+model coding, and (i.e. model is believed
Breath)+serial number, but it is not limited to said combination, it can be adjusted according to business actual conditions.Brand is encoded and is used as first letter
Breath item is because brand is a major class, and the brand of each type of service is nearly all different, generally passes through brand
It determines type of service corresponding to the equipment, then establishes communication connection.Second item of information is that model coding allows for together
Corresponding two equipment of one type of service, can solve problem above by Signal coding.And when a brand coding corresponds to
When multiple types of service, the identification of type of service can be further carried out according to model coding.Another serial number is mainly used for factory
Tracking of the family to equipment and the further identification to equipment.It can specify that present type of service is associated to be by serial number
Which equipment facilitates identification, has significant role in the specific type of service of more exchange device and subsequent identification equipment.
For example, device name is according to " brand encodes (2)+model coding (2)+equipment serial number (6) " rule
It is named.The producer that brand coding is wherein defined as the equipment that two allow for connection is generally actually only several
Family, up to more than ten.2 bit digitals can be at most 100 producer's codings, meet existing actual requirement enough.Model is compiled
It is 2 digits because multiple types of service are equipment usually not more than ten corresponding under the same brand that code, which is defined as 2,
Word can be at most 100 model codings, meet actual requirement enough.Wherein 6 serial numbers are the shipment amounts from equipment
Come what is considered, 6 serial numbers can be 1,000,000 device codings, and 6 serial numbers are also sufficient for sb.'s need.If it is subsequent have it is super
Alpha code can be mixed by crossing the number, to continue expansion equipment capacity.
Above equipment naming rule is not limited to said combination, can go to combine again according to the actual situation.Each feature
Length corresponding to information is also not limited to above-mentioned defined length, can go to define according to the actual situation.
It is corresponding can be inquired in input coding by storing the corresponding concrete meaning of coding of each characteristic information
Concrete meaning, so that staff understands the coding and encodes the meaning of composed device name.
After defining features described above information, the information such as the type of service of input, brand coding, model coding are subjected to correspondence and are deposited
Storage, to inquire corresponding type of service according to the characteristic information extracted from device name.Such as: blood glucose business is corresponding
The characteristic information of equipment can be as given a definition: brand-ZTE, model-D01.If it is ZTED01000010 that device name is arrived in scanning.
It then can extract characteristic information are as follows: brand coding-ZTE, model coding-D01, then according to the brand coding and model coding extracted
It is blood glucose business that the associated type of service of the equipment, which can be inquired,.
For another example device name is according to " brand encodes (2)+model coding (2)+equipment serial number (6) " rule
Then it is named.According to " brand encodes (2)+model coding (2)+equipment serial number (6) " rule to device name
It is split, device name is split as the items of information such as brand message, type information and serial number.It traverses in type of service table
All types of service, to check whether to have type of service with brand codes match, wherein be stored in type of service table
Brand message, type information and corresponding type of service.If having multiple types of service with brand codes match, according to model
Information matches type of service in multiple type of service again.If it fails to match, that is, determine not inquiring associated industry
Service type terminates this process.
Step 210, judge whether to inquire associated type of service, when the judgment result is yes, enter step 212,
Otherwise, terminate this process.
Step 212, whether the type of service of inquiry has been associated with equipment, if being associated with equipment, enters step
214, if not being associated with equipment, enter step 216.
Step 214, the associated device address of type of service is updated, to establish the incidence relation of type of service and equipment.
Step 216, the associated device address of type of service, i.e. Insert service type and device address are added, business is established
The incidence relation of type and equipment.
In addition, equipment connection method further include: step 218, after establishing incidence relation, if the service class of application system
Type triggering change, application system execute data query operation, inquiry change after type of service whether associate device, if so, then
Link address, authentication information etc. is obtained according to device name to be attached.
Step 220, application system executes data query operation and does not inquire the associated equipment of type of service after change, then
The incidence relation for whether establishing the type of service and equipment monitored always when business does not switch to the type of service.
Step 222, if application system listens to the incidence relation for establishing the type of service and equipment, directly with association
Device address be attached.
Step 224, if being switched to the type of service, the straight step 222 of step 218 is repeated, until not triggering any industry
Service type.
Fig. 3 shows the structural schematic diagram of equipment connection system according to an embodiment of the invention.
As shown in figure 3, equipment according to an embodiment of the invention connects system 300, comprising: acquiring unit 302 is looked into
Ask unit 304 and connection unit 306.
Acquiring unit 302, for obtaining the title of the equipment scanned in scanning device.
Query unit 304 inquires the business of the equipment scanned for the title according to the equipment scanned
Type.
Connection unit 306, the incidence relation for establishing between the type of service and the equipment scanned, and root
Equipment is connected according to the incidence relation.
In the technical scheme, by the incidence relation established between the equipment and its type of service that scan, thus root
According to the incidence relation can directly, rapidly connect equipment, avoid to connect with equipment exclusively for equipment research and development, not only
The flexibility of equipment connection is improved, development cost is also reduced.And business is just had been set up before connecting with equipment
Incidence relation between type and the equipment scanned is assured that the type of service of equipment before connecting with equipment,
The type of service that just can determine that equipment after connecting equipment in the related technology is avoided, connection equipment is effectively shortened
Time improves the usage experience of user to ensure that the speed of connection equipment.
In the above-mentioned technical solutions, it is preferable that the query unit 304 includes: to split subelement 3042, for according to pre-
If rule splits the title of the equipment scanned, to obtain at least one characteristic information;Subelement 3044 is inquired,
For inquiring the type of service in pre-set business type list according at least one described characteristic information.
In the technical scheme, the corresponding characteristic information and type of service for being stored with equipment in pre-set business type list,
The corresponding type of service of the characteristic information in the title with equipment inquired in pre-set business type list is setting of scanning
Standby type of service, to realize the type of service for being assured that equipment before connecting with equipment.
In any of the above-described technical solution, it is preferable that at least one described characteristic information includes following one or combinations thereof:
Brand message, type information, serial number, batch coding.
In the technical scheme, at least one characteristic information includes but is not limited to following one or combinations thereof: brand message,
Type information, serial number, batch coding, the industry of the equipment scanned can be accurately inquired according to characteristic information among the above
Service type.
In any of the above-described technical solution, it is preferable that the connection unit 306 includes: judgment sub-unit 3062, for sentencing
It is disconnected to whether there is equipment associated with the type of service;Establish subelement 3064, for if it exists with the type of service
Device address associated with the type of service is then changed to the address of the equipment scanned by associated equipment,
To establish the incidence relation;The subelement 3064 of establishing is also used to, associated with the type of service if it does not exist to set
It is standby, then by type of service storage corresponding with the address of the equipment scanned, to establish the incidence relation.
In any of the above-described technical solution, it is preferable that obtain the name of the equipment scanned in the acquiring unit 302
While title, the acquiring unit 302 is also used to obtain the address of the equipment scanned;Or subelement is established described
3064 when establishing the incidence relation between the type of service and the equipment scanned, and the acquiring unit 302 is also used to
Obtain the address of the equipment scanned.
In any of the above-described technical solution, it is preferable that the connection unit 306 includes: connection subelement 3066, is used for
When the type of service of current application changes, according to the incidence relation, inquire associated with the type of service after change
Device address, and be attached according to the device address.
In the technical scheme, when the type of service of current application changes, pass through the service class after inquiry change
The associated device address of type is connected according between the device address inquired, to ensure that type of service becomes
The rapidity that equipment connects when change.
For example, the type of service of current application is detection body temperature by detection change of blood sugar, then inquire associated with body temperature
The device address of body temperature rifle can be quickly directly attached with body temperature rifle according to the device address.
Fig. 4 shows the structural schematic diagram of the connection system of equipment according to another embodiment of the invention.
As shown in figure 4, equipment according to another embodiment of the invention connects system 400, comprising: scan module 402,
Device management module 404, equipment feature management module 406, appliance services relation management module 408.
Scan module 402: for scanning peripheral equipment, the information of peripheral equipment is obtained.By calling bluetooth scan interface,
The bluetooth equipment on scanning periphery is constantly removed, and by calling the interface of device management module 404 to set what bluetooth equipment was fed back
Standby title, device address, equipment bluetooth protocol version information are passed to device management module 404, directly by all periphery bluetooths
Equipment is scanned.
Device management module 404: for storing the device name after scanning, device address, equipment bluetooth protocol version letter
Breath etc..Connection is established convenient for extracting business information.Device management module 404 receives scan module 402 by calling equipment
After the interface of management module 404 is transmitted through the device name come, device address, equipment bluetooth protocol version information, data is called to deposit
Device name, device address, equipment bluetooth protocol version information are stored in the facility information of application system database by storage interface
In table.The device name that scan module 402 is passed to by device management module 404 is according to " brand encodes (2)+model and compiles
Code (2)+equipment serial number (6) " rule splits into brand message, type information and the big item of information of serial number three, then adjusts
Brand message, type information, serial number and device address identification bluetooth is passed to the interface of equipment feature management module 406 to set
Standby type of service.
Equipment feature management module 406: the characteristic information of the equipment for management business type association, to identify scanning
Type of service associated by the bluetooth equipment arrived.The type of service of user's input, brand message, type information correspondence are deposited in advance
Storage.Device management module 404 can call the interface of equipment feature management module 406 to be passed to brand message, type information, serial number
And device address, then brand message is compared with the corresponding brand message of each type of service prestored, if compare
As a result consistent with the brand message of the bluetooth equipment scanned for the corresponding brand message of only one type of service, then it can determine
The type of service of the bluetooth equipment scanned is the type of service in comparing result.If the result compared is to have multiple types of service
The brand message of the corresponding bluetooth equipment scanned, then be compared, if only one industry of comparison result according to type information
It is corresponding with the type of service that the bluetooth equipment then can be confirmed in service type, if there is multiple types of service, defaults with first industry
Service type.This feelings should be avoided when the type of service of user's input, brand message, type information are corresponded to storage in advance
Condition, or increase more characteristic informations and carry out screening item to handle this problem.After determining the associated type of service of bluetooth equipment
The interface of appliance services relation management module 408 is called to be passed to device address and type of service for saving or updating type of service
With the incidence relation of bluetooth equipment.
Appliance services relation management module 408: for bluetooth equipment corresponding to management business type.Receiving equipment
Behind address and type of service, appliance services relation management module 408 can execute query sentence of database, inquire incoming service class
Whether type has device address.If so, then executing database update sentence, the associated device address of type of service is updated.If no,
Database insertion sentence is then executed, database is written into type of service and associated device address, to establish or update
The incidence relation of type of service and equipment.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, can not only neatly connect equipment, can be with
It is effectively shortened the time of connection equipment, to ensure that the speed of connection equipment, and then improves the usage experience of user.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of equipment connection method characterized by comprising
In scanning device, the title of the equipment scanned is obtained;
According to the title of the equipment scanned, the type of service of the equipment scanned is inquired;
The incidence relation between the type of service and the equipment scanned is established, and is set according to incidence relation connection
It is standby;
It the step of incidence relation established between the type of service and the equipment scanned, specifically includes:
Judge whether there is equipment associated with the type of service;
Equipment associated with the type of service if it exists then changes the address of equipment associated with the type of service
For the address of the equipment scanned, to establish the incidence relation;
Equipment associated with the type of service if it does not exist, then by the ground of the type of service and the equipment scanned
The corresponding storage in location, to establish the incidence relation.
2. equipment connection method according to claim 1, which is characterized in that the name according to the equipment scanned
It the step of claiming, inquiring the type of service of the equipment scanned, specifically includes:
It is split according to title of the preset rules to the equipment scanned, to obtain at least one characteristic information;
According at least one described characteristic information, the type of service is inquired in pre-set business type list.
3. equipment connection method according to claim 2, which is characterized in that at least one described characteristic information includes following
One or a combination set of: brand message, type information, serial number, batch coding.
4. equipment connection method according to claim 1, which is characterized in that described to connect equipment according to the incidence relation
The step of, it specifically includes:
When the type of service of current application changes, according to the incidence relation, inquire and the type of service phase after change
Associated device address, and be attached according to the device address.
5. equipment connection method according to claim 1, which is characterized in that further include:
While obtaining the title of the equipment scanned, the address of the equipment scanned is obtained;Or
In the incidence relation established between the type of service and the equipment scanned, the equipment scanned is obtained
Address.
6. a kind of equipment connects system characterized by comprising
Acquiring unit, for obtaining the title of the equipment scanned in scanning device;
Query unit inquires the type of service of the equipment scanned for the title according to the equipment scanned;
Connection unit, the incidence relation for establishing between the type of service and the equipment scanned, and according to described
Incidence relation connects equipment;
The connection unit includes:
Judgment sub-unit, for judging whether there is equipment associated with the type of service;
Subelement is established, it, then will be associated with the type of service for equipment associated with the type of service if it exists
The address of equipment be changed to the address of the equipment scanned, to establish the incidence relation;
The subelement of establishing is also used to, if it does not exist equipment associated with the type of service, then by the type of service
Storage corresponding with the address of the equipment scanned, to establish the incidence relation.
7. equipment according to claim 6 connects system, which is characterized in that the query unit includes:
Subelement is split, for splitting according to title of the preset rules to the equipment scanned, to obtain at least one
A characteristic information;
Subelement is inquired, for inquiring the business in pre-set business type list according at least one described characteristic information
Type.
8. equipment according to claim 7 connects system, which is characterized in that at least one described characteristic information includes following
One or a combination set of: brand message, type information, serial number, batch coding.
9. equipment according to claim 6 connects system, which is characterized in that the connection unit includes:
Subelement is connected, for according to the incidence relation, inquiring and changing when the type of service of current application changes
The associated device address of type of service afterwards, and be attached according to the device address.
10. equipment according to claim 6 connects system, which is characterized in that
While the acquiring unit obtains the title of the equipment scanned, the acquiring unit is also used to obtain described
The address of the equipment scanned;Or
It is described establish the incidence relation that subelement is established between the type of service and the equipment scanned when, it is described to obtain
Unit is taken to be also used to obtain the address of the equipment scanned.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610645888.3A CN106100904B (en) | 2016-08-09 | 2016-08-09 | Equipment connection method connects system with equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610645888.3A CN106100904B (en) | 2016-08-09 | 2016-08-09 | Equipment connection method connects system with equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106100904A CN106100904A (en) | 2016-11-09 |
CN106100904B true CN106100904B (en) | 2019-06-18 |
Family
ID=57457090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610645888.3A Active CN106100904B (en) | 2016-08-09 | 2016-08-09 | Equipment connection method connects system with equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106100904B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111063183B (en) * | 2019-12-25 | 2021-03-19 | 宁波三星医疗电气股份有限公司 | Bluetooth-based electric energy meter statistical method and device and storage medium |
CN114297436A (en) * | 2021-01-14 | 2022-04-08 | 海信视像科技股份有限公司 | Display device and user interface theme updating method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101355797A (en) * | 2007-07-25 | 2009-01-28 | 华为技术有限公司 | Method for obtaining user terminal equipment information and communication service function entity |
CN101378408A (en) * | 2008-10-10 | 2009-03-04 | 深圳华为通信技术有限公司 | Method, apparatus, gateway and proxy for pushing message to multiple terminals |
CN101557381A (en) * | 2008-04-11 | 2009-10-14 | 华为技术有限公司 | Method and equipment for obtaining user equipment capability |
CN105323079A (en) * | 2014-05-27 | 2016-02-10 | 中国电信股份有限公司 | Method for managing Internet-of-Things system, and intelligent terminal |
-
2016
- 2016-08-09 CN CN201610645888.3A patent/CN106100904B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101355797A (en) * | 2007-07-25 | 2009-01-28 | 华为技术有限公司 | Method for obtaining user terminal equipment information and communication service function entity |
CN101557381A (en) * | 2008-04-11 | 2009-10-14 | 华为技术有限公司 | Method and equipment for obtaining user equipment capability |
CN101378408A (en) * | 2008-10-10 | 2009-03-04 | 深圳华为通信技术有限公司 | Method, apparatus, gateway and proxy for pushing message to multiple terminals |
CN105323079A (en) * | 2014-05-27 | 2016-02-10 | 中国电信股份有限公司 | Method for managing Internet-of-Things system, and intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106100904A (en) | 2016-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102789682B (en) | A kind of method and system of remote control home electrical appliance | |
CN100385855C (en) | System and its method for central remote automatic upgrading software | |
US9532196B2 (en) | Method for implementing unstructured supplementary service data service | |
JP3810053B2 (en) | Method and apparatus for configuring software heterogeneous for electronic devices | |
CN101977382B (en) | Audio and video integrated control circuit and method for accessing access point | |
CN108259209A (en) | Method for configuring network equipment and device | |
CN101610501A (en) | Device firmware upgrade system and method, device management server and portable terminal | |
EP2096790B1 (en) | Management of communication functions of terminals | |
US5031207A (en) | Method of establishing a data link between a pair of terminals as well as a terminal which is suitable for implementing this method | |
CN109041140A (en) | It is switched fast wireless network methods, Intelligent hardware and terminal device | |
CN105847565A (en) | Emergency communication number determination method and device | |
EP2685780B1 (en) | Mobile phone and data processing method therefor | |
CN106100904B (en) | Equipment connection method connects system with equipment | |
CN111901793B (en) | UICC application setting information management method and system, UICC smart card and terminal | |
CN106973162A (en) | A kind of intelligent terminal system version-switching method and device | |
CN102811272B (en) | Updating method, updating apparatus and communication terminal | |
CN105407202A (en) | Method and terminal for remote query of contact information | |
CN103237050B (en) | Intelligent sound exchange method and system | |
CN100531431C (en) | Device for realizing maintenance of far end radio frequency terminal by local maintenance terminal | |
JP2001211258A (en) | TRANSLATION PATTERN MAPPING METHOD IN No.7 GATE STATION SIGNAL NETWORK | |
CN100531197C (en) | Method for realizing network configuration interface for opening mobile communication service | |
CN104168555A (en) | Communication prompting method and device | |
CN105848137B (en) | A kind of card writing method and device | |
CA2611466C (en) | Systems and methods for managing services for carrier subscribers and migrating them to service bundles | |
CN105827637A (en) | Method and system for configuring IMS (IP Multimedia Subsystem) fixed phone number |
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 |