CN106878917B - Information transmission control method, system, terminal and data acquisition unit - Google Patents

Information transmission control method, system, terminal and data acquisition unit Download PDF

Info

Publication number
CN106878917B
CN106878917B CN201510920226.8A CN201510920226A CN106878917B CN 106878917 B CN106878917 B CN 106878917B CN 201510920226 A CN201510920226 A CN 201510920226A CN 106878917 B CN106878917 B CN 106878917B
Authority
CN
China
Prior art keywords
bluetooth
data
terminal
data packet
protocol type
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
Application number
CN201510920226.8A
Other languages
Chinese (zh)
Other versions
CN106878917A (en
Inventor
吴世杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201510920226.8A priority Critical patent/CN106878917B/en
Publication of CN106878917A publication Critical patent/CN106878917A/en
Application granted granted Critical
Publication of CN106878917B publication Critical patent/CN106878917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an information transmission control method, a system, a terminal and a data acquisition device, wherein the method comprises the following steps: receiving a starting instruction input by a Bluetooth module in a terminal; acquiring N Bluetooth data packet transmission protocol types supported by a terminal, and generating N data packet identity information according to the N Bluetooth data packet transmission protocol types, wherein N is a positive integer; sending a Bluetooth pairing request to the periphery of the terminal, wherein the Bluetooth pairing request comprises N data packet identity information, so that a data acquisition unit receives the Bluetooth pairing request and selects a target Bluetooth communication protocol type according to the N data packet identity information; and receiving the target Bluetooth communication protocol type sent by the data acquisition unit, and carrying out data communication with the data acquisition unit according to the target Bluetooth communication protocol type. The method can enable different external Bluetooth devices to be compatible for communication, improves the rate and success rate of data packet transmission, and improves the convenience of user use.

Description

Information transmission control method, system, terminal and data acquisition unit
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a system, a terminal, and a data collector for controlling information transmission.
Background
In life, most users can choose to use bluetooth pairing communication to transmit data packets between devices. In the related art, a Bluetooth module in a device such as a mobile phone or a tablet computer generally implements transmission of a data packet through an SPP (Serial Port Profile) protocol, an OPP (Object Push Profile) protocol or a BLE (Bluetooth Low Energy) protocol.
However, when the communication terminal implements packet transmission by using one of the bluetooth transmission protocols, the following problems may occur: on one hand, the situation that the user cannot use data packet transmission or uses a non-optimal transmission method after the Bluetooth pairing is successful is easily caused, so that the transmission rate is reduced; on the other hand, the Bluetooth communication device is not compatible with various mobile phones, tablet computers and the like to transmit data packets, so that inconvenience is brought to users.
Disclosure of Invention
The present invention has been made to solve at least one of the technical problems of the related art to some extent.
To this end, a first object of the present invention is to propose a method for controlling the transmission of information. The method can enable different external Bluetooth devices to be compatible for communication, improves the rate and success rate of data packet transmission, and improves the convenience of user use.
A second object of the present invention is to provide another information transmission control method.
A third object of the present invention is to provide a terminal.
The fourth purpose of the invention is to provide a data collector.
A fifth object of the present invention is to provide a transmission control system of information.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a method for controlling information transmission, including the following steps: receiving a starting instruction input by a Bluetooth module in a terminal; acquiring N Bluetooth data packet transmission protocol types supported by the terminal, and generating N data packet identity information according to the N Bluetooth data packet transmission protocol types, wherein N is a positive integer; sending a Bluetooth pairing request to the periphery of the terminal, wherein the Bluetooth pairing request comprises the identity information of the N data packets, so that data collectors around the terminal receive the Bluetooth pairing request and select a target Bluetooth communication protocol type according to the identity information of the N data packets; and receiving the target Bluetooth communication protocol type sent by the data acquisition unit, and carrying out data communication with the data acquisition unit according to the target Bluetooth communication protocol type.
According to the information transmission control method of the embodiment of the invention, an opening instruction input aiming at a Bluetooth module in a terminal is received, N data packet identity information is generated according to N Bluetooth data packet transmission protocol types supported by the acquired terminal, a Bluetooth pairing request carrying the N data packet identity information is sent to the periphery of the terminal, a data acquisition device can select a target Bluetooth communication protocol type according to the N data packet identity information and send the target Bluetooth communication protocol type to the terminal when receiving the request, the terminal carries out data communication with the data acquisition device according to the received target Bluetooth communication protocol type sent by the data acquisition device, namely, a plurality of Bluetooth communication protocols are prestored in the data acquisition device, the best Bluetooth communication protocol is selected from the plurality of Bluetooth communication protocols in the data acquisition device by acquiring the Bluetooth communication protocol type supported by the terminal, and according to the best Bluetooth communication protocol, the Bluetooth data communication between the two devices is realized, the transmission rate and the success rate of data packets are improved, different external Bluetooth devices can be in compatible communication, and the use convenience of users is improved.
In order to achieve the above object, a second embodiment of the present invention provides a method for controlling information transmission, including the following steps: receiving a starting instruction input by a Bluetooth module in a data acquisition unit, and sending a Bluetooth pairing request to the periphery of the data acquisition unit, wherein the Bluetooth pairing request comprises an acquisition request of a Bluetooth data packet transmission protocol type, so that a terminal around the data acquisition unit acquires N Bluetooth data packet transmission protocol types supported by the terminal according to the acquisition request, and generates N data packet identity information according to the N Bluetooth data packet transmission protocol types, wherein N is a positive integer; receiving the identity information of the N data packets sent by the terminal, and selecting a target Bluetooth communication protocol type according to the identity information of the N data packets; and carrying out data communication with the terminal according to the type of the target Bluetooth communication protocol.
According to the information transmission control method of the embodiment of the invention, an opening instruction input by a Bluetooth module in a data collector is received, a Bluetooth pairing request is sent to the periphery of the data collector, the request comprises an acquisition request of a Bluetooth data packet transmission protocol type, so that a terminal acquires N Bluetooth data packet transmission protocol types supported by the terminal according to the acquisition request, selects a target Bluetooth communication protocol type according to the Bluetooth data packet transmission protocol type supported by the terminal, and communicates with the terminal according to the target Bluetooth communication protocol type, namely, a plurality of Bluetooth communication protocols are prestored in the data collector, an optimal Bluetooth communication protocol is selected from the plurality of Bluetooth communication protocols in the data collector by acquiring the Bluetooth communication protocol type supported by the terminal, and Bluetooth data communication between two devices is realized according to the optimal Bluetooth communication protocol, the transmission rate and the success rate of the data packet are improved, different external Bluetooth devices can be in compatible communication, and the use convenience of a user is improved.
To achieve the above object, a third embodiment of the present invention provides a terminal, including: the receiving module is used for receiving an opening instruction input by the Bluetooth module in the terminal; the generating module is used for acquiring N Bluetooth data packet transmission protocol types supported by the terminal and generating N data packet identity information according to the N Bluetooth data packet transmission protocol types, wherein N is a positive integer; a sending module, configured to send a bluetooth pairing request to the periphery of the terminal, where the bluetooth pairing request includes the identity information of the N data packets, so that a data collector receives the bluetooth pairing request and selects a target bluetooth communication protocol type according to the identity information of the N data packets; and the data communication module is used for receiving the target Bluetooth communication protocol type sent by the data acquisition unit and carrying out data communication with the data acquisition unit according to the target Bluetooth communication protocol type.
According to the terminal of the embodiment of the invention, the receiving module can receive an opening instruction input by a Bluetooth module in the terminal, the generating module can generate N data packet identity information according to N Bluetooth data packet transmission protocol types supported by the terminal, the sending module sends a Bluetooth pairing request carrying the N data packet identity information to the periphery of the terminal, the data collector can select a target Bluetooth communication protocol type according to the N data packet identity information when receiving the request, the data communication module carries out data communication with the data collector according to the target Bluetooth communication protocol type sent by the data collector, namely, a plurality of Bluetooth communication protocols are prestored in the data collector, and the best Bluetooth communication protocol is selected from the plurality of Bluetooth communication protocols in the data collector by acquiring the Bluetooth communication protocol type supported by the terminal, and according to the best Bluetooth communication protocol, the Bluetooth data communication between the two devices is realized, the transmission rate and the success rate of data packets are improved, different external Bluetooth devices can be in compatible communication, and the use convenience of users is improved.
To achieve the above object, a fourth aspect of the present invention provides a data collector, including: the first receiving module is used for receiving an opening instruction input by the Bluetooth module in the data acquisition unit; the data acquisition device comprises a sending module and a receiving module, wherein the sending module is used for sending a Bluetooth pairing request to the periphery of the data acquisition device, the Bluetooth pairing request comprises an acquisition request of a Bluetooth data packet transmission protocol type, so that a terminal acquires N Bluetooth data packet transmission protocol types supported by the terminal according to the acquisition request and generates N data packet identity information according to the N Bluetooth data packet transmission protocol types, and N is a positive integer; the second receiving module is used for receiving the identity information of the N data packets sent by the terminal; the selection module is used for selecting the type of a target Bluetooth communication protocol according to the identity information of the N data packets; and the data communication module is used for carrying out data communication with the terminal according to the type of the target Bluetooth communication protocol.
According to the data collector of the embodiment of the invention, the first receiving module can receive an opening instruction input by a Bluetooth module in the data collector, the sending module sends a Bluetooth pairing request to the periphery of the data collector, the request comprises an acquisition request of a Bluetooth data packet transmission protocol type, so that the terminal can acquire N Bluetooth data packet transmission protocol types supported by the terminal according to the acquisition request, the selecting module selects a target Bluetooth communication protocol type according to the Bluetooth data packet transmission protocol type supported by the terminal, the data communication module communicates with the terminal according to the target Bluetooth communication protocol type, namely, a plurality of Bluetooth communication protocols are prestored in the data collector, and the best Bluetooth communication protocol is selected from the plurality of Bluetooth communication protocols in the data collector by acquiring the Bluetooth communication protocol type supported by the terminal, and according to the best Bluetooth communication protocol, the Bluetooth data communication between the two devices is realized, the transmission rate and the success rate of data packets are improved, different external Bluetooth devices can be in compatible communication, and the use convenience of users is improved.
To achieve the above object, a fifth embodiment of the present invention provides an information transmission control system, including: a terminal according to the embodiment of the third aspect of the present invention and a data collector according to the embodiment of the fourth aspect of the present invention.
According to the information transmission control system of the embodiment of the invention, a terminal can receive an opening instruction input by a Bluetooth module in the terminal, the acquired N Bluetooth data packet transmission protocol types supported by the terminal are generated into N data packet identity information, a Bluetooth pairing request carrying the N data packet identity information is sent to the periphery of the terminal, a data acquisition device can select a target Bluetooth communication protocol type according to the N data packet identity information and send the target Bluetooth communication protocol type to the terminal when receiving the request, the terminal communicates with the data acquisition device according to the target Bluetooth communication protocol type, namely, a plurality of Bluetooth communication protocols are prestored by the data acquisition device, an optimal Bluetooth communication protocol is selected from a plurality of Bluetooth communication protocols in the data acquisition device by acquiring the Bluetooth communication protocol type supported by the terminal, and Bluetooth data communication between two devices is realized according to the optimal Bluetooth communication protocol, the transmission rate and the success rate of the data packet are improved, different external Bluetooth devices can be in compatible communication, and the use convenience of a user is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which,
fig. 1 is a flowchart of a transmission control method of information according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for controlling transmission of information according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to another embodiment of the present invention;
fig. 5 is a flowchart of a transmission control method of information according to still another embodiment of the present invention; fig. 6 is a flowchart of a method for controlling transmission of information according to another embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a data collector according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a data collector according to another embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a data collector according to yet another embodiment of the present invention;
FIG. 10 is a schematic structural diagram of a data collector according to yet another embodiment of the present invention;
fig. 11 is a schematic structural diagram of a system for controlling information transmission according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes an information transmission control method, a terminal, a data acquisition device, and an information transmission control system according to an embodiment of the present invention with reference to the drawings.
Fig. 1 is a flowchart of a transmission control method of information according to an embodiment of the present invention. It should be noted that the information transmission control method according to the embodiment of the present invention can be described from the terminal side.
As shown in fig. 1, the information transmission control method may include:
s101, receiving a starting instruction input by a Bluetooth module in the terminal.
In the embodiment of the present invention, the terminal may include, but is not limited to, a mobile phone, a tablet computer, a personal digital assistant, and other hardware devices with various operating systems.
Specifically, a user can start a bluetooth function in the terminal device in a manual mode, a voice mode and the like on the terminal device, and when a start instruction input by the user is detected, a bluetooth module in the terminal can be started.
S102, N Bluetooth data packet transmission protocol types supported by the terminal are obtained, and N data packet identity information is generated according to the N Bluetooth data packet transmission protocol types, wherein N is a positive integer.
In the embodiment of the present invention, the bluetooth packet transmission protocol type may include, but is not limited to, an SPP protocol type, a BLE protocol type, an OPP protocol type, and the like.
It can be understood that the bluetooth module in each terminal stores one or more bluetooth packet protocols, and the terminal performs bluetooth communication with the external device through the stored protocol. Therefore, when the terminal starts the bluetooth module, the terminal can acquire the bluetooth packet transfer protocol type supported (or stored) by the terminal itself, and generate corresponding packet identity information according to the bluetooth packet transfer protocol type, where the packet identity information may include the identity of the corresponding bluetooth packet transfer protocol, and may also include information such as the size of a packet to be transferred. That is, the bluetooth packet transmission protocol represented by the identity can be found according to the identity, for example, the identity is OPP, the corresponding protocol is OPP, the identity is SPP, the corresponding protocol is SPP, the identity is BLE, and the corresponding protocol is BLE.
S103, a Bluetooth pairing request is sent to the periphery of the terminal, wherein the Bluetooth pairing request comprises N data packet identity information, so that data collectors around the terminal receive the Bluetooth pairing request and select a target Bluetooth communication protocol type according to the N data packet identity information.
It can be understood that the bluetooth packet transfer protocol in the bluetooth protocol system is divided into four layers according to the attention degree of the SIG specification: 1) core protocol: BaseBand, LMP, L2CAP, SDP; 2) cable replacement protocol: RFCOMM; 3) telephony delivery control protocol: TCS-Binary, AT command set; 4) selecting a protocol: PPP, UDP/TCP/IP, OBEX, WAP, vCard, vCal, IrMC, WAE. In addition to the protocol layers described above, the SIG specification defines a Host Controller Interface (HCI) that may provide a command interface for the baseband controller, connection manager, hardware status, and control registers. Wherein HCI can be located at the lower layer of L2CAP, and HCI can also be located at the upper layer of L2 CAP. The bluetooth core protocol consists of a bluetooth specific protocol established by the SIG. Most bluetooth devices require a core protocol (plus a wireless portion), while other protocols are dependent on the needs of the application. In summary, the cable replacement protocol, the telephony control protocol and the adopted protocol constitute an application-oriented protocol on the basis of the core protocol.
In the embodiment of the present invention, a bluetooth pairing request may be sent to the periphery of the terminal through an SDP protocol in any one of bluetooth transport protocols supported by the terminal, where the request carries the packet identity information. The data acquisition unit can scan through an SDP protocol when starting a Bluetooth module of the data acquisition unit, and can select an optimal Bluetooth communication protocol type as a target Bluetooth communication protocol type according to data packet identity information in a request when receiving a Bluetooth pairing request sent by the terminal.
In the embodiment of the present invention, the target bluetooth communication protocol type is selected by the data collector according to the priority levels corresponding to the multiple bluetooth packet transfer protocols and the identity information of the N packets, where the priority levels corresponding to the multiple bluetooth packet transfer protocols are determined by the data collector in advance according to the performance of the multiple bluetooth packet transfer protocol types.
That is to say, the data collector may select a bluetooth packet transfer protocol with the highest performance from a plurality of bluetooth packet transfer protocols pre-stored by the data collector according to the packet identity information corresponding to the bluetooth communication protocol type supported by the terminal, and use the bluetooth packet transfer protocol as a target bluetooth communication protocol.
And S104, receiving the target Bluetooth communication protocol type sent by the data acquisition unit, and carrying out data communication with the data acquisition unit according to the target Bluetooth communication protocol type.
Specifically, the terminal may receive a target bluetooth communication protocol type fed back by the data collector through an SDP protocol in the bluetooth transport protocol, and may perform data communication with the data collector according to the target bluetooth communication protocol type when the terminal and a user of the data collector confirm bluetooth pairing. That is, the terminal may first send its own packet identity information to the data collector via the SDP protocol in any (or the most basic) bluetooth transport protocol supported by the terminal, and the data collector selects a target bluetooth communication protocol type according to the packet identity information and provides the target bluetooth communication protocol type to the terminal. And after receiving the target Bluetooth communication protocol type, the terminal can carry out data communication with the data acquisition unit according to the target Bluetooth communication protocol type. In the embodiment of the present invention, the data collector may be a terminal, such as a mobile phone, a tablet computer, and the like, so as to realize a function of transmitting data such as files, images, and the like between two different terminals; the data acquisition unit can also be data acquisition equipment with real-time data acquisition and processing functions, and the data acquisition unit can be communicated with the terminal through a Bluetooth communication protocol so as to acquire data such as files, sensors and the like in the terminal through Bluetooth communication.
In the embodiment of the invention, the file transmission mode can be entered through a logical link control and adaptation protocol (L2CAP), a call Service Discovery Protocol (SDP) and a cable replacement protocol (RFCOMM) in a target Bluetooth communication protocol, so that files in various formats can be transmitted between a terminal and a data collector.
According to the information transmission control method of the embodiment of the invention, an opening instruction input by a user for a Bluetooth module in a terminal is received, N data packet identity information is generated according to N acquired Bluetooth data packet transmission protocol types supported by the terminal, a Bluetooth pairing request carrying the N data packet identity information is sent to the periphery of the terminal, a data acquisition unit can select a target Bluetooth communication protocol type according to the N data packet identity information and send the target Bluetooth communication protocol type to the terminal when receiving the request, the terminal performs data communication with the data acquisition unit according to the received target Bluetooth communication protocol type sent by the data acquisition unit, namely, a plurality of Bluetooth communication protocols are prestored in the data acquisition unit, an optimal Bluetooth communication protocol is selected from the plurality of Bluetooth communication protocols in the data acquisition unit by acquiring the Bluetooth communication protocol type supported by the terminal, and according to the best Bluetooth communication protocol, the Bluetooth data communication between the two devices is realized, the transmission rate and the success rate of data packets are improved, different external Bluetooth devices can be in compatible communication, and the use convenience of users is improved.
Further, in an embodiment of the present invention, in the process of performing data communication with the data collector according to the target bluetooth communication protocol type, the information transmission control method further includes: judging whether an operation instruction for initializing the data acquisition unit by a user is received; and if the operation instruction is received, initializing the data acquisition unit and synchronizing the position and time of the terminal and the setting information of the sensor. The terminal can acquire the position information of the terminal through a GPS positioning system of the terminal, and can acquire the time information of the terminal through a timer of the terminal. Further, the sensor may be, but is not limited to, a temperature sensor, a light-sensitive sensor, and the like.
That is, in the process of performing data communication with the data collector according to the type of the target bluetooth communication protocol, that is, in the process of waiting for a transmission instruction of a user, it is determined whether an operation instruction for initializing the data collector by the user is received, and if so, the data collector is initialized, and information such as setting information (such as setting parameters) of a position, time, a temperature sensor, a light-sensitive sensor, and the like in the terminal is synchronized to the data collector.
In order to make the present invention more clearly understood by those skilled in the art, the following may illustrate the implementation process of the information transmission control method according to the embodiment of the present invention. Fig. 2 is a flowchart of a method for controlling information transmission according to an embodiment of the present invention.
For example, as shown in fig. 2, a user may start a bluetooth function of a terminal device such as a mobile phone, a tablet computer, etc. to prepare a bluetooth pairing data collector (S201). After the bluetooth module of the terminal is turned on, the bluetooth packet transfer protocol types supported by the terminal itself may be acquired (S202), and corresponding packet identity information, such as identity ID ═ OPP, identity ID ═ SPP, identity ID ═ BLE, and the like, may be generated according to these types, and a bluetooth pairing request carrying the packet identity information is sent to the surroundings through any one of the bluetooth packet transfer protocols supported by the data collector itself, and when receiving the request, the data collector may select an optimal bluetooth communication protocol type according to the packet identity information (S203). Waiting for user pairing confirmation or a transfer instruction (S204). When the pairing is successful and an operation instruction for initializing the data collector is received (S205), the data collector may be initialized and parameter information of the terminal, such as a position, time, and a sensor, may be synchronized (S206). Thereafter, the packet transfer per frame through the target bluetooth communication protocol type (i.e., the optimal bluetooth communication protocol type) may be started according to the information transfer instruction (S207). Whether the frame data is successfully transmitted is detected (S208), if so, whether a data packet is successfully transmitted is detected (S209), and if so, the method returns to the step S204 with a new transmission instruction. It is understood that if there is frame loss data, the process returns to step S207, and if there is a frame loss data packet, the process returns to step S208.
That is, the data collector can switch the bluetooth communication protocol packet according to different data packet identity information. If the identity ID is OPP, bluetooth data communication can be carried out with the terminal through the OPP protocol, and if the identity ID is SPP, bluetooth data communication can be carried out with the terminal through the SPP protocol, and if the identity ID is BLE, bluetooth data communication can be carried out with the terminal through the BLE protocol.
Therefore, the information transmission control method of the embodiment of the invention can scan the Bluetooth module in the terminal by a rapid data packet protocol, and selects the best protocol transmission mode by receiving the protocol scanning result of the terminal and analyzing the data size through the data acquisition unit, so that the terminal and the data acquisition unit realize the Bluetooth data communication through lower power consumption, and the use experience of a user is improved.
Corresponding to the information transmission control methods provided in the foregoing embodiments, an embodiment of the present invention further provides a terminal, and since the terminal provided in the embodiment of the present invention corresponds to the information transmission control methods provided in the foregoing embodiments, embodiments of the information transmission control methods described above are also applicable to the terminal provided in this embodiment, and are not described in detail in this embodiment. Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 3, the terminal may include: a receiving module 110, a generating module 120, a transmitting module 130 and a data communication module 140.
Specifically, the receiving module 110 may be configured to receive an opening instruction input for a bluetooth module in the terminal.
The generating module 120 may be configured to obtain N bluetooth packet transfer protocol types supported by the terminal, and generate N data packet identity information according to the N bluetooth packet transfer protocol types, where N is a positive integer. In the embodiment of the present invention, the bluetooth packet transmission protocol type may include, but is not limited to, an SPP protocol type, a BLE protocol type, an OPP protocol type, and the like.
The sending module 130 may be configured to send a bluetooth pairing request to the periphery of the terminal, where the bluetooth pairing request includes N data packet identity information, so that the data collector receives the bluetooth pairing request and selects a target bluetooth communication protocol type according to the N data packet identity information.
In the embodiment of the present invention, the target bluetooth communication protocol type is selected by the data collector according to the priority levels corresponding to the multiple bluetooth packet transfer protocols and the identity information of the N packets, where the priority levels corresponding to the multiple bluetooth packet transfer protocols are determined by the data collector in advance according to the performance of the multiple bluetooth packet transfer protocol types.
The data communication module 140 may be configured to receive a target bluetooth communication protocol type sent by the data collector, and perform data communication with the data collector according to the target bluetooth communication protocol type.
Further, in an embodiment of the present invention, as shown in fig. 4, the terminal may further include a determining module 150 and an initializing module 160.
Specifically, the determining module 150 may be configured to determine whether an operation instruction for initializing the data collector is received in a process that the data communication module 140 performs data communication with the data collector according to the target bluetooth communication protocol type. The initialization module 160 may be configured to initialize the data collector and synchronize the position and time of the terminal and the setting information of the sensor when the determination module 150 determines that the operation instruction is received.
According to the terminal of the embodiment of the invention, the receiving module can receive an opening instruction input by a Bluetooth module in the terminal, the generating module can generate N data packet identity information according to N Bluetooth data packet transmission protocol types supported by the terminal, the sending module sends a Bluetooth pairing request carrying the N data packet identity information to the periphery of the terminal, the data collector can select a target Bluetooth communication protocol type according to the N data packet identity information when receiving the request, the data communication module carries out data communication with the data collector according to the target Bluetooth communication protocol type sent by the data collector, namely, a plurality of Bluetooth communication protocols are prestored in the data collector, and the best Bluetooth communication protocol is selected from the plurality of Bluetooth communication protocols in the data collector by acquiring the Bluetooth communication protocol type supported by the terminal, and according to the best Bluetooth communication protocol, the Bluetooth data communication between the two devices is realized, the transmission rate and the success rate of data packets are improved, different external Bluetooth devices can be in compatible communication, and the use convenience of users is improved.
In order to implement the above embodiments, the present invention further provides another information transmission control method.
Fig. 5 is a flowchart of a transmission control method of information according to still another embodiment of the present invention. It should be noted that the information transmission control method according to the embodiment of the present invention may be described from a data acquisition side.
As shown in fig. 5, the information transmission control method may include:
s501, receiving a starting instruction input by a Bluetooth module in the data acquisition unit.
For example, the bluetooth function in the data collector can be started by the user through manual or voice on the data collector, and when the start instruction input by the user is detected, the bluetooth module of the data collector can be started.
S502, a Bluetooth pairing request is sent to the periphery of the data acquisition unit, wherein the Bluetooth pairing request comprises an acquisition request of a Bluetooth data packet transmission protocol type, so that the terminals around the data acquisition unit acquire N Bluetooth data packet transmission protocol types supported by the terminals according to the acquisition request, and generate N data packet identity information according to the N Bluetooth data packet transmission protocol types, wherein N is a positive integer.
In the embodiment of the present invention, the bluetooth packet transmission protocol type may include, but is not limited to, an SPP protocol type, a BLE protocol type, an OPP protocol type, and the like.
Specifically, a bluetooth pairing request may be sent to the surroundings through an SDP protocol in any one of the bluetooth packet transfer protocols in the data collector, where the request includes an acquisition request of the type of the bluetooth packet transfer protocol. When the terminal scans and receives the Bluetooth pairing request, all Bluetooth data packet transmission protocol types supported by the terminal can be acquired according to the acquisition request, and corresponding data packet identity information is generated according to the Bluetooth data packet transmission protocol types, wherein the data packet identity information can contain the identity of the corresponding Bluetooth data packet transmission protocol and can also contain information such as the size of a data packet to be transmitted. That is, the bluetooth packet transmission protocol represented by the identity can be found according to the identity, for example, the identity ID ═ OPP, the corresponding protocol is OPP protocol, the identity ID ═ SPP, the corresponding protocol is SPP protocol, the identity ID ═ BLE, and the corresponding protocol is BLE protocol.
In the embodiment of the present invention, after the terminal generates the packet identity information, the terminal may feed back the packet identity information to the data collector through a bluetooth packet transmission protocol of the terminal itself (the protocol may be the most common and basic protocol, and the protocol may be corresponding to the protocol used when the data collector previously sent the pairing request).
S503, receiving the N data packet identity information sent by the terminal, and selecting the target Bluetooth communication protocol type according to the N data packet identity information.
Preferably, in an embodiment of the present invention, the priority levels corresponding to a plurality of bluetooth packet transmission protocols may be determined in advance according to the performance of the bluetooth packet transmission protocol types stored in advance in the data collector, where a high-performance protocol corresponds to a higher priority level, and a low-performance protocol corresponds to a lower priority level. The performance may refer to a data transfer rate, a minimum power consumption, and the like
Specifically, in the embodiment of the present invention, after receiving the packet identity information sent by the terminal, the bluetooth packet transfer protocol type with the highest priority level among the N bluetooth packet transfer protocol types may be obtained according to the priority levels corresponding to the multiple bluetooth packet transfer protocols and the N packet identity information, and the bluetooth packet transfer protocol type with the highest priority level may be selected as the target bluetooth communication protocol type.
That is to say, the data collector may select a bluetooth packet transfer protocol with the highest performance from a plurality of bluetooth packet transfer protocols pre-stored by the data collector according to the packet identity information corresponding to the bluetooth communication protocol type supported by the terminal, and use the bluetooth packet transfer protocol as a target bluetooth communication protocol.
And S504, performing data communication with the terminal according to the type of the target Bluetooth communication protocol.
Specifically, after the target bluetooth communication protocol type is selected, the bluetooth protocol in the data collector may be switched to the target bluetooth communication protocol, that is, the data collector may switch the bluetooth communication protocol packet according to the identity information of different data packets, and when the terminal and the user of the data collector confirm bluetooth pairing, may establish bluetooth connection with the terminal according to the target bluetooth communication protocol type, and perform data communication. For example, if the identity ID is OPP, bluetooth data communication may be performed with the terminal through the OPP protocol, and if the identity ID is SPP, bluetooth data communication may be performed with the terminal through the SPP protocol, and if the identity ID is BLE, bluetooth data communication may be performed with the terminal through the BLE protocol.
Further, in an embodiment of the present invention, in the process of performing data communication with the data collector according to the target bluetooth communication protocol type, the information transmission control method may further include: judging whether an operation instruction for initializing the data acquisition unit is received; and if the operation instruction is received, initializing the data acquisition unit and synchronizing the position and time of the terminal and the setting information of the sensor. The terminal can acquire the position information of the terminal through a GPS positioning system of the terminal, and can acquire the time information of the terminal through a timer of the terminal. Further, the sensor may be, but is not limited to, a temperature sensor, a light-sensitive sensor, and the like.
That is, in the process of performing data communication with the data collector according to the type of the target bluetooth communication protocol, that is, in the process of waiting for a transmission instruction of a user, the data collector may determine whether an operation instruction for initializing the data collector by the user is received, if so, initialize the data collector, and synchronize information such as setting information (such as setting parameters) of a position, time, a temperature sensor, a light-sensitive sensor, and the like in the terminal to the data collector. It is understood that, in the embodiment of the present invention, the data collector may also be automatically initialized and enter the standby state after the data packet is completely transferred.
Optionally, in an embodiment of the present invention, in the process of performing data communication with the data collector according to the target bluetooth communication protocol type, the information transmission control method may further include: acquiring identification information of a terminal; and establishing a corresponding relation between the identification information of the terminal and the data packet identity information corresponding to the target Bluetooth communication protocol type, and storing the corresponding relation. That is, the data collector can store the data packet identity information of the successfully paired devices, so that the pairing time can be saved when the device is started next time.
According to the information transmission control method of the embodiment of the invention, an opening instruction input by a Bluetooth module in a data collector is received, a Bluetooth pairing request is sent to the periphery of the data collector, the request comprises an acquisition request of a Bluetooth data packet transmission protocol type, so that a terminal acquires N Bluetooth data packet transmission protocol types supported by the terminal according to the acquisition request, selects a target Bluetooth communication protocol type according to the Bluetooth data packet transmission protocol type supported by the terminal, and communicates with the terminal according to the target Bluetooth communication protocol type, namely, a plurality of Bluetooth communication protocols are prestored in the data collector, an optimal Bluetooth communication protocol is selected from the plurality of Bluetooth communication protocols in the data collector by acquiring the Bluetooth communication protocol type supported by the terminal, and Bluetooth data communication between two devices is realized according to the optimal Bluetooth communication protocol, the transmission rate and the success rate of the data packet are improved, different external Bluetooth devices can be in compatible communication, and the use convenience of a user is improved.
In order to make the skilled person in the art understand the present embodiment more clearly, the following may illustrate the implementation process of the information transmission control method of the present embodiment.
For example, as shown in fig. 6, a user may start a bluetooth function of a data collector to prepare for being searched for pairing by a terminal such as a mobile phone, a tablet computer, etc. (S601). The data acquisition device acquires a protocol type which can be used for a Bluetooth transmission data packet protocol in the terminal (S602), wherein the terminal can generate corresponding data packet identity information according to the Bluetooth transmission data packet protocol type supported by the terminal and sends the data packet identity information to the data acquisition device, so that the data acquisition device can acquire the protocol type which can be used for the Bluetooth transmission data packet protocol in the terminal according to the data packet identity information. Then, a target bluetooth communication protocol type may be selected according to the packet identity information, and the target bluetooth communication protocol type is enabled for bluetooth communication, for example, when the identity ID is OPP, the target bluetooth communication protocol type is OPP, when the identity ID is SPP, the target bluetooth communication protocol type is SPP, and when the identity ID is BLE, the target bluetooth communication protocol type is BLE (S603). The data collector can also switch the Bluetooth communication protocol packet according to different data packet identities. Waiting for user pairing confirmation or a transfer instruction (S604). When the pairing is successful and an operation instruction for initializing the data collector is received (S605), the data collector may be initialized and parameter information of the terminal, such as a position, time, and a sensor, may be synchronized (S606). Thereafter, the packet transfer per frame through the target bluetooth communication protocol type (i.e., the optimal bluetooth communication protocol type) may be started according to the information transfer instruction (S607). Whether the frame data is successfully transmitted is detected (S608), if so, whether a data packet is successfully transmitted is detected (S609), and if so, the method returns to step S604 and carries a new transmission instruction. It is understood that if there is frame loss data, the process returns to step S607, and if there is a frame loss data packet, the process returns to step S608.
In summary, the data collector adds a protocol type for judging an available data packet in a currently paired bluetooth device (i.e., the above-mentioned terminal), and selects a target data packet communication protocol from a plurality of bluetooth communication protocols pre-stored by the data collector according to data packet identity information corresponding to the protocol type, so that all devices with bluetooth data packet communication protocols (such as but not limited to mobile phones, tablets, notebook computer handheld devices, etc.) are compatible, protocols can be intelligently and accurately switched, devices compatible with different external bluetooth data transmission devices can be achieved, the purpose of reducing transmission power consumption can be achieved, and resources of the communication terminal are effectively utilized.
Corresponding to the information transmission control methods (data collector sides) provided in the foregoing embodiments, an embodiment of the present invention further provides a data collector, and since the data collector provided in the embodiment of the present invention corresponds to the information transmission control methods (data collector sides) provided in the foregoing embodiments, the implementation manner of the information transmission control method (data collector side) is also applicable to the data collector provided in the embodiment, and is not described in detail in this embodiment. Fig. 7 is a schematic structural diagram of a data collector according to an embodiment of the present invention. As shown in fig. 7, the data acquisition module may include: a first receiving module 210, a sending module 220, a second receiving module 230, a selecting module 240 and a data communication module 250.
Specifically, the first receiving module 210 can be used to receive a start instruction input by the bluetooth module in the data collector.
The sending module 220 may be configured to send a bluetooth pairing request to the periphery of the data collector, where the bluetooth pairing request includes an acquisition request of a bluetooth data packet transfer protocol type, so that the terminal acquires N bluetooth data packet transfer protocol types supported by the terminal according to the acquisition request, and generates N data packet identity information according to the N bluetooth data packet transfer protocol types, where N is a positive integer.
Further, in embodiments of the present invention, the bluetooth packet transfer protocol type may include, but is not limited to, an SPP protocol type, a BLE protocol type, an OPP protocol type, and the like.
The second receiving module 230 may be configured to receive the identity information of the N data packets sent by the terminal.
The selection module 240 may be configured to select a target bluetooth communication protocol type based on the N packet identity information.
The data communication module 250 may be used to communicate data with the terminal according to the target bluetooth communication protocol type.
Further, in an embodiment of the present invention, as shown in fig. 8, the data collector may further include a preprocessing module 260, and the preprocessing module 260 may be configured to determine priority levels corresponding to a plurality of bluetooth packet transmission protocols in advance according to performances of the plurality of bluetooth packet transmission protocol types. In the embodiment of the present invention, a specific implementation process of the selection module 240 for selecting the target bluetooth communication protocol type according to the identity information of the N packets may be as follows: and acquiring the Bluetooth data packet transmission protocol type with the highest priority level in the N Bluetooth data packet transmission protocol types according to the priority levels corresponding to the plurality of Bluetooth data packet transmission protocols and the identity information of the N data packets, and selecting the Bluetooth data packet transmission protocol type with the highest priority level as the target Bluetooth communication protocol type.
Further, in an embodiment of the present invention, as shown in fig. 9, the data collector may further include: a decision block 270 and an initialization block 280.
Specifically, the determining module 270 may be configured to determine whether an operation instruction for initializing the data collector is received in a process that the data communication module 250 performs data communication with the terminal according to the target bluetooth communication protocol type.
The initialization module 280 may be configured to initialize the data collector and synchronize the position and time of the terminal and the setting information of the sensor when the determining module 270 determines that the operation instruction is received.
Further, in an embodiment of the present invention, as shown in fig. 10, the data collector may further include: an acquisition module 290 and a storage module 2100.
Specifically, the obtaining module 290 may be configured to obtain the identification information of the terminal during the data communication module 250 performs data communication with the terminal according to the target bluetooth communication protocol type.
The storage module 2100 may be configured to establish a correspondence between the identification information of the terminal and the packet identity information corresponding to the target bluetooth communication protocol type, and store the correspondence.
According to the data collector of the embodiment of the invention, the first receiving module can receive an opening instruction input by a Bluetooth module in the data collector, the sending module sends a Bluetooth pairing request to the periphery of the data collector, the request comprises an acquisition request of a Bluetooth data packet transmission protocol type, so that the terminal can acquire N Bluetooth data packet transmission protocol types supported by the terminal according to the acquisition request, the selecting module selects a target Bluetooth communication protocol type according to the Bluetooth data packet transmission protocol type supported by the terminal, the data communication module communicates with the terminal according to the target Bluetooth communication protocol type, namely, a plurality of Bluetooth communication protocols are prestored in the data collector, and the best Bluetooth communication protocol is selected from the plurality of Bluetooth communication protocols in the data collector by acquiring the Bluetooth communication protocol type supported by the terminal, and according to the best Bluetooth communication protocol, the Bluetooth data communication between the two devices is realized, the transmission rate and the success rate of data packets are improved, different external Bluetooth devices can be in compatible communication, and the use convenience of users is improved.
In order to implement the above embodiments, the present invention further provides an information transmission control system.
Fig. 11 is a schematic structural diagram of a system for controlling information transmission according to an embodiment of the present invention. As shown in fig. 11, the information transmission control system may include: a terminal 100 and a data collector 200.
Specifically, the specific functional description of the terminal 100 may refer to the specific functional description of the terminal shown in fig. 3 and 4 described above. And will not be described in detail herein.
The detailed functional description of the data collector 200 can refer to the detailed functional description of the data collector shown in fig. 7 to 10. And will not be described in detail herein.
According to the information transmission control system of the embodiment of the invention, a terminal can receive an opening instruction input by a Bluetooth module in the terminal, and can generate N data packet ID information according to the acquired N Bluetooth data packet transmission protocol types supported by the terminal, and can send a Bluetooth pairing request carrying the N data packet ID information to the periphery of the terminal, a data acquisition device can select a target Bluetooth communication protocol type according to the N data packet ID information and send the target Bluetooth communication protocol type to the terminal when receiving the request, the terminal can communicate with the data acquisition device according to the target Bluetooth communication protocol type, namely, the data acquisition device prestores a plurality of Bluetooth communication protocols, and selects an optimal Bluetooth communication protocol from the plurality of Bluetooth communication protocols in the data acquisition device by acquiring the Bluetooth communication protocol type supported by the terminal, and realizes Bluetooth data communication between two devices according to the optimal Bluetooth communication protocol, the transmission rate and the success rate of the data packet are improved, different external Bluetooth devices can be in compatible communication, and the use convenience of a user is improved.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (15)

