CN114980013A - Data channel management method and device based on Bluetooth module, electronic equipment and vehicle - Google Patents

Data channel management method and device based on Bluetooth module, electronic equipment and vehicle Download PDF

Info

Publication number
CN114980013A
CN114980013A CN202110839856.8A CN202110839856A CN114980013A CN 114980013 A CN114980013 A CN 114980013A CN 202110839856 A CN202110839856 A CN 202110839856A CN 114980013 A CN114980013 A CN 114980013A
Authority
CN
China
Prior art keywords
user equipment
command
data channel
commands
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110839856.8A
Other languages
Chinese (zh)
Inventor
王剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor 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 Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202110839856.8A priority Critical patent/CN114980013A/en
Publication of CN114980013A publication Critical patent/CN114980013A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • 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
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • H04W72/566Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient
    • H04W72/569Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient of the traffic information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention provides a data channel management method, a data channel management device, electronic equipment and a vehicle based on a Bluetooth module, wherein the method comprises the following steps: acquiring a command, wherein the command comprises a downlink command sent by user equipment to a vehicle terminal through a data channel, and/or an uplink command sent by the vehicle terminal to the user equipment through the data channel; the commands enter a request queue, and the commands are read and processed in the request queue according to a preset priority sequence, wherein the priority sequence is determined according to the urgency degree and the request time of the commands sent by the user equipment and the vehicle terminal. The embodiment of the invention ensures the orderly use of the information encryption and decryption transmission channels through the preset priority sequence, and simultaneously provides the optimal comfort level for the owner equipment.

Description

