CN105307104B - Apparatus interconnection method and system inside and outside a kind of network based on conventional Bluetooth - Google Patents
Apparatus interconnection method and system inside and outside a kind of network based on conventional Bluetooth Download PDFInfo
- Publication number
- CN105307104B CN105307104B CN201510596830.XA CN201510596830A CN105307104B CN 105307104 B CN105307104 B CN 105307104B CN 201510596830 A CN201510596830 A CN 201510596830A CN 105307104 B CN105307104 B CN 105307104B
- Authority
- CN
- China
- Prior art keywords
- central apparatus
- peripheral equipment
- equipment
- network
- peripheral
- 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
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
Abstract
The invention discloses apparatus interconnection method and system inside and outside a kind of network based on conventional Bluetooth, by central apparatus according to the Bluetooth address of each peripheral equipment, successively establish conventional Bluetooth with each peripheral equipment and connect, set up corresponding piconet network;The information whether central apparatus is supported according to the corresponding Bluetooth address of each peripheral equipment and multiple types of service generates corresponding peripheral device service list, completes central apparatus and multiple peripheral equipments correspond to the networking of piconet;Peripheral equipment in network external equipment and network executes business as medium by the central apparatus in network;It is convenient to carry out service communication using any one local device and non-native device, interconnection convenience brings to user and greatly facilitates.
Description
Technical field
The present invention relates to external equipments in intelligent terminal technical field more particularly to a kind of network based on conventional Bluetooth
Interconnecting method and system.
Background technique
With popularizing for electronic equipment, more and more intelligent terminals are widely used by people.Present family and office
There are more and more smart machines in place, such as smart phone, plate, laptop, Bluetooth audio device, bluetooth headset, nothing
Line camera, smart television, Intelligent lamp, intelligent refrigerator, intelligent water heater, intelligence printer etc..User wishes at one's side any
One smart machine can have function specific to other smart machines, for example, user wishes in Operational Note sheet or plate
When also can answer and make a phone call, and do not have to deliberately go for the position of mobile phone;The one simple equipment of configuration is as matchmaker
Interface with and receive Global Navigation Satellite System (GNSS)) data, but itself do not have the ability of processing data, user wishes this
Platform media device transfers data to configuration superior accommodation and goes to be analyzed and be handled.And these demands can be summarized as this
Ground numerous equipment (notebook, plate, configuration superior accommodation) how easily with equipment non-indigenous (the phone other end
Equipment, satellite) effectively interacted.External equipment interaction is inconvenient namely in network.For the demand, existing technology
Even cannot all it meet, user still needs that time and money is spent to go to solve the above problems.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is that providing a kind of apparatus interconnection method inside and outside the network based on conventional Bluetooth
And system, it is intended to solve the problems, such as that local device in the prior art and non-native device interactive operation trouble are inconvenient.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of apparatus interconnection method inside and outside the network based on conventional Bluetooth, wherein include:
A, multiple peripheral equipments are in the state that can be found, and central apparatus finds each peripheral equipment, obtains each periphery
The Bluetooth address of equipment;
B, central apparatus successively establishes conventional Bluetooth company according to the Bluetooth address of each peripheral equipment with each peripheral equipment
It connects;
C, the information whether corresponding multiple types of service are supported is sent to central apparatus by each peripheral equipment, in
The information whether heart equipment is supported according to the corresponding Bluetooth address of each peripheral equipment and multiple types of service generates corresponding outer
Peripheral equipment service lists, complete central apparatus and multiple peripheral equipments correspond to the networking of piconet;
D, the network external equipment outside piconet network and the peripheral equipment in piconet network pass through in piconet network
Central apparatus executes business as medium.
Apparatus interconnection method inside and outside the network based on conventional Bluetooth, wherein the step B is specifically included:
B1, central apparatus successively send connection request signaling to each peripheral equipment, are connected using non-security mode, each
Peripheral equipment successively connects back to letter in reply to central apparatus transmission and enables, and central apparatus is successively assisted with each peripheral equipment in general-purpose accessing
Establish connection on view layer, to set up corresponding piconet, central apparatus becomes host, each peripheral equipment become it is corresponding from
Machine.
Apparatus interconnection method inside and outside the network based on conventional Bluetooth, wherein the step D is specifically included:
D11, network external equipment trigger service request, are sent to central apparatus;
The type of service of each peripheral equipment broadcasting network external equipment request of D12, central apparatus into the piconet;
D13, one of peripheral equipment are accepted business request, and notify central apparatus;
After D14, central apparatus receive the request message of accepting business of peripheral equipment, establishes and apply to corresponding peripheral equipment
Layer connection;When application layer connection is successfully established, network external equipment passes through central apparatus business corresponding with peripheral equipment execution.
Apparatus interconnection method inside and outside the network based on conventional Bluetooth, wherein the step D is specifically included:
D21, peripheral equipment trigger service request, are sent to central apparatus;
D22, central apparatus establish application layer connection to the peripheral equipment according to the corresponding type of service of service request;
D23, central apparatus and network external equipment are established into connection, so that network external equipment and the peripheral equipment pass through center
Equipment executes corresponding business.
Apparatus interconnection system inside and outside a kind of network based on conventional Bluetooth, wherein include:
Discovery module, for being in the state that can be found by multiple peripheral equipments, central apparatus finds that each periphery is set
It is standby, obtain the Bluetooth address of each peripheral equipment;
Networking module, for, according to the Bluetooth address of each peripheral equipment, successively being set with each periphery by central apparatus
It is standby to establish conventional Bluetooth connection;
Service lists generation module, for whether being supported corresponding multiple types of service by each peripheral equipment
Information be sent to central apparatus, central apparatus according to the corresponding Bluetooth address of each peripheral equipment and multiple types of service whether
The information of support generates corresponding peripheral device service list, completes central apparatus and multiple peripheral equipments correspond to piconet
Networking;
Business execution module, for passing through the peripheral equipment in the network external equipment and piconet network outside piconet network
Business is executed as medium by the central apparatus in piconet network.
Apparatus interconnection system inside and outside the network based on conventional Bluetooth, wherein the networking module includes:
Group net unit, for successively sending connection request signaling to each peripheral equipment by central apparatus, using non-peace
Syntype connection, each peripheral equipment successively to central apparatus transmission connects back to letter in reply enable, central apparatus successively with each periphery
Equipment establishes connection on general-purpose accessing protocol layer, and to set up corresponding piconet, central apparatus becomes host, and each periphery is set
It is standby to become corresponding slave.
Apparatus interconnection system inside and outside the network based on conventional Bluetooth, wherein the business execution module includes:
First trigger unit is sent to central apparatus for triggering service request by network external equipment;
Radio unit, for being asked by each peripheral equipment broadcasting network external equipment of the central apparatus into the piconet
The type of service asked;
Business matching unit for accepting business request by one of peripheral equipment, and notifies central apparatus;
First business execution unit, after the request message of accepting business for receiving peripheral equipment by central apparatus, to
Corresponding peripheral equipment establishes application layer connection;When application layer connection is successfully established, network external equipment is by central apparatus and outside
Peripheral equipment executes corresponding business.
Apparatus interconnection system inside and outside the network based on conventional Bluetooth, wherein the business execution module includes:
Second trigger unit is sent to central apparatus for triggering service request by peripheral equipment;
Connection establishment unit, for passing through central apparatus according to the corresponding type of service of service request, to the peripheral equipment
Establish application layer connection;
Second business execution unit, for central apparatus and network external equipment to be established connection so that network external equipment and
The peripheral equipment executes corresponding business by central apparatus.
Apparatus interconnection method and system inside and outside a kind of network based on conventional Bluetooth provided by the present invention, efficiently solve
Existing local device and the inconvenient problem of non-native device interactive operation trouble, that is, external equipment interaction is not in network
It is convenient, it is based on conventional Bluetooth piconet, is in the state that can be found by multiple peripheral equipments, central apparatus finds each periphery
Equipment obtains the Bluetooth address of each peripheral equipment;Central apparatus according to the Bluetooth address of each peripheral equipment, successively with it is each
Peripheral equipment establishes conventional Bluetooth connection, to set up corresponding piconet;Each peripheral equipment is by corresponding multiple business
The information whether type is supported is sent to central apparatus, and central apparatus is according to the corresponding Bluetooth address of each peripheral equipment and multiple
The information whether type of service is supported generates corresponding peripheral device service list, completes central apparatus and multiple peripheral equipments
The networking of corresponding piconet;Network external equipment outside piconet network and the peripheral equipment in piconet network pass through piconet net
Central apparatus in network executes business as medium;By a local equipment as medium, organically by the numerous of local
Equipment and equipment non-indigenous establish connection so that user be convenient to using any one local device and non-native device into
Row service communication, very easy to use and have that multiple equipment is available, interconnection convenience brings greatly side to user
Just.
Detailed description of the invention
Fig. 1 is the process of apparatus interconnection method preferred embodiment inside and outside the network provided by the invention based on conventional Bluetooth
Figure.
Fig. 2 is that equipment constitutes schematic diagram in apparatus interconnection method inside and outside the network provided by the invention based on conventional Bluetooth.
Fig. 3 is networking schematic diagram in apparatus interconnection method inside and outside the network provided by the invention based on conventional Bluetooth.
Fig. 4 is that the process of apparatus interconnection method first embodiment inside and outside the network provided by the invention based on conventional Bluetooth is shown
It is intended to.
Fig. 5 is that the process of apparatus interconnection method second embodiment inside and outside the network provided by the invention based on conventional Bluetooth is shown
It is intended to.
Fig. 6 is the structural frames of apparatus interconnection system preferred embodiment inside and outside the network provided by the invention based on conventional Bluetooth
Figure.
Specific embodiment
The present invention provides apparatus interconnection method and system inside and outside a kind of network based on conventional Bluetooth, to make mesh of the invention
, technical solution and advantage it is clearer, clear, the present invention is described in more detail as follows in conjunction with drawings and embodiments.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Conventional Bluetooth agreement is described in detail first as follows.
The advantages of conventional Bluetooth is that transmitted data amount is larger, and message transmission rate is also very fast, is suitable for a variety of different realities
Border application.The exploitation of conventional Bluetooth agreement is mainly in logic link control and adapting protocol (Logical Link Control
And Adaptation Protocol, L2CAP), it general-purpose accessing protocol layer (Generic Access Profile, GAP) and answers
With layer (Application Profile), will be described respectively below.
According to the conventional Bluetooth agreement that bluetooth alliance issues, logic link control and adapting protocol (Logical Link
Control and Adaptation Protocol, L2CAP) define command format and data format.
About command format: two bluetooth equipments need to interact a series of order in communication process, command channel
General signaling format is as shown in table 1.Table 1 is the general signaling format of command channel.
Table 1
Wherein, Length indicates the byte length of Commands;Channel ID is fixed as 0x0001;In Commands
Code table shows the type of order, and such as connection request (Connection request), (Connection is replied in connection
Response), as shown in table 2;Identifier in Commands is used to matching request and reply;In Commands
Length indicates the byte length of the Data in Commands;Data in Commands indicates to order portable information.
Table 2
About connection request command format, the Commands format of connection request is as shown in table 3.Wherein, PSM indicates association
View/service multiplexing at least accounts for 2 byte lengths;The source Source CID(channel id) it indicates to send the bluetooth equipment of connection request
Channel id.
Table 3
It is as shown in table 4 to connect the Commands format replied.
Table 4
Wherein, the channel id of Destination CID(mesh) it indicates to send the channel id for the bluetooth equipment that connection is replied;
The source Source CID(channel id) it indicates to receive the channel id for the bluetooth equipment that connection is replied, directly from connection request order
Source CID duplication;Result indicate connection request signaling as a result, such as successful connection (Connection
Successful), (Connection pending) undetermined and refusal (Connection refused), as shown in table 5.Table 5
For the result Result value of connection request signaling.
Table 5
In the case of the result of connection request signaling is undetermined, it is original undetermined that result is further described with Status
Cause, as shown in table 6.Table 6 is Status value.
Table 6
About data format: two bluetooth equipments are point-to-point establish connection after, data packet format is as shown in table 7.Wherein,
The byte length of Length expression Information payload;Channel ID indicates the ID of purpose channel, by system dynamic
Distribution;Information payload indicates that packet content, length may be configured as 0 to 65535 bytes.Table 7 is two bluetooths
The point-to-point data packet format of equipment.
Table 7
When three or three or more bluetooth equipment successful connections, Piconet(piconet is formed) when, the data of host transmission
Packet format is as shown in table 8.Table 8 is the data packet format that host is sent in Piconet.Wherein, Length indicate PSM and
The byte total length of Information payload;Channel ID is fixed as 0x0002;PSM presentation protocol/service multiplexing,
It is divided into two parts, first part is fixed to be assigned as agreement by bluetooth alliance, and second part is dynamically distributed by system is used as service,
At least account for 2 byte lengths;Information payload indicates that packet content, length may be configured as 0 to 65533 bytes.
The data packet format that slave is sent in Piconet is as shown in table 7.
Table 8
General-purpose accessing agreement (Generic Access Profile, GAP) define inquiry, can be found, connect, can
It is connected and has connected etc. states and process.
About inquiry with can be found: bluetooth equipment by time division multiplexing mode can inquire simultaneously near bluetooth equipment
With by neighbouring bluetooth equipment discovery, i.e., conventional Bluetooth equipment can concurrently act as query facility (Inquiring device) and
It can discoverable device (Discoverable device).Query facility by inquiry obtain can discoverable device Bluetooth address.
Query facility and can discoverable device may be in connection status with another bluetooth equipment, but still keep
It inquires and function can be found.
About connection with can be connected: bluetooth equipment by time division multiplexing mode can connect simultaneously near bluetooth equipment
It is connected with by neighbouring bluetooth equipment, i.e., bluetooth equipment can concurrently act as connection equipment (Connecting device) and can
Connected equipment (Connectable device).Connect equipment to can connected equipment send connection request (Connection
Request);Can connected equipment to connection equipment send connection reply (Connection Response), as shown in table 9.Even
After being connected into function, the bluetooth equipment initiated the connection becomes host (Master) in a network, and connected bluetooth equipment is in a network
As slave (Slave).Table 9 be connectable device with can connected equipment Signalling exchange.
Table 9
Connection equipment and can connected equipment may be in connection status with another bluetooth equipment, but still holding
It connects and function can be connected.
About connected status: after two bluetooth equipments are successfully connected, character string message can be sent mutually.Two indigo plants
Tooth equipment keep connection while, have inquiry, can be found, connect, can connected function.
About application layer protocol (Application Profile): according to bluetooth leagues dictate, different application layers is corresponding
In different Application Profile, such as phone application layer protocol, Global Navigation Satellite System application layer protocol etc.,
It i.e. on the basis of GAP connection, needs to connect on Application Profile again, just be able to achieve specifically using function
Energy.
Invention defines following 3 kinds of physical device types, as shown in Figure 1.Wherein, central apparatus and all peripheral equipments
In the same network, network external equipment carries out service communication as medium and peripheral equipment by central apparatus.Center is set
Standby: the equipment is in the center inside network;Peripheral equipment: the equipment is in the peripheral position inside network;Outside network
Equipment: the equipment is in outside network.Central apparatus and peripheral equipment 1, peripheral equipment 2 ... peripheral equipment N(N be positive integer and
Less than or equal to 7) being in the same network, which is corresponding conventional Bluetooth piconet network, that is, institute of the present invention
The local device said.Network external equipment and central apparatus communicate to connect, and can remotely connect, that is, of the present invention non-local
Equipment.
Referring to Fig. 1, Fig. 1 is that apparatus interconnection method is preferably implemented inside and outside the network provided by the invention based on conventional Bluetooth
The flow chart of example, as shown, the described method comprises the following steps:
Step S100, multiple peripheral equipments are in the state that can be found, and central apparatus finds each peripheral equipment, obtain each
The Bluetooth address of a peripheral equipment;
Step S200, central apparatus is successively established with each peripheral equipment and is passed according to the Bluetooth address of each peripheral equipment
System bluetooth connection;
Step S300, the information whether corresponding multiple types of service are supported is sent to center by each peripheral equipment
Equipment, the information whether central apparatus is supported according to the corresponding Bluetooth address of each peripheral equipment and multiple types of service generate
Corresponding peripheral device service list, completes central apparatus and multiple peripheral equipments correspond to the networking of piconet;
Step S400, the network external equipment outside piconet network and the peripheral equipment in piconet network pass through piconet net
Central apparatus in network executes business as medium.
Above-mentioned steps are described in detail below with reference to specific embodiment.
In the step s 100, multiple peripheral equipments are in the state that can be found, and central apparatus finds each peripheral equipment, obtains
To the Bluetooth address of each peripheral equipment.Specifically, peripheral equipment and central apparatus specifically refer to various intelligent terminals, such as intelligence
It can TV, wireless acoustics, smart phone, plate, notebook, computer, wireless router, wireless camera, Wireless projector, intelligence
Lamps and lanterns, intelligent refrigerator, intelligent water heater and intelligence printer etc., these intelligent terminals generally all have conventional Bluetooth function.Just
Under beginning state, all peripheral equipments are in " can be found " state, central apparatus " it was found that " all peripheral equipments, while obtaining institute
There is the Bluetooth address of peripheral equipment.
In step s 200, central apparatus is successively built with each peripheral equipment according to the Bluetooth address of each peripheral equipment
It writes a biography bluetooth connection of uniting, to set up corresponding piconet network.Specifically, central apparatus is successively sent to each peripheral equipment
Connection request signaling, is connected using non-security mode, and each peripheral equipment successively connects back to letter in reply to central apparatus transmission and enables, in
Heart equipment successively establishes connection on general-purpose accessing protocol layer with each peripheral equipment, sets up corresponding piconet network, center
Equipment becomes host, and each peripheral equipment becomes corresponding slave.
In step S300, the information whether corresponding multiple types of service are supported is sent to by each peripheral equipment
Central apparatus, the information whether central apparatus is supported according to the corresponding Bluetooth address of each peripheral equipment and multiple types of service,
Corresponding peripheral device service list is generated, central apparatus is completed and multiple peripheral equipments corresponds to the networking of piconet.
In practical application, central apparatus first sends " connection request " signaling to first peripheral equipment, use is non-security
Mode connection (does not need 6 random digit verifyings) in the connection procedure of i.e. two equipment, then first peripheral equipment is in
Heart equipment sends " connection reply " signaling, central apparatus and first peripheral equipment successful connection on GAP layer, central apparatus at
For host, first peripheral equipment becomes slave, and can send mutually character string between central apparatus and peripheral equipment and disappear
Breath.Then, (i.e. slave disappears two point-to-point data packet formats of bluetooth equipment shown in table 7 to host transmission in Piconet
Cease format) on the basis of, customized Information payload therein, as shown in table 10, according to this format, periphery is set
It is standby that the professional ability that information reporting is supported is sent to central apparatus.Table 10 is the self-defining character that peripheral equipment reports professional ability
String message.
Table 10
Wherein, Length indicates the byte length of Information payload;Channel ID indicates purpose channel
ID is dynamically distributed by system;Type indicates that peripheral equipment sends the type of message, and " 00000000 " indicates peripheral equipment to center
Equipment reports professional ability, specific as shown in table 11;The support feelings of the expression of 0 ~ Service of Service 255 type of service
Condition, indicates that peripheral equipment supports the business with " 11111111 ", indicates that peripheral equipment does not support the business with " 00000000 ".Table
11 be Type value and its meaning.
Table 11
Then, central apparatus and other peripheral equipments successively establish GAP layers of connection, set up Piconet(piconet) net
Network, each peripheral equipment report the professional ability of support to central apparatus respectively.Central apparatus integrates the indigo plant of all peripheral equipments
Tooth address and type of service support situation, form peripheral device service list, and as shown in table 12, networking is completed.Table 12 is periphery
Appliance services list.
Table 12
In practical application, central apparatus and all peripheral equipments (at most 7) form Piconet(piconet) network,
After the completion of networking, central apparatus becomes host, and all peripheral equipments become slave, and central apparatus can be set to all peripheries simultaneously
Preparation send message, and each peripheral equipment individually can send message to central apparatus, and entire group network process is as shown in Figure 3.Networking
Purpose be type of service that all peripheral equipments report from support to central apparatus, central apparatus obtains peripheral device service column
Table corresponds to the networking of piconet so as to complete central apparatus and multiple peripheral equipments.
In step S400, the network external equipment outside piconet network and the peripheral equipment in piconet network pass through slightly
Central apparatus in net network executes business as medium.Specifically, after the completion of central apparatus and peripheral equipment networking, in
Heart equipment obtains peripheral device service list, central apparatus and peripheral equipment can be interconnected by conventional Bluetooth.Central apparatus
It is completed after setting up Piconet network with all peripheral equipments, network external equipment communicates to connect central apparatus, in this way, network peripheral hardware
Standby and peripheral equipment carries out business relations as medium by central apparatus.In practical application, according to the service request of user,
Network external equipment outside the piconet network is established into connection with central apparatus, central apparatus is according to the service request pair
The type of service answered inquires the peripheral device service list, finds corresponding peripheral equipment and connects, make network external equipment and
Corresponding peripheral equipment executes business by central apparatus.
In practical application, the interconnection of the equipment in network external equipment and network can be divided into 2 application scenarios.Individually below
It is described in detail as follows.
Further, the step S400 is specifically included:
S411, network external equipment trigger service request, are sent to central apparatus;
The business of each peripheral equipment broadcasting network external equipment request of S412, central apparatus into the piconet network
Type;
S413, one of peripheral equipment are accepted business request, and notify central apparatus;
After S414, central apparatus receive the request message of accepting business of peripheral equipment, answered to the foundation of corresponding peripheral equipment
It is connected with layer;When application layer connection is successfully established, network external equipment passes through central apparatus business corresponding with peripheral equipment execution.
Referring to Fig. 4, Fig. 4 is that apparatus interconnection method first is implemented inside and outside the network provided by the invention based on conventional Bluetooth
The flow diagram of example.After the completion of networking, network external equipment actively triggers service request, after central apparatus receives service request,
It is broadcasted in Piconet network, one of peripheral equipment responds and request of accepting business.Network external equipment and peripheral equipment are logical
Central apparatus is crossed as medium and executes business, as shown in figure 4, network external equipment actively triggers business and peripheral equipment executes business
Process.
Specifically, when network external equipment actively triggers business, after central apparatus receives service request, shown in table 8
Piconet in host send data packet format on the basis of, customized Information payload therein, such as table
Shown in 13, and according to this format, what central apparatus was requested in Piconet network to all peripheral equipment broadcasting network external equipments
Type of service.Table 13 is the self-defining character string message of center device broadcasts network external equipment requested service type.
Table 13
Wherein, Length indicates the byte total length of PSM and Information payload;Channel ID is fixed as
0x0002;PSM presentation protocol/service multiplexing is divided into two parts, and first part is fixed to be assigned as agreement by bluetooth alliance, the
Two parts are dynamically distributed by system is used as service, at least accounts for 2 byte lengths;Information payload(, that is, Service
X) indicate that the type of service of network external equipment request, length are 1 byte.
After all peripheral equipments in Piconet network receive the message of central apparatus broadcast, one of peripheral equipment
It responds and request of accepting business, (the i.e. slave in Piconet of two point-to-point data packet formats of bluetooth equipment shown in the table 7
Message format is sent to host) on the basis of, customized Information payload therein, as shown in table 14, and according to
This format, the peripheral equipment receive network external equipment business request information to central apparatus transmission.Table 14 is peripheral equipment in
Heart equipment sends the self-defining character string message for request of accepting business.
Table 14
Wherein, Length indicates the byte length of Information payload;Channel ID indicates purpose channel
ID is dynamically distributed by system;Type indicate peripheral equipment send message type, " 00000001 " indicate peripheral equipment receive or
Refuse network external equipment service trigger request;Accept is indicated to accept or reject the service request of network external equipment, be used
" 11111111 " indicate that peripheral equipment receives the service request of network external equipment, indicate that peripheral equipment refuses net with " 00000000 "
The service request of network external equipment.
When central apparatus receives disappearing as table 14 is customized for one of peripheral equipment (peripheral equipment 1 in Fig. 4)
After breath, central apparatus is established corresponding according to the type of service of network external equipment trigger request to the peripheral equipment
Profile layers of Application connection.Once Profile layers of Application are established successful connection, network external equipment is just
Business can be executed as medium and peripheral equipment by central apparatus.
In this way, central apparatus by setting up corresponding piconet network, can make network external equipment and corresponding periphery
The business of equipment execution user.
Further, the step S400 is specifically included:
S421, peripheral equipment trigger service request, are sent to central apparatus;
S422, central apparatus establish application layer connection to the peripheral equipment according to the corresponding type of service of service request;
S423, central apparatus and network external equipment are established into connection, so that during network external equipment and the peripheral equipment pass through
Heart equipment executes corresponding business.
Referring to Fig. 5, Fig. 5 is that apparatus interconnection method second is implemented inside and outside the network provided by the invention based on conventional Bluetooth
The flow diagram of example.Peripheral equipment actively triggers business, after central apparatus receives service request, peripheral equipment and network peripheral hardware
Standby to execute business as medium by central apparatus, detailed process is as shown in Figure 5.
Specifically, when peripheral equipment actively triggers business, two point-to-point data of bluetooth equipment shown in table 7
On the basis of packet format (i.e. slave sends message format to host in Piconet), customized Information therein
Payload, as shown in Table 15, and according to this format, which actively triggers service message to central apparatus transmission.Table 15
The self-defining character string message for actively triggering business is sent to central apparatus for peripheral equipment.
Table 15
Wherein, Length indicates the byte length of Information payload;Channel ID indicates purpose channel
ID is dynamically distributed by system;Type indicates that peripheral equipment sends the type of message, and " 00000010 " indicates that peripheral equipment actively touches
Sending service;Service y indicates the type of service that peripheral equipment actively triggers.
After central apparatus receives the service request of peripheral equipment (peripheral equipment 1 in Fig. 5), according to type of service, to this
Peripheral equipment establishes corresponding Application Profile layers of connection.Then central apparatus and network external equipment establish communication,
Peripheral equipment and network external equipment can execute business as medium by central apparatus.
Apparatus interconnection method inside and outside network provided by the invention based on conventional Bluetooth, during networking, central apparatus
Piconet network is established with peripheral equipment, central apparatus can send word by all peripheral equipments into Piconet network simultaneously
Symbol string message, all peripheral equipments individually can send character string message to central apparatus;Piconet is after networks are completed,
Peripheral equipment in network external equipment and network executes business as medium by the central apparatus in network.User can be convenient
Ground executes business using any one local device (peripheral equipment) and non-native device (network external equipment), easy to operate.
Based on apparatus interconnection method inside and outside the above-mentioned network based on conventional Bluetooth, the embodiment of the invention also provides a kind of bases
The apparatus interconnection system inside and outside the network of conventional Bluetooth, as shown in fig. 6, the system comprises:
Discovery module 10, for being in the state that can be found by multiple peripheral equipments, central apparatus finds each periphery
Equipment obtains the Bluetooth address of each peripheral equipment;Specifically as described in step S100;
Networking module 20, for by central apparatus according to the Bluetooth address of each peripheral equipment, successively with each periphery
Equipment establishes conventional Bluetooth connection;Specifically as described in step S200;
Service lists generation module 30, for whether being propped up corresponding multiple types of service by each peripheral equipment
The information held is sent to central apparatus, and central apparatus is according to the corresponding Bluetooth address of each peripheral equipment and multiple types of service
The information of no support generates corresponding peripheral device service list, completes central apparatus and multiple peripheral equipments correspond to piconet
Networking;Specifically as described in step S300;
Business execution module 40 is set for the periphery in the network external equipment and piconet network outside by piconet network
The standby central apparatus by piconet network executes business as medium;Specifically as described in step S400.
Further, the networking module 20 includes:
Group net unit, for successively sending connection request signaling to each peripheral equipment by central apparatus, using non-peace
Syntype connection, each peripheral equipment successively to central apparatus transmission connects back to letter in reply enable, central apparatus successively with each periphery
Equipment establishes connection on general-purpose accessing protocol layer, and to set up corresponding piconet network, central apparatus becomes host, each outer
Peripheral equipment becomes corresponding slave.
Further, the business execution module 40 includes:
First trigger unit is sent to central apparatus for triggering service request by network external equipment;
Radio unit, for being asked by each peripheral equipment broadcasting network external equipment of the central apparatus into the piconet
The type of service asked;
Business matching unit for accepting business request by one of peripheral equipment, and notifies central apparatus;
First business execution unit, after the request message of accepting business for receiving peripheral equipment by central apparatus, to
Corresponding peripheral equipment establishes application layer connection;When application layer connection is successfully established, network external equipment is by central apparatus and outside
Peripheral equipment executes corresponding business.
Further, the business execution module 40 includes:
Second trigger unit is sent to central apparatus for triggering service request by peripheral equipment;
Connection establishment unit, for passing through central apparatus according to the corresponding type of service of service request, to the peripheral equipment
Establish application layer connection;
Second business execution unit, for central apparatus and network external equipment to be established connection so that network external equipment and
The peripheral equipment executes corresponding business by central apparatus.
In conclusion apparatus interconnection method and system inside and outside a kind of network based on conventional Bluetooth provided by the invention, lead to
It crosses multiple peripheral equipments and is in the state that can be found, central apparatus finds each peripheral equipment, obtains the indigo plant of each peripheral equipment
Tooth address;Central apparatus is successively established conventional Bluetooth with each peripheral equipment and is connect according to the Bluetooth address of each peripheral equipment,
Set up corresponding piconet network;The information whether corresponding multiple types of service are supported is sent to by each peripheral equipment
Central apparatus, the information whether central apparatus is supported according to the corresponding Bluetooth address of each peripheral equipment and multiple types of service,
Corresponding peripheral device service list is generated, central apparatus is completed and multiple peripheral equipments corresponds to the networking of piconet;Outside network
Peripheral equipment in equipment and network executes business as medium by the central apparatus in network;Pass through a local equipment
As medium, local numerous equipment and equipment non-indigenous are organically established into connection, so that user is convenient to using appointing
A local device and the non-native device of anticipating carry out service communication, very easy to use and have that multiple equipment is available, mutually
It even facilitates, brings to user and greatly facilitate.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.
Claims (4)
1. a kind of apparatus interconnection method inside and outside network based on conventional Bluetooth characterized by comprising
A, multiple peripheral equipments are in the state that can be found, and central apparatus finds each peripheral equipment, obtains each peripheral equipment
Bluetooth address;
B, central apparatus is successively established conventional Bluetooth with each peripheral equipment and is connect according to the Bluetooth address of each peripheral equipment;
C, the information whether corresponding multiple types of service are supported is sent to central apparatus by each peripheral equipment, and center is set
The standby information whether supported according to the corresponding Bluetooth address of each peripheral equipment and multiple types of service, generates corresponding periphery and sets
Standby service lists, complete central apparatus and multiple peripheral equipments correspond to the networking of piconet;
D, the network external equipment outside piconet network and the peripheral equipment in piconet network pass through the center in piconet network
Equipment executes business as medium;
Wherein, the step D is specifically included,
D11, network external equipment trigger service request, are sent to central apparatus;
The type of service of each peripheral equipment broadcasting network external equipment request of D12, central apparatus into the piconet;
D13, one of peripheral equipment are accepted business request, and notify central apparatus;
After D14, central apparatus receive the request message of accepting business of peripheral equipment, application layer is established to corresponding peripheral equipment and is connected
It connects;When application layer connection is successfully established, network external equipment passes through central apparatus business corresponding with peripheral equipment execution;
Alternatively, the step D is specifically included,
D21, peripheral equipment trigger service request, are sent to central apparatus;
D22, central apparatus establish application layer connection to the peripheral equipment according to the corresponding type of service of service request;
D23, central apparatus and network external equipment are established into connection, so that network external equipment and the peripheral equipment pass through central apparatus
Execute corresponding business.
2. apparatus interconnection method inside and outside the network according to claim 1 based on conventional Bluetooth, which is characterized in that the step
Rapid B is specifically included:
B1, central apparatus successively send connection request signaling to each peripheral equipment, are connected using non-security mode, each periphery
Equipment successively connects back to letter in reply to central apparatus transmission and enables, and central apparatus is successively with each peripheral equipment in general-purpose accessing protocol layer
On establish connection, to set up corresponding piconet, central apparatus becomes host, and each peripheral equipment becomes corresponding slave.
3. apparatus interconnection system inside and outside a kind of network based on conventional Bluetooth characterized by comprising
Discovery module, for being in the state that can be found by multiple peripheral equipments, central apparatus finds each peripheral equipment, obtains
To the Bluetooth address of each peripheral equipment;
Networking module, for, according to the Bluetooth address of each peripheral equipment, successively being built with each peripheral equipment by central apparatus
It writes a biography bluetooth connection of uniting;
Service lists generation module, the letter for whether being supported corresponding multiple types of service by each peripheral equipment
Breath is sent to central apparatus, and whether central apparatus is supported according to the corresponding Bluetooth address of each peripheral equipment and multiple types of service
Information, generate corresponding peripheral device service list, complete central apparatus and multiple peripheral equipments correspond to the networking of piconet;
Business execution module passes through for the peripheral equipment in the network external equipment and piconet network outside by piconet network
Central apparatus in piconet network executes business as medium;
Wherein, the business execution module includes,
First trigger unit is sent to central apparatus for triggering service request by network external equipment;
Radio unit, for each peripheral equipment broadcasting network external equipment request by central apparatus into the piconet
Type of service;
Business matching unit for accepting business request by one of peripheral equipment, and notifies central apparatus;
First business execution unit, after the request message of accepting business for receiving peripheral equipment by central apparatus, to correspondence
Peripheral equipment establish application layer connection;When application layer connection is successfully established, network external equipment is set by central apparatus and periphery
It is standby to execute corresponding business;
Alternatively, the business execution module includes,
Second trigger unit is sent to central apparatus for triggering service request by peripheral equipment;
Connection establishment unit, for, according to the corresponding type of service of service request, being established to the peripheral equipment by central apparatus
Application layer connection;
Second business execution unit, for central apparatus and network external equipment to be established connection, so that network external equipment is outer with this
Peripheral equipment executes corresponding business by central apparatus.
4. apparatus interconnection system inside and outside the network according to claim 3 based on conventional Bluetooth, which is characterized in that described group
Net module includes:
Group net unit, for successively sending connection request signaling to each peripheral equipment by central apparatus, using non-security mould
Formula connection, each peripheral equipment successively to central apparatus transmission connects back to letter in reply enable, central apparatus successively with each peripheral equipment
Establish connection on general-purpose accessing protocol layer, to set up corresponding piconet, central apparatus becomes host, each peripheral equipment at
For corresponding slave.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510596830.XA CN105307104B (en) | 2015-09-18 | 2015-09-18 | Apparatus interconnection method and system inside and outside a kind of network based on conventional Bluetooth |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510596830.XA CN105307104B (en) | 2015-09-18 | 2015-09-18 | Apparatus interconnection method and system inside and outside a kind of network based on conventional Bluetooth |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105307104A CN105307104A (en) | 2016-02-03 |
CN105307104B true CN105307104B (en) | 2019-01-29 |
Family
ID=55203761
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510596830.XA Active CN105307104B (en) | 2015-09-18 | 2015-09-18 | Apparatus interconnection method and system inside and outside a kind of network based on conventional Bluetooth |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105307104B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3451784A4 (en) * | 2016-05-13 | 2019-05-15 | Huawei Technologies Co., Ltd. | Method and apparatus for establishing wireless connection |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103873458A (en) * | 2012-12-13 | 2014-06-18 | 三星电子株式会社 | Device control method for registering device information of peripheral device, and device and system thereof |
CN104661326A (en) * | 2013-11-25 | 2015-05-27 | 诺基亚公司 | Managing Concurrent Connections Between Wireless Dockee Devices In A Wireless Docking Environment |
CN104780499A (en) * | 2015-04-01 | 2015-07-15 | 惠州Tcl移动通信有限公司 | Multi-device intelligent interconnection method and system based on Bluetooth |
-
2015
- 2015-09-18 CN CN201510596830.XA patent/CN105307104B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103873458A (en) * | 2012-12-13 | 2014-06-18 | 三星电子株式会社 | Device control method for registering device information of peripheral device, and device and system thereof |
CN104661326A (en) * | 2013-11-25 | 2015-05-27 | 诺基亚公司 | Managing Concurrent Connections Between Wireless Dockee Devices In A Wireless Docking Environment |
CN104780499A (en) * | 2015-04-01 | 2015-07-15 | 惠州Tcl移动通信有限公司 | Multi-device intelligent interconnection method and system based on Bluetooth |
Also Published As
Publication number | Publication date |
---|---|
CN105307104A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104780499B (en) | A kind of more device intelligence interconnecting methods and system based on bluetooth | |
CN103518418B (en) | A kind of method and apparatus connected between bluetooth equipment | |
CN104540090B (en) | A kind of networking interconnecting method and system based on low-power consumption bluetooth | |
JP5913381B2 (en) | Method for enabling wireless secure communication between devices | |
CN104717603B (en) | A kind of Bluetooth Low Energy networking simultaneously supports the method and system of convenient interconnection | |
CN105635943B (en) | Low-power-consumption Bluetooth beacon data interaction device, beacon device and method | |
CN105050033A (en) | Piconet networking interconnection method and system based on low-power-dissipation Bluetooth and traditional Bluetooth | |
CN103944740B (en) | Communications management system, relay, communication control system, communication system | |
CN110191450A (en) | Business connection establishment method, bluetooth master, chip and Bluetooth system | |
CN104539324B (en) | Bluetooth low-power-consumption networking interconnecting method and system | |
CN104883656B (en) | A kind of method and its system for setting up stable state piconet based on bluetooth | |
WO2014059813A1 (en) | Data transmission method and terminal device | |
EP3005759A1 (en) | Access control for wireless docking | |
CN103179635A (en) | Bluetooth based networking and communication methods for Anddroid mobile equipment | |
WO2022247802A1 (en) | Connection establishment method and apparatus, electronic device, and storage medium | |
EP3005760A1 (en) | Wireless docking architecture | |
CN107005797A (en) | It was found that and management be directed to wireless display system in multiple places isochronous audio or video streaming services | |
AU2008365172A1 (en) | Method for realizing session calling and dynamic grouping based on talkback | |
CN102170679A (en) | Multimachine Bluetooth group communication method based on Android system | |
WO2014189657A1 (en) | Wireless docking | |
CN105187097B (en) | A kind of inside and outside device interoperability realization method and system based on bluetooth | |
CN105246129B (en) | The network-building method and device of a kind of intelligent terminal | |
CN105307104B (en) | Apparatus interconnection method and system inside and outside a kind of network based on conventional Bluetooth | |
WO2023151423A1 (en) | Device connection method and apparatus, device, and storage medium | |
CN103888176A (en) | System and method for playing multimedia streaming |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220128 Address after: 518000 a501, building D4, TCL Science Park, No. 1001, Zhongshan Park Road, Shuguang community, Xili street, Nanshan District, Shenzhen, Guangdong Patentee after: Thunderbird innovation technology (Shenzhen) Co.,Ltd. Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd. |
|
TR01 | Transfer of patent right |