1. A method for controlling information transmission, the method being applied to a terminal, the method comprising the steps of:
receiving a starting instruction input by a Bluetooth module in a terminal;
acquiring N Bluetooth data packet transmission protocol types supported by the terminal, and generating N data packet identity information according to the N Bluetooth data packet transmission protocol types, wherein N is a positive integer;
sending a Bluetooth pairing request to the periphery of the terminal, wherein the Bluetooth pairing request comprises the identity information of the N data packets, so that data collectors around the terminal receive the Bluetooth pairing request and select a target Bluetooth communication protocol type according to the identity information of the N data packets; the data acquisition unit can find the Bluetooth data packet transmission protocol represented by the identity according to the identity; the target Bluetooth communication protocol type is selected by the data collector according to priority levels corresponding to a plurality of Bluetooth data packet transmission protocols and the identity information of the N data packets, wherein the priority levels corresponding to the plurality of Bluetooth data packet transmission protocols are determined by the data collector in advance according to the performance of the plurality of Bluetooth data packet transmission protocol types; and
and receiving the target Bluetooth communication protocol type sent by the data acquisition unit, and carrying out data communication with the data acquisition unit according to the target Bluetooth communication protocol type.
2. The method according to claim 1, wherein the bluetooth packet transfer protocol type includes an SPP protocol type, a BLE protocol type, and an OPP protocol type.
3. The method for controlling transmission of information according to any one of claims 1 to 2, wherein in the process of performing data communication with the data collector according to the target bluetooth communication protocol type, the method further comprises:
judging whether an operation instruction for initializing the data acquisition unit is received;
and if the operation instruction is received, initializing the data acquisition unit and synchronizing the position and time of the terminal and the setting information of the sensor.
4. A method for controlling information transmission is applied to a data acquisition unit, and comprises the following steps:
receiving a starting instruction input by a Bluetooth module in a data acquisition unit;
sending a Bluetooth pairing request to the periphery of the data acquisition unit, wherein the Bluetooth pairing request comprises an acquisition request of a Bluetooth data packet transmission protocol type, so that a terminal around the data acquisition unit acquires N Bluetooth data packet transmission protocol types supported by the terminal according to the acquisition request, and generates N data packet identity information according to the N Bluetooth data packet transmission protocol types, wherein N is a positive integer;
receiving the identity information of the N data packets sent by the terminal, and selecting a target Bluetooth communication protocol type according to the identity information of the N data packets; the data acquisition unit can find the Bluetooth data packet transmission protocol represented by the identity according to the identity; wherein, the selecting the target bluetooth communication protocol type according to the N data packet identity information includes:
determining priority levels corresponding to a plurality of Bluetooth data packet transmission protocols in advance according to the performances of the Bluetooth data packet transmission protocols;
acquiring a Bluetooth data packet transmission protocol type with the highest priority level in the N Bluetooth data packet transmission protocol types according to the priority levels corresponding to the plurality of Bluetooth data packet transmission protocols and the identity information of the N data packets;
selecting the Bluetooth data packet transmission protocol type with the highest priority level as the target Bluetooth communication protocol type; and
and carrying out data communication with the terminal according to the type of the target Bluetooth communication protocol.
5. The method according to claim 4, wherein the Bluetooth packet transfer protocol type includes an SPP protocol type, a BLE protocol type, and an OPP protocol type.
6. The method of controlling transmission of information according to any of claims 4 to 5, wherein in the course of data communication with the terminal according to the target Bluetooth communication protocol type, the method further comprises:
judging whether an operation instruction for initializing the data acquisition unit is received;
and if the operation instruction is received, initializing the data acquisition unit and synchronizing the position and time of the terminal and the setting information of the sensor.
7. The method for controlling transmission of information according to claim 4, wherein in the data communication with the terminal according to the target bluetooth communication protocol type, the method further comprises:
acquiring identification information of the terminal;
and establishing a corresponding relation between the identification information of the terminal and the data packet identity information corresponding to the target Bluetooth communication protocol type, and storing the corresponding relation.
8. A terminal, comprising:
the receiving module is used for receiving an opening instruction input by the Bluetooth module in the terminal;
the generating module is used for acquiring N Bluetooth data packet transmission protocol types supported by the terminal and generating N data packet identity information according to the N Bluetooth data packet transmission protocol types, wherein N is a positive integer;
a sending module, configured to send a bluetooth pairing request to the periphery of the terminal, where the bluetooth pairing request includes the identity information of the N data packets, so that a data collector receives the bluetooth pairing request and selects a target bluetooth communication protocol type according to the identity information of the N data packets; the data acquisition unit can find the Bluetooth data packet transmission protocol represented by the identity according to the identity; the target Bluetooth communication protocol type is selected by the data collector according to priority levels corresponding to a plurality of Bluetooth data packet transmission protocols and the identity information of the N data packets, wherein the priority levels corresponding to the plurality of Bluetooth data packet transmission protocols are determined by the data collector in advance according to the performance of the plurality of Bluetooth data packet transmission protocol types; and
and the data communication module is used for receiving the target Bluetooth communication protocol type sent by the data acquisition unit and carrying out data communication with the data acquisition unit according to the target Bluetooth communication protocol type.
9. The terminal of claim 8, wherein the Bluetooth packet transfer protocol type comprises an SPP protocol type, a BLE protocol type, and an OPP protocol type.
10. The terminal according to any of claims 8 to 9, further comprising:
the judging module is used for judging whether an operation instruction for initializing the data acquisition unit is received or not in the process that the data communication module carries out data communication with the data acquisition unit according to the type of the target Bluetooth communication protocol;
and the initialization module is used for initializing the data acquisition unit and synchronizing the position and time of the terminal and the setting information of the sensor when the judgment module judges that the operation instruction is received.
11. A data collector, comprising:
the first receiving module is used for receiving an opening instruction input by the Bluetooth module in the data acquisition unit;
the data acquisition device comprises a sending module and a receiving module, wherein the sending module is used for sending a Bluetooth pairing request to the periphery of the data acquisition device, the Bluetooth pairing request comprises an acquisition request of a Bluetooth data packet transmission protocol type, so that a terminal acquires N Bluetooth data packet transmission protocol types supported by the terminal according to the acquisition request and generates N data packet identity information according to the N Bluetooth data packet transmission protocol types, and N is a positive integer;
the second receiving module is used for receiving the identity information of the N data packets sent by the terminal;
the selection module is used for selecting the type of a target Bluetooth communication protocol according to the identity information of the N data packets; the data acquisition unit can find the Bluetooth data packet transmission protocol represented by the identity according to the identity; and
the data communication module is used for carrying out data communication with the terminal according to the type of the target Bluetooth communication protocol;
the data collector further comprises:
the pre-processing module is used for determining the priority levels corresponding to a plurality of Bluetooth data packet transmission protocols in advance according to the performance of the types of the plurality of Bluetooth data packet transmission protocols;
wherein the selection module is specifically configured to:
acquiring a Bluetooth data packet transmission protocol type with the highest priority level in the N Bluetooth data packet transmission protocol types according to the priority levels corresponding to the plurality of Bluetooth data packet transmission protocols and the identity information of the N data packets;
and selecting the Bluetooth data packet transmission protocol type with the highest priority level as the target Bluetooth communication protocol type.
12. The data collector of claim 11 wherein the bluetooth packet transfer protocol types comprise an SPP protocol type, a BLE protocol type, and an OPP protocol type.
13. A data collector as claimed in any one of claims 11 to 12, further comprising:
the judging module is used for judging whether an operation instruction for initializing the data acquisition unit is received or not in the process that the data communication module carries out data communication with the terminal according to the type of the target Bluetooth communication protocol;
and the initialization module is used for initializing the data acquisition unit and synchronizing the position and time of the terminal and the setting information of the sensor when the judgment module judges that the operation instruction is received.
14. The data collector of claim 11, further comprising:
the acquisition module is used for acquiring the identification information of the terminal in the process that the data communication module carries out data communication with the terminal according to the type of the target Bluetooth communication protocol;
and the storage module is used for establishing the corresponding relation between the identification information of the terminal and the data packet identity information corresponding to the target Bluetooth communication protocol type and storing the corresponding relation.
15. A system for controlling transmission of information, comprising:
the terminal of any one of claims 8 to 10;
a data collector as claimed in any one of claims 11 to 14.
CN201510920226.8A 2015-12-11 2015-12-11 Information transmission control method, system, terminal and data acquisition unit Active CN106878917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510920226.8A CN106878917B (en) 2015-12-11 2015-12-11 Information transmission control method, system, terminal and data acquisition unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510920226.8A CN106878917B (en) 2015-12-11 2015-12-11 Information transmission control method, system, terminal and data acquisition unit