Data channel management method and device based on Bluetooth module, electronic equipment and vehicle
Technical Field
The invention relates to the technical field of communication, in particular to a data channel management method and device based on a Bluetooth module, electronic equipment and a vehicle.
Background
With the development of communication technology in the automobile field, more and more users hope to change the control of a traditional remote control key on a vehicle, hope that the vehicle can be remotely controlled only through a mobile phone, such as vehicle operations of unlocking, locking, starting and the like, and further realize a more intelligent convenient operation mode.
In order to realize that a user remotely controls a vehicle through a mobile phone, the prior art adopts the arrangement of a mobile phone Bluetooth digital key, the communication is carried out between the Bluetooth and the vehicle, and the encryption and decryption are carried out through a safety chip of a vehicle end Bluetooth module, so that the safety transmission of information is ensured.
However, in practical application, there is only one information encryption and decryption transmission channel between the mobile phone and the vehicle bluetooth module, and when there is a vehicle-side information uploading mobile phone side and a vehicle-side command issuing side at the same time, data collision may be caused due to the fact that the uplink and downlink commands use the encryption and decryption channels at the same time, which affects normal use of functions.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are provided to provide a bluetooth key-based data channel management method, apparatus, electronic device and readable storage medium that overcome or at least partially solve the above problems.
According to a first aspect of the present invention, there is provided a data channel management method based on a bluetooth module, the method comprising:
acquiring a command, wherein the command comprises a downlink command sent by user equipment to a vehicle terminal through a data channel, and/or an uplink command sent by the vehicle terminal to the user equipment through the data channel;
the commands enter a request queue, and the commands are read and processed in the request queue according to a preset priority sequence, wherein the priority sequence is determined according to the urgency degree and the request time of the commands sent by the user equipment and the vehicle terminal.
Further, the user equipment comprises first user equipment and second user equipment, wherein the first user equipment is vehicle owner equipment which is connected to the vehicle Bluetooth module through the user equipment in advance, and the second user equipment is other equipment connected to the vehicle Bluetooth module.
Further, the priority order is an order determined according to the urgency and the request time for the user equipment and the vehicle terminal to transmit commands, and includes:
after the command enters the request queue, preferentially processing the first downlink command sent by the first user equipment, wherein the first downlink command may be one or several first downlink commands sent by the first user equipment;
after the first downlink command sent by the first user equipment is processed, processing the uplink command sent by the vehicle terminal, wherein the uplink command may be one or more uplink commands sent by the vehicle terminal;
and after the command processing sent by the first user equipment and the vehicle terminal is completed, processing the second downlink command sent by the second user equipment, where the second downlink command may be one or several second downlink commands sent by the second user equipment.
Further, the preferentially processing the first downlink command sent by the first user equipment after the command enters the request queue, where the first downlink command may be one or several first downlink commands sent by the first user equipment, and the first downlink command includes:
after the first downlink commands sent by the first user equipment enter the request queue, determining the sequence for processing the first downlink commands in the request queue according to the delay requirements of the one or more first downlink commands.
Further, after the command sent by the first user equipment and the vehicle terminal is processed, the second downlink command sent by the second user equipment is processed, where the second downlink command may be one or several second downlink commands sent by the second user equipment, and the second downlink command includes:
and after the second downlink commands sent by the second user equipment enter the request queue, determining the sequence for processing the second downlink commands in the request queue according to the sending request time of the one or more second downlink commands.
Further, the entering of the command into a request queue, and the reading processing of the command in the request queue according to a preset priority order, include:
the user equipment or the vehicle terminal sends the command through the data channel, the command enters the request queue, when the command is read according to the preset priority sequence, the command sent by the user equipment or the vehicle terminal enters the data channel, and the vehicle Bluetooth module sets the mark position of the data channel to be 1;
and when the user equipment or the vehicle terminal does not send the command through the data channel, the vehicle Bluetooth module sets the mark position of the data channel to be 0.
Further, the vehicle bluetooth module setting the flag position of the data channel to 1 includes:
when the mark position is set to 1, the command needs to enter the request queue for waiting when the user equipment or the vehicle terminal needs to use the data channel to send the command.
Further, the vehicle bluetooth module setting the flag position of the data channel to 0 includes:
and when the marking position is 0, the commands enter the data channel in sequence according to the preset priority order.
Further, the vehicle bluetooth module sets the mark position of the data channel to 1, and further includes:
when the user equipment or the vehicle terminal continuously occupies the data channel for more than preset time, the mark position of the data channel is 1, and the vehicle Bluetooth module actively disconnects with the user equipment or the vehicle terminal;
and if the user equipment or the vehicle terminal needs to send the command through the data channel again, the user equipment or the vehicle terminal needs to be connected to the vehicle Bluetooth module through the user equipment setting again.
According to a second aspect of the present invention, there is provided a data channel management device based on a bluetooth module, comprising:
the command acquisition module is used for acquiring commands, wherein the commands comprise downlink commands sent by user equipment to a vehicle terminal through a data channel and/or uplink commands sent by the vehicle terminal to the user equipment through the data channel;
and the queue processing module is used for enabling the commands to enter a request queue and reading and processing the commands in the request queue according to a preset priority sequence, wherein the priority sequence is determined according to the urgency degree and the request time for sending the commands by the user equipment and the vehicle terminal.
Further, the queue processing module further comprises:
a first flag bit submodule, configured to send the command through the data channel by the user equipment or the vehicle terminal, where the command enters the request queue, and when the command is read according to the preset priority order, the command sent by the user equipment or the vehicle terminal enters the data channel, and the vehicle bluetooth module sets a flag position of the data channel to 1;
and the second mark position sub-module is used for setting the mark position of the data channel to be 0 by the vehicle Bluetooth module when the user equipment or the vehicle terminal does not send the command through the data channel.
According to a third aspect of the present invention, there is provided an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
a memory for storing a computer program;
and the processor is used for executing the program stored in the memory.
According to a fourth aspect of the present invention, there is provided a vehicle characterized in that the vehicle comprises a data channel management device based on a bluetooth module.
The embodiment of the invention provides a data channel management method, a data channel management device, electronic equipment and a vehicle based on a Bluetooth module, wherein the method comprises the following steps: acquiring a command, wherein the command comprises a downlink command sent by user equipment to a vehicle terminal through a data channel, and/or an uplink command sent by the vehicle terminal to the user equipment through the data channel; the commands enter a request queue, and the commands are read and processed in the request queue according to a preset priority sequence, wherein the priority sequence is determined according to the urgency degree and the request time of the commands sent by the user equipment and the vehicle terminal. The embodiment of the invention ensures the orderly use of the information encryption and decryption transmission channels through the preset priority order, and simultaneously provides the optimal comfort level for the owner equipment.
The vehicle has the same advantages as the above data channel management method, device and electronic device based on the bluetooth module compared with the prior art, and a vehicle is not repeated herein.
The above description is only an overview of the technical solutions of the present invention, and the present invention can be implemented in accordance with the content of the description so as to make the technical means of the present invention more clearly understood, and the above and other objects, features, and advantages of the present invention will be more clearly understood.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a data channel management method based on a bluetooth module according to an embodiment of the present invention;
fig. 2 is a flowchart of step 102 in a data channel management method based on a bluetooth module in fig. 1 according to an embodiment of the present invention;
fig. 3 is a block diagram of a data channel management device based on a bluetooth module according to an embodiment of the present invention;
fig. 4 is a sub-block diagram of a queue processing module in a data channel management device based on a bluetooth module according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The method, the apparatus, the electronic device and the vehicle for managing the data channel based on the bluetooth module according to the embodiments of the present application are described in detail below with reference to the accompanying drawings.
It should be noted that the embodiment of the present invention is applicable to multi-device connection and single-device connection of a bluetooth module.
One embodiment of the present invention relates to a data channel management method based on a bluetooth module, which is applied to a bluetooth digital key corresponding to a vehicle, and the flow of the method is as shown in fig. 1, and the method includes:
step 101, obtaining a command, wherein the command includes a downlink command sent by a user equipment to a vehicle terminal through a data channel, and/or an uplink command sent by the vehicle terminal to the user equipment through the data channel.
It should be noted that, in this embodiment, the obtained command is a downlink command sent by the user equipment to the vehicle terminal through the data channel, and/or the vehicle terminal sends an uplink command to the user equipment through the data channel, where the data channel refers to an information encryption and decryption transmission channel when the bluetooth module (vehicle-mounted bluetooth module) on the vehicle and the bluetooth function in the user equipment (APP client, mobile terminal, etc.) perform bluetooth communication, and the command signal performs data signal transmission through the information encryption and decryption transmission channel, so that the user can remotely control the vehicle through the bluetooth digital key, for example, vehicle operations such as unlocking, locking, starting, and the like.
Further, in this embodiment, the bluetooth module on the vehicle receives the downlink command of the user equipment to operate the vehicle and feed back the downlink command to the user equipment. The vehicle terminal can transmit the issued command to the user equipment through the information encryption and decryption transmission channel and can also send response feedback information to the user equipment, because the user equipment, namely the downlink command sent by the Bluetooth digital key to the vehicle through the Bluetooth module, only the vehicle terminal knows whether the command response is finished or not and feeds back the real-time state of the vehicle in time.
Further, the user equipment in step 101 includes first user equipment and second user equipment, where the first user equipment is the vehicle owner equipment that is set up to be connected to the vehicle bluetooth module through the user equipment (APP or host) in advance, and the second user equipment is other equipment that is connected to the vehicle bluetooth module, and there is only one set vehicle owner equipment.
In summary, in the present embodiment, the limitation on the uplink command and the downlink command includes that the uplink command refers to data transmitted from the vehicle end (vehicle terminal) to the user end (APP, user equipment), and the downlink command refers to data transmitted from the user end (APP, user equipment) to the vehicle end (vehicle terminal).
And 102, enabling the commands to enter a request queue, and reading and processing the commands in the request queue according to a preset priority sequence, wherein the priority sequence is determined according to the urgency degree and the request time of the commands sent by the user equipment and the vehicle terminal.
In the present embodiment, according to the command sent by the user equipment and/or the vehicle terminal in step 101, at this time, the command enters the request queue, and if the channel is not used functionally at this time, the channel can be used immediately by each user equipment. If a channel has a device or function using the transmission information at this time, the function wanting to use the channel at this time needs to wait in a queue. After the channel is used, the queued devices and functions are used in sequence according to the priority or the request.
Further, in step 102, the commands are prioritized, and these preset priority orders determine the order in which a plurality of commands from different or the same devices are processed and executed, and after the commands enter the request queue, the first downlink command sent by the first user equipment is preferentially processed, where the first downlink command may be one or more first downlink commands sent by the first user equipment, and the first user equipment is a vehicle owner device that is preset through an APP or a vehicle terminal.
It should be noted that, in the embodiment of the present application, in order to provide the best comfort for the vehicle owner, the device configured as the vehicle owner is configured to determine the order of processing the commands according to the delay requirement of the commands when waiting for sending the commands in line, although the request time may be slightly later, the default priority has the highest priority, and the command can be sent faster than any other device, when the vehicle owner device sends some commands to the vehicle end, that is, when the vehicle owner device needs to open the trunk, the vehicle can quickly respond and open the trunk after the user needs to press the instruction key, so that a small delay is needed, so that the commands need to be executed with a higher priority, and at this time, the commands need to be prioritized, and the commands with low delay requirement are executed preferentially.
Further, after the first downlink command sent by the first user equipment is processed, at this time, the uplink command sent by the vehicle terminal is processed, wherein the uplink command may be one or more uplink commands sent by the vehicle terminal, that is, the vehicle-side information command is uploaded with a second priority, after the command issued by the vehicle owner equipment is completed, the vehicle-side information command is uploaded with a priority next to that of the vehicle owner equipment, and when there is no vehicle owner equipment command in the queue, data transmission can be performed by using a data channel in preference to other equipment.
Further, after the command processing sent by the first user equipment and the vehicle terminal is completed, a second downlink command sent by a second user equipment is processed, where the second downlink command may be one or more second downlink commands sent by the second user equipment, and the second user equipment is other equipment connected with the vehicle through a bluetooth module except the vehicle owner equipment.
It should be noted that the other devices determine the processed sequence of the second downlink commands according to the sending request time of one or more second downlink commands, and the owner device does not need to perform priority processing according to the request time.
It should be noted that, in practical application, when the devices a and B are connected to the vehicle at the same time, the device a has been set in advance as the owner device, and the a and B have 4 commands in total and need to use the information encryption and decryption transmission channel, the device a corresponds to the first downlink command 1 and the first downlink command 2, the device B corresponds to the second downlink command 3 and the second downlink command 4, and assuming that the 4 commands are queued to use the channel at this time, according to the owner device priority principle, no matter who the commands of the device a and the device B first enter the queue, the command of the device a preferentially uses the channel. Assuming that the priority of the first downlink command 2 is higher than that of the first downlink command 1, the priority of the first downlink command 2 is higher according to the command module priority principle, so that the first downlink command 2 preferentially uses the channel, and the first downlink command 1 can continue to use the channel after the first downlink command 2 finishes using the channel. The device B is not the owner device, so the priority principle of the command module does not need to be followed, and the command of the device B only needs to use the channels in sequence according to the request time sequence.
Further, as shown in fig. 2, the step 102 of entering the command into a request queue, and performing read processing on the command in the request queue according to a preset priority order includes:
step 1021, the user equipment or the vehicle terminal sends the command through the data channel, the command enters the request queue, when the command is read according to the preset priority sequence, the command sent by the user equipment or the vehicle terminal enters the data channel, and the vehicle bluetooth module sets the mark position of the data channel to be 1.
Further, when the flag position is set to 1, and the user equipment or the vehicle terminal needs to send a command using the data channel, the command needs to enter the request queue to wait.
When the user equipment or the vehicle terminal continuously occupies the data channel for more than the preset time, the marking position of the data channel is 1, and the vehicle Bluetooth module actively disconnects from the user equipment or the vehicle terminal; if the user equipment or the vehicle terminal needs to send the command through the data channel again, the user equipment or the vehicle terminal needs to be connected to the vehicle Bluetooth module through the user equipment setting again. When the device continuously occupies the data channel for more than the time T, the device is considered to be in fault, the Bluetooth module actively disconnects the device, and when the device is reconnected, the user is required to manually operate and connect the device, so that the problem that the fault device continuously occupies the data channel is solved.
Step 1022, when the user equipment or the vehicle terminal does not send the command through the data channel, the vehicle bluetooth module sets the flag position of the data channel to 0.
Further, when the flag position is 0, the commands enter the data channels in sequence according to a preset priority order.
The embodiment of the invention has the following advantages:
the embodiment of the invention provides a data channel management method based on a Bluetooth module, which comprises the following steps: acquiring a command, wherein the command comprises a downlink command sent by user equipment to a vehicle terminal through a data channel, and/or an uplink command sent by the vehicle terminal to the user equipment through the data channel; the commands enter a request queue, and the commands are read and processed in the request queue according to a preset priority sequence, wherein the priority sequence is determined according to the urgency degree and the request time of the commands sent by the user equipment and the vehicle terminal. The embodiment of the invention ensures the orderly use of the information encryption and decryption transmission channels through the preset priority sequence, and simultaneously provides the optimal comfort level for the owner equipment.
A second embodiment of the present invention relates to a data channel management device based on a bluetooth module, and as described with reference to fig. 3, the device may specifically include:
a command obtaining module 301, configured to obtain a command, where the command includes a downlink command sent by a user equipment to a vehicle terminal through a data channel, and/or an uplink command sent by the vehicle terminal to the user equipment through the data channel;
a queue processing module 302, configured to enter a request queue for the command, and perform read processing on the command in the request queue according to a preset priority order, where the priority order is an order determined according to the urgency degree and request time for sending the command by the user equipment and the vehicle terminal.
Further, the queue processing module 302 further includes:
a first flag bit sub-module 3021, configured to send the command through the data channel by the ue or the vehicle terminal, where the command enters the request queue, and when the command is read according to the preset priority order, the command sent by the ue or the vehicle terminal enters the data channel, and the vehicle bluetooth module sets a flag position of the data channel to 1;
a second flag bit sub-module 3022, configured to set a flag position of the data channel to 0 by the vehicle bluetooth module when the user equipment or the vehicle terminal does not send the command through the data channel.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiment of the invention has the following advantages:
the embodiment of the invention provides a data channel management device based on a Bluetooth module, which is characterized in that a priority order is preset through a command acquisition module 301 and a queue processing module 302, so that user fault equipment is automatically judged, ordered use of information encryption and decryption transmission channels is ensured, the problem that the fault equipment continuously occupies the data channel is solved, and meanwhile, the optimal comfort level is provided for vehicle owner equipment.
Further, based on the same inventive concept, embodiments of the present application further provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and based on the same inventive concept, in an embodiment of the present application, when the processor executes the computer program, any embodiment of the method of the embodiments of the present invention may be implemented.
Since the electronic device described in the embodiment of the present application is a device used for implementing the method according to the embodiment of the present invention, a person skilled in the art can understand the specific structure and the deformation of the device based on the method described in the embodiment of the present invention, and thus details are not described herein. All the devices adopted by the method of the embodiment of the invention belong to the protection scope of the invention.
Further, based on the same inventive concept, the specific embodiment of the present application further provides a vehicle, wherein the vehicle includes the data channel management device based on the bluetooth module.
The vehicle has the same advantages as the data channel management method, device and electronic equipment based on the Bluetooth module compared with the prior art, and the description is omitted here.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
It will be appreciated by those skilled in the art that embodiments of the invention may be provided as methods, apparatus, storable media and processors. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (fransitory media), such as modulated data signals and carrier waves.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data channel management method, the data channel management device, the electronic device and the vehicle based on the bluetooth module provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (13)

