A kind of vehicle-mounted TBOX equipment communication means and device, TBOX equipment and readable storage
Medium
Technical field
The present invention relates to the car networking communications field, in particular to the communication means and device of a kind of vehicle-mounted TBOX equipment,
TBOX equipment and computer readable storage medium.
Background technique
Technology of Internet of things is fast-developing, and car networking is more rapid as the important component development of Internet of Things.
Telematics BOX, abbreviation automobile T-BOX, as a kind of new technology in current car networking field, application is more and more extensive.Vapour
After vehicle loads T-BOX equipment, vehicle condition information can be uploaded backstage by T-BOX equipment, be equipped with vehicle control software application
The mobile terminal of APP can read associated vehicle status information (such as Fuel Oil Remaining, mileage information etc.) by the APP,
User can also issue control instruction (such as carrying out remotely control etc.) by mobile terminal APP, and the control is forwarded to believe from the background
Number give T-BOX equipment, T-BOX equipment again by interior local area network control signal issue controller execute corresponding actions.
Interface of the T-BOX equipment as vehicle correspondence with foreign country, either reports dependent event still to connect to mobile terminal APP
The dependent instruction that issues of APP is received, requiring normally to be resident wireless network being capable of normal correspondence with foreign country.If wireless network occurs different
There is abnormal (such as arrearage) in the SIM card for being often unable to normal communication or T-BOX equipment, and the correspondence with foreign country of T-BOX equipment is just
It can fail, T-BOX equipment just loses itself most important value in this case.If waiting a generation critical event at this time
And it is unable to correspondence with foreign country, it will bring many potential risks, such as vehicle to be stolen to car owner, will be heavy losses to car owner.
Based on the above issues, need to propose a kind of communication means of novel car networking T-BOX equipment, with logical in satisfaction
T-BOX equipment can continue to play a role in the case where creed part.
Summary of the invention
In view of this, the embodiment of the present invention provide a kind of vehicle-mounted TBOX equipment communication means and device, TBOX equipment and
Computer readable storage medium can provide a kind of alternative Blue-tooth communication method, it is ensured that in T-BOX for T-BOX equipment
When the wireless communication link of equipment occurs abnormal, the event information of uplink T-BOX is transmitted by bluetooth communications link
The control instruction information issued with downlink transfer mobile terminal APP, evades potential risks to car owner.
It is as follows that the present invention solves technical solution used by above-mentioned technical problem:
According to an aspect of the present invention, a kind of communication means of the vehicle-mounted T-BOX equipment provided is applied to car networking,
The T-BOX equipment includes wireless communication link and bluetooth communications link, which comprises
Monitor the wireless communication link state of the T-BOX equipment;
When monitoring that wireless communication link is unavailable, by the wireless communication link switching to the bluetooth
Communication link is communicated by the bluetooth communications link with mobile terminal maintenance.
In a possible design, event information of the bluetooth communications link in uplink T-BOX equipment, downlink
The control instruction that transmission mobile terminal is issued by vehicle control software application APP.
In a possible design, the wireless communication link state of the monitoring T-BOX equipment;Include:
Heartbeat packet is sent to mobile terminal by periodicity, monitors the wireless of the T-BOX equipment and the mobile terminal
The connection status of network communication link.
In a possible design, after the heartbeat packet for monitoring to continuously transmit preset times, the shifting is not all received
The reply response of dynamic terminal, then determine wireless communication link fails, wireless communication link is unavailable.
It is described when monitoring that wireless communication link is unavailable in a possible design, by the wireless network
Network communication link switches to the bluetooth communications link, is communicated by the bluetooth communications link with mobile terminal maintenance;
Include:
When monitoring that the wireless communication link is unavailable, start the bluetooth communications link;
The T-BOX equipment initiates the bluetooth connection with mobile terminal according to preset link information;
After the bluetooth connection success of the T-BOX equipment and the mobile terminal, communication mode is switched to and is had been established into
The bluetooth communications link of function;
The T-BOX equipment is communicated using the bluetooth communications link with mobile terminal maintenance.
In a possible design, the bluetooth communications link is the Bluetooth communication chain of 5.0 or 5.0 or more version of bluetooth
Road.
In a possible design, the method also includes: when the T-BOX equipment monitoring to wireless communication chain
When road restores available, the bluetooth communications link is disconnected, the bluetooth communications link is switched into wireless communication link, led to
The wireless communication link is crossed to communicate with mobile terminal maintenance.
According to another aspect of the present invention, a kind of communication device of the vehicle-mounted T-BOX equipment provided is applied to vehicle and joins
Net, the T-BOX equipment include wireless communication link and bluetooth communications link, and described device includes: monitoring modular, switching
Module, in which:
The monitoring modular, for monitoring the wireless communication link state of the T-BOX equipment;
The switching module, for when monitoring that wireless communication link is unavailable, by the wireless communication
Link switching is communicated by the bluetooth communications link with mobile terminal maintenance to the bluetooth communications link.
According to another aspect of the present invention, a kind of vehicle-mounted TBOX equipment provided characterized by comprising memory,
Processor and it is stored in the computer program that can be run on the memory and on the processor, the computer program quilt
The processor realizes a kind of step of the communication means of vehicle-mounted T-BOX equipment provided in an embodiment of the present invention when executing
Suddenly.
According to another aspect of the present invention, a kind of computer readable storage medium provided, which is characterized in that the meter
The program of the communication means of vehicle-mounted T-BOX equipment, the communication of the vehicle-mounted T-BOX equipment are stored on calculation machine readable storage medium storing program for executing
A kind of communication party of vehicle-mounted T-BOX equipment provided in an embodiment of the present invention is realized when the program of method is executed by processor
The step of method.
Compared with the relevant technologies, the communication means and device of a kind of vehicle-mounted TBOX equipment provided in an embodiment of the present invention,
TBOX equipment and computer readable storage medium, be applied to car networking, the T-BOX equipment include wireless communication link and
Bluetooth communications link, comprising: monitor the wireless communication link state of the T-BOX equipment;When monitoring that wireless network is logical
When believing that link is unavailable, by the wireless communication link switching to the bluetooth communications link, pass through the Bluetooth communication
Link is communicated with mobile terminal maintenance.The bluetooth communications link is the Bluetooth communication chain of 5.0 or 5.0 or more version of bluetooth
Road.Through the embodiment of the present invention, a kind of alternative Blue-tooth communication method can be provided for the T-BOX equipment, the bluetooth is logical
Letter mode and the most fundamental difference of existing traditional Blue-tooth communication method are more than to transmit data merely, but in the T-
When the wireless communication link appearance exception of BOX equipment is unable to normal use, uplink can be transmitted by bluetooth communications link
The control instruction information that the event information and downlink transfer mobile terminal APP for transmitting T-BOX issue.It can guarantee in T- in this way
When the correspondence with foreign country of BOX equipment wireless communication link occurs abnormal, by this supplement communication mode of bluetooth communications link,
Many potential risks will be evaded to car owner (for example, the wireless communication link in the T-BOX equipment exception occurs not
Vehicle occurs under this scene when energy normal use and is stolen event).
The scheme of the embodiment of the present invention is particularly suitable for car owner office and parking lot distance is no more than the logical of bluetooth 5.0
The scene and car owner's family and community parking field of communication distance are no more than the scene of 5.0 distance of bluetooth.Existing for both scenes
Time is long, because work hours and sleeping time will occupy a big chunk of entire time.Therefore the embodiment of the present invention
Scheme have very strong Practical significance.Currently, the communication distance of bluetooth 5.0 has reached 300 meters, with the development of technology,
The communication distance of the bluetooth of more highest version and the progress of transmission rate so that the scheme of the embodiment of the present invention will have it is stronger
Practical significance.
Detailed description of the invention
Fig. 1 is a kind of flow graph construction schematic diagram of the communication means of vehicle-mounted T-BOX equipment provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the communication device of vehicle-mounted T-BOX equipment provided in an embodiment of the present invention;
Fig. 3 is to establish bluetooth communications link in a kind of communication means of vehicle-mounted T-BOX equipment provided in an embodiment of the present invention
Flow chart;
Fig. 4 is to disconnect bluetooth communications link in a kind of communication means of vehicle-mounted T-BOX equipment provided in an embodiment of the present invention
Flow chart;
Fig. 5 is a kind of structural schematic diagram of vehicle-mounted T-BOX equipment provided in an embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below
Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
To explain the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (PersonalDigital Assistant, PDA), portable matchmaker
Body player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. are mobile
The fixed terminals such as terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Currently, traditional Bluetooth technology (such as version 1.0,2.0), which is widely used in mobile terminal, carries out pairing transmission number
According to transmission speed is low, and effective propagation path only has 10 meters, and is typically just provided purely for transmission data.
And the effective working distance of bluetooth 5.0 and the above version can achieve 300 meters, and transmission rate significantly increases,
Greatly increase the practicality.
The present invention is namely based on bluetooth 5.0 and the above version and the application scenarios of a kind of vehicle-mounted T-BOX equipment that propose.This
Invent the Bluetooth chip module that vehicle-mounted T-BOX equipment carries bluetooth 5.0 and the above version, the vehicle-mounted T-BOX equipment cannot
When by wireless communication link communication, automatically switches to bluetooth communications link and communicated.Wherein, the Bluetooth communication chain
The communication mode on road is essentially different with existing traditional Blue-tooth communication method, and the most fundamental difference is that the bluetooth is logical
Letter link is more than simple transmission data, but exception occur in the wireless communication link of the T-BOX equipment cannot be just
When being often used, event information and the downlink transfer that uplink T-BOX can be transmitted by the bluetooth communications link are mobile eventually
The control instruction information that end APP is issued.
Please refer to Fig. 1.
The embodiment of the present invention provides a kind of communication means of vehicle-mounted T-BOX equipment, is applied to car networking, and the T-BOX is set
Standby includes wireless communication link and bluetooth communications link, which comprises
Step S1, the wireless communication link state of the T-BOX equipment is monitored, wherein the wireless communication
The wireless communication connection status that link state is established by the T-BOX equipment and mobile terminal;
Step S2, when monitoring that wireless communication link is unavailable, extremely by the wireless communication link switching
The bluetooth communications link is communicated by the bluetooth communications link with mobile terminal maintenance.
Further, in the step S1, the bluetooth communications link uplink T-BOX equipment event information,
The control instruction that downlink transfer mobile terminal is issued by vehicle control software application APP.Wherein, the event information includes upper
Report car status information.The mobile terminal is equipped with vehicle control software application APP, for issuing control by the APP
It instructs to the backstage APP, the backstage APP forwards the control instruction to give T-BOX equipment.
Preferably, the bluetooth communications link is the bluetooth communications link of 5.0 or 5.0 or more version of bluetooth.
Further, the step S1, the wireless communication link state of the monitoring T-BOX equipment, comprising:
The T-BOX equipment monitors the T-BOX equipment and movement by periodically sending heartbeat packet to mobile terminal
The connection status of the wireless communication link of terminal.In the normal situation of wireless communication link, the mobile terminal
After receiving the heartbeat packet, responded to the T-BOX device replied.
When the T-BOX equipment monitoring to when existing simultaneously wireless communication link and bluetooth communications link (for example,
Mobile terminal opens simultaneously wireless communication data switch and Bluetooth switch), it is preferential to select the conduct of wireless communication link
The communication link of the T-BOX equipment and the mobile terminal.
If after T-BOX equipment monitoring to the heartbeat packet for continuously transmitting preset times, all do not received described mobile whole
The reply at end responds, then determines wireless communication link fails, wireless communication link is unavailable.Wherein, described
Preset times are set as needed by user in the T-BOX equipment, such as the preset times are set as 10 times, as the T-
BOX equipment monitoring does not all receive the reply response of the mobile terminal, then determines to after continuously transmitting 10 heartbeat packets
Wireless communication link fails, wireless communication link are unavailable.
Further, the step S2, described when monitoring that wireless communication link is unavailable, by the wireless network
Network communication link switches to the bluetooth communications link, is communicated by the bluetooth communications link with mobile terminal maintenance;
Include:
When the T-BOX equipment monitoring is unavailable to the wireless communication link, start the Bluetooth communication chain
Road;
The T-BOX equipment is attempted to initiate the bluetooth connection with mobile terminal according to preset link information;
After the bluetooth connection success of the T-BOX equipment and the mobile terminal, communication mode is switched to and is had been established into
The bluetooth communications link of function;
The T-BOX equipment is communicated using the bluetooth communications link with mobile terminal maintenance, and vehicle-state is reported
Information receives the control information that mobile terminal issues.
Further, the method may further comprise: when the T-BOX equipment monitoring is extensive to wireless communication link
When can be used again, i.e., the described T-BOX equipment monitoring when initiating data service, determines nothing to can normally be resident wireless communication
Line network communication link restores, and just disconnects the bluetooth communications link, the bluetooth communications link is switched to wireless network and is led to
Believe link, is communicated by the wireless communication link with mobile terminal maintenance.
The embodiment of the present invention provides a kind of communication means of vehicle-mounted T-BOX equipment, is applied to car networking, and the T-BOX is set
Standby includes wireless communication link and bluetooth communications link, which comprises monitors the wireless network of the T-BOX equipment
Communication link state;When monitoring that wireless communication link is unavailable, by the wireless communication link switching to institute
Bluetooth communications link is stated, is communicated by the bluetooth communications link with mobile terminal maintenance.The bluetooth communications link is
The bluetooth communications link of 5.0 or 5.0 or more version of bluetooth.Through the embodiment of the present invention, one can be provided for the T-BOX equipment
The alternative Blue-tooth communication method of kind, the Blue-tooth communication method are with the most fundamental difference of existing traditional Blue-tooth communication method
Data are more than transmitted merely, but exception are occurred in the wireless communication link of the T-BOX equipment and be unable to normal use
When, it can be issued by the event information and downlink transfer mobile terminal APP of bluetooth communications link transmission uplink T-BOX
Control instruction information.It can guarantee to lead to when the correspondence with foreign country of T-BOX equipment wireless communication link occurs abnormal in this way
Cross this supplement communication mode of bluetooth communications link, it will evade many potential risks (for example, in the T-BOX to car owner
The wireless communication link of equipment occurs that the stolen event of vehicle occurs under this scene when exception is unable to normal use).
The scheme of the embodiment of the present invention is particularly suitable for car owner office and parking lot distance is no more than bluetooth 5.0
The scene and car owner's family and community parking field of communication distance are no more than the scene of 5.0 distance of bluetooth.Both scenes exist
Time it is long because work hours and sleeping time will occupy a big chunk of entire time.Therefore the present invention is implemented
The scheme of example has very strong Practical significance.Currently, the communication distance of bluetooth 5.0 has reached 300 meters, with the hair of technology
Exhibition, the communication distance of the bluetooth of more highest version and the progress of transmission rate, so that the scheme of the embodiment of the present invention will have more
Strong Practical significance.
Please refer to Fig. 2.
The embodiment of the present invention provides a kind of communication device of vehicle-mounted T-BOX equipment, is applied to car networking, and the T-BOX is set
Standby includes wireless communication link and bluetooth communications link, and described device includes: monitoring modular 10, switching module 20, in which:
The monitoring modular 10, for monitoring the wireless communication link state of the T-BOX equipment, wherein described
The wireless communication connection status that wireless communication link state is established by the T-BOX equipment and mobile terminal;
The switching module 20, for when monitoring that wireless communication link is unavailable, the wireless network to be led to
Believe that link switching to the bluetooth communications link, is communicated by the bluetooth communications link with mobile terminal maintenance.
Further, the bluetooth communications link is in the event information of uplink T-BOX equipment, and downlink transfer movement is eventually
Hold the control instruction issued by vehicle control software application APP.Wherein, the event information includes that vehicle-state is reported to believe
Breath.The mobile terminal is equipped with vehicle control software application APP, for issuing control instruction to the APP by the APP
From the background, the backstage APP forwards the control instruction to give T-BOX equipment.
Preferably, the bluetooth communications link is the bluetooth communications link of 5.0 or 5.0 or more version of bluetooth.
Further, the monitoring modular 10, is specifically used for:
The T-BOX equipment monitors the T-BOX equipment and movement by periodically sending heartbeat packet to mobile terminal
The connection status of the wireless communication link of terminal.In the normal situation of wireless communication link, the mobile terminal
After receiving the heartbeat packet, responded to the T-BOX device replied.
When the T-BOX equipment monitoring to when existing simultaneously wireless communication link and bluetooth communications link (for example,
Mobile terminal opens simultaneously wireless communication data switch and Bluetooth switch), it is preferential to select the conduct of wireless communication link
The communication link of the T-BOX equipment and the mobile terminal.
If after T-BOX equipment monitoring to the heartbeat packet for continuously transmitting preset times, all do not received described mobile whole
The reply at end responds, then determines wireless communication link fails, wireless communication link is unavailable.Wherein, described
Preset times are set as needed by user in the T-BOX equipment, such as the preset times are set as 10 times, as the T-
BOX equipment monitoring does not all receive the reply response of the mobile terminal, then determines to after continuously transmitting 10 heartbeat packets
Wireless communication link fails, wireless communication link are unavailable.
Further, the switching module 20, is specifically used for:
When the T-BOX equipment monitoring is unavailable to the wireless communication link, start the Bluetooth communication chain
Road;
The T-BOX equipment is attempted to initiate the bluetooth connection with mobile terminal according to preset link information;
After the bluetooth connection success of the T-BOX equipment and the mobile terminal, communication mode is switched to and is had been established into
The bluetooth communications link of function;
The T-BOX equipment is communicated using the bluetooth communications link with mobile terminal maintenance, and vehicle-state is reported
Information receives the control information that mobile terminal issues.
Further, the switching module 20 is further used for: when the T-BOX equipment monitoring to wireless communication
When link-recovery can be used, i.e., the described T-BOX equipment monitoring is to can normally be resident wireless communication, when initiating data service,
Determine wireless communication link-recovery, just disconnects the bluetooth communications link, the bluetooth communications link is switched to wirelessly
Network communication link is communicated by the wireless communication link with mobile terminal maintenance.
The embodiment of the present invention provides a kind of communication device of vehicle-mounted T-BOX equipment, is applied to car networking, and the T-BOX is set
Standby includes wireless communication link and bluetooth communications link, and described device includes: T-BOX equipment described in monitoring module monitors
Wireless communication link state;Switching module is when monitoring that wireless communication link is unavailable, by the wireless network
Communication link switches to the bluetooth communications link, is communicated by the bluetooth communications link with mobile terminal maintenance.Institute
State the bluetooth communications link that bluetooth communications link is 5.0 or 5.0 or more version of bluetooth.It through the embodiment of the present invention, can be institute
It states T-BOX equipment and a kind of alternative Blue-tooth communication method, the Blue-tooth communication method and existing traditional Bluetooth communication side is provided
The most fundamental difference of formula is more than to transmit data merely, but the wireless communication link in the T-BOX equipment goes out
When now exception is unable to normal use, event information and downlink biography that bluetooth communications link transmits uplink T-BOX can be passed through
The control instruction information that defeated mobile terminal APP is issued.It can guarantee in this way in the external of T-BOX equipment wireless communication link
When communication occurs abnormal, pass through this supplement communication mode of bluetooth communications link, it will evade many potential risks to car owner
(for example, occurring under this scene when exception is unable to normal use occurs in the wireless communication link in the T-BOX equipment
Vehicle is stolen event).
It should be noted that above-mentioned apparatus embodiment and embodiment of the method belong to same design, specific implementation process is detailed
See embodiment of the method, and the technical characteristic in embodiment of the method is corresponding applicable in Installation practice, which is not described herein again.
Technical solution of the present invention is described in further detail with reference to embodiments.
Embodiment 1:
Please refer to Fig. 3.
The embodiment of the present invention provides a kind of communication means of vehicle-mounted T-BOX equipment, is applied to car networking, and the T-BOX is set
Standby includes wireless communication link and bluetooth communications link, and the bluetooth communications link is 5.0 or 5.0 or more version of bluetooth
Bluetooth communications link, the method is for establishing bluetooth communications link, comprising:
Step S301, the described T-BOX equipment monitors the T-BOX and sets by periodically sending heartbeat packet to mobile terminal
The standby connection status with the wireless communication link of mobile terminal, wherein the wireless communication link state is described
The wireless communication connection status that T-BOX equipment and mobile terminal are established;
Wherein, the bluetooth communications link (such as reports vehicle-state to believe in the event information of uplink T-BOX equipment
Breath), the control instruction that downlink transfer mobile terminal is issued by vehicle control software application APP.Wherein, the mobile terminal peace
Equipped with vehicle control software application APP, for issuing control instruction to the backstage APP, the backstage APP by the APP
The control instruction is forwarded to give T-BOX equipment.
Step S302, the mobile terminal is not all received after whether monitoring to continuously transmit the heartbeat packet of preset times
Reply response? if so, being transferred to step S303, it is otherwise transferred to step S301.
Step S303, T-BOX equipment determines wireless communication link fails, and wireless communication link can not
With starting the bluetooth communications link.
Step S304, the described T-BOX equipment is attempted to initiate to connect with the bluetooth of mobile terminal according to preset link information
It connects.
Step S305, after the bluetooth connection success of the described T-BOX equipment and the mobile terminal, communication mode is switched to
Successful bluetooth communications link has been established, does not use wireless communication link;
Step S306, the described T-BOX equipment is communicated using the bluetooth communications link with mobile terminal maintenance, is reported
Car status information receives the control information that mobile terminal issues.
Further, the method may further comprise: when monitoring that wireless communication link-recovery can be used, by institute
State bluetooth communications link and switch to wireless communication link, by the wireless communication link and mobile terminal keep after
Continuous communication.
Embodiment 2:
Please refer to Fig. 4.
The embodiment of the present invention provides a kind of communication means of vehicle-mounted T-BOX equipment, is applied to car networking, and the T-BOX is set
Standby includes wireless communication link and bluetooth communications link, and the bluetooth communications link is 5.0 or 5.0 or more version of bluetooth
Bluetooth communications link, the method is for disconnecting bluetooth communications link, comprising:
Step S401, the wireless communication link state of the T-BOX equipment is monitored.
Step S402, monitor that wireless communication link-recovery is available? if so, being transferred to step S403, otherwise
It is transferred to step S401.
Step S403, T-BOX equipment monitoring can initiate data service, sentence to can normally be resident wireless communication
Determine wireless communication link-recovery, attempts to disconnect the bluetooth communications link.
Step S404, communication mode is switched to by the described T-BOX equipment by the bluetooth communications link has restored wireless
Network communication link.
Step S405, the described T-BOX equipment is communicated using the wireless communication link with mobile terminal maintenance,
Car status information is reported, the control information that mobile terminal issues is received.
In addition, the embodiment of the present invention also provides a kind of vehicle-mounted T-BOX equipment, as shown in figure 5, the T-BOX equipment 900
Include: memory 902, processor 901 and is stored in can run in the memory 902 and on the processor 901 one
A or multiple computer programs, the memory 902 and the processor 901 are coupled by bus system 903,
To realize a kind of vehicle provided in an embodiment of the present invention when one or more of computer programs are executed by the processor 901
Carry the following steps of the communication means of T-BOX equipment:
Step S1, the wireless communication link state of the T-BOX equipment is monitored, wherein the wireless communication
The wireless communication connection status that link state is established by the T-BOX equipment and mobile terminal;
Step S2, when monitoring that wireless communication link is unavailable, extremely by the wireless communication link switching
The bluetooth communications link is communicated by the bluetooth communications link with mobile terminal maintenance.
Further, in the step S1, the bluetooth communications link uplink T-BOX equipment event information,
The control instruction that downlink transfer mobile terminal is issued by vehicle control software application APP.Wherein, the event information includes upper
Report car status information.The mobile terminal is equipped with vehicle control software application APP, for issuing control by the APP
It instructs to the backstage APP, the backstage APP forwards the control instruction to give T-BOX equipment.
Preferably, the bluetooth communications link is the bluetooth communications link of 5.0 or 5.0 or more version of bluetooth.
Further, the step S1, the wireless communication link state of the monitoring T-BOX equipment, comprising:
The T-BOX equipment monitors the T-BOX equipment and movement by periodically sending heartbeat packet to mobile terminal
The connection status of the wireless communication link of terminal.In the normal situation of wireless communication link, the mobile terminal
After receiving the heartbeat packet, responded to the T-BOX device replied.
When the T-BOX equipment monitoring to when existing simultaneously wireless communication link and bluetooth communications link (for example,
Mobile terminal opens simultaneously wireless communication data switch and Bluetooth switch), it is preferential to select the conduct of wireless communication link
The communication link of the T-BOX equipment and the mobile terminal.
If after T-BOX equipment monitoring to the heartbeat packet for continuously transmitting preset times, all do not received described mobile whole
The reply at end responds, then determines wireless communication link fails, wireless communication link is unavailable.Wherein, described
Preset times are set as needed by user in the T-BOX equipment, such as the preset times are set as 10 times, as the T-
BOX equipment monitoring does not all receive the reply response of the mobile terminal, then determines to after continuously transmitting 10 heartbeat packets
Wireless communication link fails, wireless communication link are unavailable.
Further, the step S2, described when monitoring that wireless communication link is unavailable, by the wireless network
Network communication link switches to the bluetooth communications link, is communicated by the bluetooth communications link with mobile terminal maintenance;
Include:
When the T-BOX equipment monitoring is unavailable to the wireless communication link, start the Bluetooth communication chain
Road;
The T-BOX equipment is attempted to initiate the bluetooth connection with mobile terminal according to preset link information;
After the bluetooth connection success of the T-BOX equipment and the mobile terminal, communication mode is switched to and is had been established into
The bluetooth communications link of function;
The T-BOX equipment is communicated using the bluetooth communications link with mobile terminal maintenance, and vehicle-state is reported
Information receives the control information that mobile terminal issues.
Further, the method may further comprise: when the T-BOX equipment monitoring is extensive to wireless communication link
When can be used again, i.e., the described T-BOX equipment monitoring when initiating data service, determines nothing to can normally be resident wireless communication
Line network communication link restores, and just disconnects the bluetooth communications link, the bluetooth communications link is switched to wireless network and is led to
Believe link, is communicated by the wireless communication link with mobile terminal maintenance.
The method that the embodiments of the present invention disclose can be applied in the processor 901, or by the processor
901 realize.The processor 901 may be a kind of IC chip, have signal handling capacity.During realization, on
Each step for stating method can be complete by the integrated logic circuit of the hardware in the processor 901 or the instruction of software form
At.The processor 901 can be general processor, DSP or other programmable logic device, discrete gate or transistor
Logical device, discrete hardware components etc..The processor 901 may be implemented or execute disclosed each in the embodiment of the present invention
Method, step and logic diagram.General processor can be microprocessor or any conventional processor etc..In conjunction with the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or be handled with decoding
Hardware and software module combination in device execute completion.Software module can be located in storage medium, which, which is located at, deposits
The step of reservoir 902, the processor 901 reads the information in memory 902, completes preceding method in conjunction with its hardware.
It is appreciated that the memory 902 of the embodiment of the present invention can be volatile memory or nonvolatile memory,
It also may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (ROM,
Read-Only Memory), it is programmable read only memory (PROM, Programmable Read-Only Memory), erasable
Except programmable read only memory (EPROM, Erasable Read-Only Memory), electricallyerasable ROM (EEROM)
The storage of (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access
Device (FRAM, Ferromagnetic Random Access Memory), flash memory (Flash Memory) or other memory skills
Art, compact disc read-only memory (CD-ROM, Compact Disk Read-Only Memory), digital versatile disc (DVD,
Digital Video Disk) or other optical disc storages, magnetic holder, tape, disk storage or other magnetic memory apparatus;Volatibility is deposited
Reservoir can be random access memory (RAM, Random Access Memory), by exemplary but be not restricted theory
Bright, the RAM of many forms is available, such as static random access memory (SRAM, Static Random Access
Memory), static random access memory (SSRAM, Synchronous Static Random Access Memory), dynamic
State random access memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory
(SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate synchronous dynamic random-access
Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory) increases
Strong type Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access
Memory), synchronized links dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access
Memory), direct rambus random access memory (DRRAM, Direct Rambus Random Access Memory).
The memory of description of the embodiment of the present invention is intended to include but is not limited to the memory of these and any other suitable type.
It should be noted that above-mentioned vehicle-mounted T-BOX apparatus embodiments and embodiment of the method belong to same design, it is specific real
Existing process is detailed in embodiment of the method, and the technical characteristic in embodiment of the method is right in the vehicle-mounted T-BOX apparatus embodiments
It should be applicable in, which is not described herein again.
In addition, in the exemplary embodiment, the embodiment of the present invention also provides a kind of computer readable storage medium, the meter
One or more program of the communication means of vehicle-mounted T-BOX equipment, the vehicle-mounted T- are stored on calculation machine readable storage medium storing program for executing
To realize one kind provided in an embodiment of the present invention when one or more program of the communication means of BOX equipment is executed by processor
The following steps of the communication means of vehicle-mounted T-BOX equipment.
Step S1, the wireless communication link state of the T-BOX equipment is monitored, wherein the wireless communication
The wireless communication connection status that link state is established by the T-BOX equipment and mobile terminal;
Step S2, when monitoring that wireless communication link is unavailable, extremely by the wireless communication link switching
The bluetooth communications link is communicated by the bluetooth communications link with mobile terminal maintenance.
Further, in the step S1, the bluetooth communications link uplink T-BOX equipment event information,
The control instruction that downlink transfer mobile terminal is issued by vehicle control software application APP.Wherein, the event information includes upper
Report car status information.The mobile terminal is equipped with vehicle control software application APP, for issuing control by the APP
It instructs to the backstage APP, the backstage APP forwards the control instruction to give T-BOX equipment.
Preferably, the bluetooth communications link is the bluetooth communications link of 5.0 or 5.0 or more version of bluetooth.
Further, the step S1, the wireless communication link state of the monitoring T-BOX equipment, comprising:
The T-BOX equipment monitors the T-BOX equipment and movement by periodically sending heartbeat packet to mobile terminal
The connection status of the wireless communication link of terminal.In the normal situation of wireless communication link, the mobile terminal
After receiving the heartbeat packet, responded to the T-BOX device replied.
When the T-BOX equipment monitoring to when existing simultaneously wireless communication link and bluetooth communications link (for example,
Mobile terminal opens simultaneously wireless communication data switch and Bluetooth switch), it is preferential to select the conduct of wireless communication link
The communication link of the T-BOX equipment and the mobile terminal.
If after T-BOX equipment monitoring to the heartbeat packet for continuously transmitting preset times, all do not received described mobile whole
The reply at end responds, then determines wireless communication link fails, wireless communication link is unavailable.Wherein, described
Preset times are set as needed by user in the T-BOX equipment, such as the preset times are set as 10 times, as the T-
BOX equipment monitoring does not all receive the reply response of the mobile terminal, then determines to after continuously transmitting 10 heartbeat packets
Wireless communication link fails, wireless communication link are unavailable.
Further, the step S2, described when monitoring that wireless communication link is unavailable, by the wireless network
Network communication link switches to the bluetooth communications link, is communicated by the bluetooth communications link with mobile terminal maintenance;
Include:
When the T-BOX equipment monitoring is unavailable to the wireless communication link, start the Bluetooth communication chain
Road;
The T-BOX equipment is attempted to initiate the bluetooth connection with mobile terminal according to preset link information;
After the bluetooth connection success of the T-BOX equipment and the mobile terminal, communication mode is switched to and is had been established into
The bluetooth communications link of function;
The T-BOX equipment is communicated using the bluetooth communications link with mobile terminal maintenance, and vehicle-state is reported
Information receives the control information that mobile terminal issues.
Further, the method may further comprise: when the T-BOX equipment monitoring is extensive to wireless communication link
When can be used again, i.e., the described T-BOX equipment monitoring when initiating data service, determines nothing to can normally be resident wireless communication
Line network communication link restores, and just disconnects the bluetooth communications link, the bluetooth communications link is switched to wireless network and is led to
Believe link, is communicated by the wireless communication link with mobile terminal maintenance.
It should be noted that the communication means program of the vehicle-mounted T-BOX equipment on above-mentioned computer readable storage medium is real
It applies example and embodiment of the method belongs to same design, specific implementation process is detailed in embodiment of the method, and the skill in embodiment of the method
Art feature is corresponding in the embodiment of above-mentioned computer readable storage medium to be applicable in, and which is not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.