Publications (2)

Publication Number Publication Date
CN106878917A CN106878917A (en) 2017-06-20
CN106878917B true CN106878917B (en) 2021-07-09

Family

ID=59178065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510920226.8A Active CN106878917B (en) 2015-12-11 2015-12-11 Information transmission control method, system, terminal and data acquisition unit

Country Status (1)

Country Link
CN (1) CN106878917B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3432187B1 (en) * 2017-07-17 2020-10-21 Hewlett-Packard Development Company, L.P. Identity information
CN109788461B (en) * 2017-11-15 2022-06-28 深圳市优必选科技有限公司 Bluetooth dual-mode data communication method and device
CN108206997B (en) * 2017-12-15 2022-03-01 中兴通讯股份有限公司 Bluetooth connection method and device
CN109963354B (en) * 2017-12-26 2021-10-26 新智数字科技有限公司 Intelligent terminal data transmission method and transmission system
CN108833233A (en) * 2018-06-27 2018-11-16 努比亚技术有限公司 Apparatus control method, terminal and computer readable storage medium
CN109068370A (en) * 2018-06-27 2018-12-21 努比亚技术有限公司 Communication means, mobile terminal and computer readable storage medium
CN109525493B (en) * 2018-10-29 2022-01-28 中国联合网络通信集团有限公司 Network path establishing method and device
CN109587669B (en) * 2019-01-16 2022-10-25 平安科技(深圳)有限公司 Bluetooth pairing method and device, readable storage medium and terminal equipment
CN111918250B (en) * 2019-05-09 2023-03-21 阿尔卑斯通信器件技术(上海)有限公司 Bluetooth communicator and Bluetooth communication method
CN110365371A (en) * 2019-07-05 2019-10-22 深圳市声临科技有限公司 The method and its system, electronic equipment that trigger signal realizes translation system control are provided based on bluetooth equipment
CN110460984B (en) * 2019-08-16 2022-07-01 中科微电技术(深圳)有限公司 Multi-Bluetooth control method, system, terminal and storage based on distributed storage
CN111091155B (en) * 2019-12-18 2023-12-15 北京明略软件系统有限公司 ID information pairing method, fusion method, device and storage medium
CN111355787B (en) * 2020-02-20 2022-11-15 北京汽车集团有限公司 Information transmission method and device and electronic equipment
TWI762882B (en) * 2020-03-13 2022-05-01 彥豪金屬工業股份有限公司 Method for replacing a component of a bicycle wireless controlling system and bicycle component and portable device applied thereto
CN111740956B (en) * 2020-05-19 2023-05-26 腾讯科技(深圳)有限公司 Vehicle communication method, device, computer readable medium and electronic equipment
CN112004220A (en) * 2020-09-16 2020-11-27 深圳市锐尔觅移动通信有限公司 Bluetooth connection method and system, Bluetooth device and readable storage medium
CN112689273B (en) * 2020-12-02 2023-02-07 上海哈敦智能科技有限公司 Many masters of BLE bluetooth electric energy meter pass system from passing thoroughly
CN112583818B (en) * 2020-12-08 2021-12-24 清华大学 Adaptive transport protocol selection method and device for mobile Web service
CN113645599A (en) * 2021-08-13 2021-11-12 联想(北京)有限公司 Information processing method based on electronic equipment interaction and first electronic equipment
CN114827302B (en) * 2022-04-06 2024-03-12 广东万颗子智控科技有限公司 Communication protocol adaptation method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222266A (en) * 2007-01-10 2008-07-16 中兴通讯股份有限公司 Document transmission method and device
WO2015099722A1 (en) * 2013-12-26 2015-07-02 Intel Corporation Device pairing

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2001259842A1 (en) * 2000-05-08 2001-11-20 Transilica, Inc. Transmit-only and receive-only bluetooth apparatus and method
CN101484884A (en) * 2006-07-05 2009-07-15 艾格瑞系统有限公司 Systems and methods for multiport communication distribution
CN101494474B (en) * 2008-11-28 2013-11-06 中兴通讯股份有限公司 Method and terminal equipment for automatic connection of Bluetooth vehicle-mounted hands-free equipment
CN104218976B (en) * 2013-06-03 2019-01-08 飞比特公司 Use the self-adapting data transmission equipment and method of bluetooth
CN103746975A (en) * 2013-12-26 2014-04-23 小米科技有限责任公司 Method of data transmission, device and mobile terminal
TWI572155B (en) * 2014-05-30 2017-02-21 絡達科技股份有限公司 Multi-role bluetooth device and connection method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222266A (en) * 2007-01-10 2008-07-16 中兴通讯股份有限公司 Document transmission method and device
WO2015099722A1 (en) * 2013-12-26 2015-07-02 Intel Corporation Device pairing