1. A data channel management method based on a Bluetooth module is characterized by comprising the following steps:
acquiring a command, wherein the command comprises a downlink command sent by user equipment to a vehicle terminal through a data channel, and/or an uplink command sent by the vehicle terminal to the user equipment through the data channel;
the commands enter a request queue, and the commands are read and processed in the request queue according to a preset priority sequence, wherein the priority sequence is determined according to the urgency degree and the request time of the commands sent by the user equipment and the vehicle terminal.
2. The method according to claim 1, wherein the user equipment comprises a first user equipment and a second user equipment, wherein the first user equipment is an owner equipment which is connected to a vehicle Bluetooth module through the user equipment setting in advance, and the second user equipment is other equipment which is connected to the vehicle Bluetooth module.
3. The method of claim 1, wherein the priority order is an order determined according to urgency and request time for the user equipment and the vehicle terminal to transmit commands comprising:
after the command enters the request queue, preferentially processing the first downlink command sent by the first user equipment, wherein the first downlink command may be one or several first downlink commands sent by the first user equipment;
after the first downlink command sent by the first user equipment is processed, processing the uplink command sent by the vehicle terminal, wherein the uplink command may be one or more uplink commands sent by the vehicle terminal;
and after the command processing sent by the first user equipment and the vehicle terminal is completed, processing the second downlink command sent by the second user equipment, where the second downlink command may be one or several second downlink commands sent by the second user equipment.
4. The method of claim 3, wherein the prioritizing the first downlink command sent by the first user equipment after the command enters the request queue, wherein the first downlink command may be one or several of the first downlink commands sent by the first user equipment, and comprises:
after the first downlink commands sent by the first user equipment enter the request queue, determining the sequence for processing the first downlink commands in the request queue according to the delay requirements of the one or more first downlink commands.
5. The method according to claim 3, wherein after the command sent by the first user equipment and the vehicle terminal is processed, the second downlink command sent by the second user equipment is processed, wherein the second downlink command may be one or several second downlink commands sent by the second user equipment, and the method comprises:
and after the second downlink commands sent by the second user equipment enter the request queue, determining the sequence for processing the second downlink commands in the request queue according to the sending request time of the one or more second downlink commands.
6. The method according to claim 1, wherein the commands enter a request queue, and the reading processing of the commands in the request queue according to a preset priority order comprises:
the user equipment or the vehicle terminal sends the command through the data channel, the command enters the request queue, when the command is read according to the preset priority sequence, the command sent by the user equipment or the vehicle terminal enters the data channel, and the vehicle Bluetooth module sets the mark position of the data channel to be 1;
and when the user equipment or the vehicle terminal does not send the command through the data channel, the vehicle Bluetooth module sets the mark position of the data channel to be 0.
7. The method of claim 6, wherein the vehicle Bluetooth module setting the tag position of the data channel to 1 comprises:
when the mark position is set to 1, the command needs to enter the request queue for waiting when the user equipment or the vehicle terminal needs to use the data channel to send the command.
8. The method of claim 6, wherein the vehicle Bluetooth module setting the tag position of the data channel to 0 comprises:
and when the marking position is 0, the commands enter the data channel in sequence according to the preset priority order.
9. The method of claim 6, wherein the vehicle Bluetooth module sets the tag position of the data channel to 1, further comprising:
when the user equipment or the vehicle terminal continuously occupies the data channel for more than preset time, the mark position of the data channel is 1, and the vehicle Bluetooth module actively disconnects with the user equipment or the vehicle terminal;
and if the user equipment or the vehicle terminal needs to send the command through the data channel again, the user equipment or the vehicle terminal needs to be connected to the vehicle Bluetooth module through the user equipment setting again.
10. A data channel management device based on a Bluetooth module is characterized by comprising:
the command acquisition module is used for acquiring commands, wherein the commands comprise downlink commands sent by user equipment to a vehicle terminal through a data channel and/or uplink commands sent by the vehicle terminal to the user equipment through the data channel;
and the queue processing module is used for enabling the commands to enter a request queue and reading and processing the commands in the request queue according to a preset priority sequence, wherein the priority sequence is determined according to the urgency degree and the request time for sending the commands by the user equipment and the vehicle terminal.
11. The apparatus of claim 10, wherein the queue processing module further comprises:
a first flag bit submodule, configured to send the command through the data channel by the user equipment or the vehicle terminal, where the command enters the request queue, and when the command is read according to the preset priority order, the command sent by the user equipment or the vehicle terminal enters the data channel, and the vehicle bluetooth module sets a flag position of the data channel to 1;
and the second mark position sub-module is used for setting the mark position of the data channel to be 0 by the vehicle Bluetooth module when the user equipment or the vehicle terminal does not send the command through the data channel.
12. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of any one of claims 1 to 9 when executing a program stored in the memory.
13. A vehicle comprising a bluetooth module based data path management apparatus according to any of claims 10-11.
CN202110839856.8A 2021-07-23 2021-07-23 Data channel management method and device based on Bluetooth module, electronic equipment and vehicle Pending CN114980013A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110839856.8A CN114980013A (en) 2021-07-23 2021-07-23 Data channel management method and device based on Bluetooth module, electronic equipment and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110839856.8A CN114980013A (en) 2021-07-23 2021-07-23 Data channel management method and device based on Bluetooth module, electronic equipment and vehicle

Publications (1)

Publication Number Publication Date
CN114980013A true CN114980013A (en) 2022-08-30

Family

ID=82973579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110839856.8A Pending CN114980013A (en) 2021-07-23 2021-07-23 Data channel management method and device based on Bluetooth module, electronic equipment and vehicle

Country Status (1)

Country Link
CN (1) CN114980013A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115811538A (en) * 2023-02-10 2023-03-17 小米汽车科技有限公司 Method, apparatus, system and medium for requesting and processing digital key service
CN117197933A (en) * 2023-10-25 2023-12-08 小米汽车科技有限公司 Control method and device for digital car key and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115811538A (en) * 2023-02-10 2023-03-17 小米汽车科技有限公司 Method, apparatus, system and medium for requesting and processing digital key service
CN115811538B (en) * 2023-02-10 2023-05-16 小米汽车科技有限公司 Method, device, system and medium for requesting and processing digital key service
CN117197933A (en) * 2023-10-25 2023-12-08 小米汽车科技有限公司 Control method and device for digital car key and storage medium

Similar Documents

Publication Publication Date Title
CN114980013A (en) Data channel management method and device based on Bluetooth module, electronic equipment and vehicle
US20210134086A1 (en) Data transmission method in vehicle communication interface apparatus and vehicle communication interface apparatus
EP2530599B1 (en) Method and mobile terminal for realizing audio transmission
CN100382060C (en) An arbitration structure and a method for handling a plurality of memory commands
DE102014209992A1 (en) System and system for interacting with a device in a vehicle and a vehicle
DE112016006544T5 (en) Program update system, program update procedure and computer program
CN108901077B (en) Antenna ratio setting method and device, user equipment and storage medium
CN104468640A (en) Method and device for achieving sharing of cloud storage space
CN109995861B (en) Relay communication method and system for vehicle-mounted system application and vehicle-mounted peripheral device
CN105052077A (en) Method and apparatus for processing information in M2M communications
DE102016110245A1 (en) METHOD AND DEVICE FOR A VEHICLE-TO-MOBILE PHONE COMMUNICATION
CN112000019A (en) Method, device and equipment for sharing equipment instruction control
DE102015102193A1 (en) Communication device, information processing device and control method for these
CN113515420B (en) Test method and test system
CN107239343B (en) Data processing method and device
CN103078926B (en) The file access method of distributed memory system and device and system
US20220358065A1 (en) Data communication method, master device and system
CN115442233A (en) ECU upgrading method and device, electronic equipment, storage medium and vehicle
CN105519055A (en) Dynamic equilibrium method and apparatus for QoS of I/O channel
CN104979001A (en) Memory controller, semiconductor memory device, and control method of memory controller
CN115225681A (en) Multi-robot cooperation method, electronic device, cloud server and storage medium
CN103067053A (en) Method and device for Bluetooth node processing
CN103888632B (en) Image processing equipment and image processing method
WO2018143982A1 (en) Parking management and communication of parking information
US8484182B1 (en) Wireless device content searching

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