Also Published As

Publication number Publication date
CN106878917A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106878917B (en) Information transmission control method, system, terminal and data acquisition unit
CN106817731B (en) Network switching method of terminal and terminal equipment
EP2557825B1 (en) Methods and apparatus for forming wi-fi p2p group using Wi-Fi Direct
EP3242511B1 (en) Systems and methods for implementing multiple band service discovery
EP3363162B1 (en) Smart channel selection for autonomous group initiators
JP6472202B2 (en) COMMUNICATION SYSTEM, COMMUNICATION METHOD, COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
KR101964077B1 (en) Apparatus and method for connecting bluetooth device in portable terminal
JP6141006B2 (en) Communication device, control method, and program
EP2448366A2 (en) Method for determining a group owner in a wireless network
EP3565308B1 (en) Method and device for registering to a cell
EP3021530B1 (en) Data sending method and device
JP2003234936A (en) Digital camera and method for transferring digital image from the camera
EP2941058B1 (en) Near field communication method and device
EP2959740B1 (en) Communication apparatus, control method thereof, and program
JP6579804B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP7049086B2 (en) Communication equipment, control methods, and programs
US7580704B2 (en) Communication systems and methods for switching communication services
JP7407887B2 (en) Communication device, communication device control method, and program
CN110572508A (en) Address book synchronization method and device, storage medium and electronic equipment
JP2012100171A (en) Communication device, its control method and program
JP6716356B2 (en) Communication device, control method thereof, and program
JP2005333188A (en) Communication method and communication apparatus
JP6853676B2 (en) Communication equipment, control methods, and programs
JP2005277593A (en) Radio terminal unit, and service search method
JP6709798B2 (en) Communication method, device, program and recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant