CN109413612A - A kind of communication connection method for building up and equipment - Google Patents
A kind of communication connection method for building up and equipment Download PDFInfo
- Publication number
- CN109413612A CN109413612A CN201811228067.5A CN201811228067A CN109413612A CN 109413612 A CN109413612 A CN 109413612A CN 201811228067 A CN201811228067 A CN 201811228067A CN 109413612 A CN109413612 A CN 109413612A
- Authority
- CN
- China
- Prior art keywords
- terminal
- connection
- serviced component
- vehicle
- heartbeat packet
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/19—Connection re-establishment
Abstract
This application involves a kind of mobile communication technologies, specifically disclose a kind of communication connection method for building up, and whether the method is applied to control equipment, comprising: interrupted by the connection between serviced component detection and terminal;In the case where detecting the disconnecting between the terminal, the connection between the terminal is established.Using the scheme of the application, the problem of can solve the control device of vehicle can not quickly reconnect after connecting disconnection with intelligent network connection vehicle device, ensure that control device can receive intelligent network connection vehicle device and can acquire vehicle data, is provided for vehicle drive safe and convenient.
Description
Technical field
This application involves mobile communication field more particularly to a kind of communication connection method for building up and equipment.
Background technique
Vehicle has become the essential vehicles in people's daily life, when people use vehicle, in order to
The state that vehicle is monitored by control device can install intelligent network connection vehicle device on vehicle, will pass through intelligent network connection vehicle
The vehicle data of equipment acquisition carries out fault diagnosis, track positioning etc. to vehicle.However, intelligent networking vehicle device is due to its system
There are the problems such as failure (bug) so that it is entered dormant state every now and then for bottom, and control device and intelligent network is caused to join vehicle device
Between disconnecting so that can not to vehicle condition carry out real-time monitoring, not only will affect in this way driver driving, Geng Huiying
Ring the safety of trip.
Summary of the invention
This application provides a kind of communication connection method for building up and equipment, for realizing the real-time monitoring to vehicle condition.
First aspect provides a kind of communication connection method for building up, this method comprises: passing through serviced component detection and terminal
Between connection whether interrupt;In the case where detecting the disconnecting between the terminal, establish with the terminal it
Between connection.
In a kind of possible embodiment, whether the connection by between serviced component detection and terminal interrupts it
Before, further includes: when telecommunication customer end starting, start the serviced component;Establish the sub thread of the serviced component, institute
Sub thread is stated for establishing the connection between the terminal.
In a kind of possible embodiment, whether the connection by between serviced component detection and terminal is interrupted,
It include: that heartbeat packet is sent to terminal by the sub thread of serviced component;It is sending in the preset time period after the heartbeat packet not
When receiving the response message for the heartbeat packet, the determining disconnecting between the terminal.
Connection in alternatively possible embodiment, between the foundation and the terminal, comprising: when detecting
When stating the communication signal of terminal, Xiang Suoshu terminal sends the first communication connection and establishes request;Receive first from the terminal
Confirmation message and the second communication connection establish request;The second confirmation message is sent to the terminal.
In another possible embodiment, the control equipment is the control device of vehicle, the method also includes:
The data from the terminal are received, the data include speed, revolving speed, water tank temperature, oil consumption, the mileage travelled of the vehicle
And location information.
Second aspect provides a kind of communication connection and establishes system, and the system is applied to control equipment, comprising: detection is single
Member, for whether being interrupted by the connection between serviced component detection and terminal;First establishing unit, for single in the detection
In the case that member detects the disconnecting between the terminal, the connection between the terminal is established.
In a kind of possible embodiment, the monitoring unit includes: the first transmission sub-unit, for passing through service group
The sub thread of part sends heartbeat packet to terminal;Subelement is determined, for after the transmission sub-unit sends the heartbeat packet
When the response message for the heartbeat packet is not received in preset time period, the determining disconnecting between the terminal.
In another embodiment, the first establishing unit includes: the second transmission sub-unit, detects institute for working as
When stating the communication signal of terminal, Xiang Suoshu terminal sends the first connection request;Receiving subelement is coming from the end for receiving
First confirmation message and the second connection request at end;Third transmission sub-unit, for sending the second confirmation letter to the terminal
Breath.
In another possible embodiment, the equipment further include: start unit, for being opened when the control device
When dynamic, start the serviced component;Second establishes unit, for establishing the sub thread of the serviced component.
In another possible embodiment, the equipment further include: receiving unit, for receiving the number for carrying out self terminal
According to the data include speed, revolving speed, water tank temperature, oil consumption, mileage travelled and the location information of the vehicle.
The third aspect provides a kind of control device, including processor, receiver, transmitter and memory, the processing
Device, the receiver, the transmitter and the memory are connected with each other, wherein the memory is for storing computer journey
Sequence, the computer program include program instruction, and the processor is configured for calling described program instruction, execute above-mentioned the
The method of one side or first aspect any embodiment.
Fourth aspect provides a kind of computer readable storage medium, and the computer-readable recording medium storage has calculating
Machine program, the computer program include program instruction, and described program instruction when being executed by a processor holds the processor
The method of the above-mentioned various aspects of row.
5th aspect provides a kind of computer program product comprising instruction, when run on a computer, so that
Computer executes method described in above-mentioned various aspects.
According to a kind of communication connection method for building up provided by the embodiments of the present application and equipment, pass through serviced component detection with eventually
Whether end connection is interrupted, and in the case where breaking in this connection, the connection between terminal is established, so as to automobile middle control equipment and terminal
In the case where capable of breaking in this connection, connection is re-established rapidly, to receive the vehicle data of terminal acquisition, to control in guarantee
Equipment builds a kind of safety and convenient and fast running environments to the real-time monitoring of vehicle condition for driver.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of communication connection method for building up provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another communication connection method for building up provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram for controlling equipment provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of another control equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen
Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall in the protection scope of this application.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of communication connection method for building up provided by the embodiments of the present application.Its
In, which described from the angle of control equipment, and the control equipment is the control device of vehicle.Such as
Shown in Fig. 1, which may include:
S101, whether interrupted by the connection between serviced component detection and terminal.
Specifically, the system of control device can be Android system, or other systems, the application are not construed as limiting.
In the case where the system of control device is Android system, serviced component (service) is one of four big components of Android, it is
A kind of life cycle is longer, without visualization interface and runs on a kind of service routine on backstage.
Whether being interrupted by the connection between serviced component detection control device and terminal among the above, can be and pass through clothes
Business transmission heartbeat packet of the component to terminal timing, does not receive sending in the preset time period after heartbeat packet for heartbeat packet
When response message, determines the disconnecting between terminal, receive sending in the preset time period after heartbeat packet for the heart
When jumping the response message of packet, the connection between determining and terminal is normal.Heartbeat packet refers to be notified in control device and terminal room timing
One customized command word of other side oneself state is periodically sent, and heartbeat is similar to.
Terminal among the above is the intelligent network connection vehicle device being installed on vehicle, and intelligent network connection vehicle device can be in vehicle
Factory before be installed on vehicle, be also possible to be installed on vehicle after vehicle release.Intelligent network connection vehicle device can acquire
The location information of vehicle is simultaneously transferred to control device, to realize acousto-optic report in time in the case where vehicle condition is bad
The protection of alert or oil-break power break.In addition, intelligent network connection vehicle device can have Wireless Fidelity (Wireless Fidelity, WIFI)
Function, i.e., the control device WLAN to be accessed be intelligent network connection vehicle device by insertion user identification
(Subscriber Identification Module, SIM) blocks come what is realized, and data can be synchronized on mobile terminal,
Facilitate user remotely to check and manipulate, is provided safeguard for trip and safe.
S102, the connection in the case where detecting the disconnecting between terminal, between foundation and terminal.
Control device establishes the connection between terminal in the case where detecting the disconnecting between terminal, can
To be directly to send communication connection to terminal to establish request, when message is completed in the communication connection foundation for receiving terminal transmission,
Show that the communication connection between terminal is established to complete.The communication signal that terminal can also first be detected, when detecting the logical of terminal
When interrogating signal, communication connection just is sent to terminal and establishes request, establish in the communication connection for receiving terminal transmission and complete message
When, show that the communication connection between terminal is established and completes.The process for establishing connection is also possible to by way of three-way handshake
It establishes, i.e., first sends the first communication connection to terminal and establish request, receive and carry out establishing for the first communication connection for self terminal
The first confirmation message and the second communication connection of request establish request, establish request according to the second communication connection and send to terminal
Second confirmation message.The reason of disconnecting may include: that terminal has that system bottom is faulty, can auto sleep, terminal it is unexpected
To burst restart and terminal starting when from start to transmitting WLAN centre also need certain time carry out just
Beginningization, so disconnecting.
The serviced component of control device starting can send communication connection to terminal by sub thread and establish request.It is optional
Ground, connection failure, serviced component recycles sub thread, to reduce the occupancy of centering control Memory System resource;Optionally, it connects
Success, the sub thread for connection are withdrawn, and the sub thread for detecting connection status is constant.
According to a kind of communication connection method for building up provided by the embodiments of the present application, control device passes through the inspection to connection status
It surveys, in the case where breaking in this connection, sends connection request to terminal, be conducive to make up caused by terminal own system bug and ask
Topic, can rapidly establish connection in the case of an interrupt, it is convenient in monitoring of the control to vehicle-state, for trip provide it is convenient with
Safety.
Referring to Fig. 2, Fig. 2 is the side of the attribute information of another acquisition interbehavior instruction provided by the embodiments of the present application
The schematic flow diagram of method.Wherein, which is the angle from the control device and terminal that are installed on vehicle
Description.As shown in Fig. 2, this method can include:
S201, control equipment starting, start above-mentioned serviced component, establish the sub thread of serviced component.
Specifically, when vehicle is lighted a fire and started, middle control starting starts serviced component (service), serviced component energy
The characteristics of enough utilizing thread pool, to create sub thread using thread pool to complete process.
Thread pool is a kind of multithread processing method, and task is added to queue in treatment process, then in creation thread
Start these tasks automatically afterwards.Thread pool threads are all background threads, and per thread is all using the storehouse size of default, with default
Priority operation, and in the multiple thread units.If some thread is in idle condition, then thread pool will dispatch one
Task gives it, if all threads of all remain busy, but task is put into a queue, then thread pool will be one
Another worker thread is created after the section time, but the number of thread is never more than maximum value.Thread more than maximum value can
To be lined up, but they will be until just starting after the completion of other threads.
Therefore, in automotive ignition, when control device starts, start serviced component, after said modules can be created independently
Platform process only considers the process that connection is established with terminal, then serviced component under the premise of being not responding to the process of central control system
Sub thread is created using the principle of thread pool, to facilitate subsequent processing.
S202, terminal starting, initialization emit communication signal.
Specifically, terminal also starts, and carries out the necessary initialization of terminal, so that terminal carries out acquisition and sends data flow
Prepare.The communication signal includes but is not limited to the wireless signals such as WiFi, 3G, 4G, is also possible to the communication signal of wired connection.
Wherein, terminal after start-up, needs the regular hour to be initialized.
S203, control equipment send heartbeat packet to terminal.
The sub thread that control equipment is established after the completion of starting serviced component sends heartbeat packet to detect terminal first
State.
Specifically, above-mentioned heartbeat packet, which refers to, notifies one of other side oneself state oneself definition in client and terminal room timing
Command word, sent according to certain time interval, be similar to heartbeat, so being called heartbeat packet.For judge other side (equipment,
Process or other network elements) whether normal operation, using simple communication packet is regularly sent, if do not received in section at the appointed time
Other side's response, then judge that other side has been off.It is disconnected for detecting the abnormal of connection.In the embodiment of the present application, client (control
Control equipment) heartbeat packet periodically is sent to terminal (intelligent network connection vehicle device), because client needs to judge that terminal is that transmitting is wireless
The state or dormant state of local area network, above-mentioned heartbeat packet are exactly that client regularly sends simple information to terminal, at this
In, the content of heartbeat packet be r n simple communication packet, do not expend flow substantially.Developer the main thought for writing code just
It is that (such as 1 minute, 2 minutes, 5 minutes, here without limitation) send a fix information to terminal every few minutes, terminal is received
A fix information is replied after arriving, if (such as 30 seconds, 1 minute, two minutes, here without limitation) is replied in terminal a few minutes
The information of client then regards disconnecting.
I.e. heartbeat detection can be client every time interval occur a detection packet (send here r n letter
Single-pass news packet) terminal is given, start an overtime timer when client is given out a contract for a project;Terminal has received detection packet, it should
It responds client one packet and illustrates that terminal is normal if client receives the response bag of terminal transmission, delete time-out timing
Device;If the overtime timer time-out of client, does not receive response bag still, then illustrates terminal, the intelligent network in the application
Join vehicle device, in a dormant state or collapse replay phase or starting when there are no transmitting WLAN rank
Section.
It is being based on transmission control protocol (Transmission Control Protocol, TCP), may be implemented simple
Heartbeat packet, that is, SO_KEEPALIVE.System default is 2 hours palmic rates of setting.Keep-alive of the specific TCP in setting
(KeepAlive) timer sends out a detection TCP data file space (segment) to opposite end, if confiscating acknowledged sequence number
It (Acknowledgement Number, ACK) or resets, after attempting several times, is considered as opposite end and has been not present, finally notice visitor
Family end program, but this method inspection less than machine power off, cable extract, firewall these broken string.And logical layer is handled
Broken string may be also not so benefit reason.Typically just it is used for keep-alive.
In one timer of client terminal start-up, heartbeat (simple communication packet) is constantly sent;Terminal receives heartbeat
Afterwards, give client to send the confirmation of packet, and judge that terminal whether there is that there are mainly two types of methods here: the time difference with simply
Mark.
Optionally, time difference strategy: client records current time (being denoted as T1) after sending a heartbeat.Judgement is fixed
When the device time reach, calculate how long confiscate heartbeat feedback time (T)=current time-T1 (time of above-mentioned record).Such as
Fruit T is greater than some setting value, so that it may think terminal time-out.
Optionally, plain-denotation: for client after receiving a heartbeat, setting connection mark is true;Judgement timing
The device time reaches, and checks all marks, flag bit false's, it is believed that opposite end time-out;Mark is being set as true
false.Plain-denotation is realized than the time difference more simply a bit, but detects the error of the whether middle connection breaking of terminal a little
Greatly.
In the embodiment of the present application, it needs to initialize when starting due to terminal (intelligent network connection vehicle device), it cannot
Just immediately emit WLAN after starting, or the unexpected suspend mode of terminal or routed be restarted automatically all of running quickly during use
It is possible to, so client is needed to need to confirm the state of terminal, can not be only taken up very by way of sending out heartbeat packet
Few memory and expend the state that seldom flow goes detection terminal.
S204, the determining disconnecting between the terminal of control equipment.
Wherein, control equipment can judge the connection with terminal according to the feedback information for sending heartbeat packet, if not existing
The response message from terminal is received in preset time, it is determined that the disconnecting with terminal, it is specifically consistent with S203, here
It repeats no more.
S205, terminal re-emit communication signal.
Specifically, terminal may during connection a certain moment suspend mode or run quickly burst, in this case, terminal hair
The communication signal penetrated interrupts, and the offline state of terminal can be detected in above-mentioned heartbeat packet.I.e. terminal can pass through artificial or itself weight
The mode opened restores the transmitting of communication signal again, it is said herein emit the terminal that refers to can by communication signal to surrounding broadcast,
And the heartbeat packet sent to control equipment responds.
S206, control equipment send heartbeat packet to terminal.
Above-mentioned control equipment by sub thread the state of the inspection terminal in period can when terminal is online
With heartbeat packet one response sent to control equipment, request is initiated the connection to control equipment.
S207, control equipment send the first communication connection and establish request to the terminal;The terminal sends the first confirmation message
And second communication connection establish request to above-mentioned control equipment;It controls equipment and sends the second confirmation message to the terminal.
In the embodiment of the present application, in order to guarantee that the reliable transmissions of data, client and terminal establish TCP connection, TCP connects
Connecing is that one kind establishes a kind of logical communication link between two transmission users, so that communicating pair all confirms that other side is the transmission of oneself
A kind of connection of connection end point.TCP is a kind of logical towards connection (connection guiding), reliable, based on byte stream transport layer
Believe agreement, in view of communication reliability requirement, mostly uses TCP as communication protocol greatly.
Specifically, after middle control starting, start serviced component, serviced component among the above creates sub-line using thread pool
Journey is divided into the process of three-way handshake to create with the connection of terminal.
It controls equipment (control device of vehicle) and sends the first connection request to terminal first, send a band synchronizing sequence
The TCP message of (Synchronize Sequence Numbers, SYN) mark is numbered to terminal, Client sets flag bit SYN
It is 1, client enters SYN_SENT state, waits terminal check.
Terminal is in the state for monitoring (LISTEN), and in the present embodiment, terminal (intelligent vehicle networked devices) is being listened to
From the connection request of the control device TCP port of same vehicle, after terminal receives SYN packet, need to confirm that client is sent
SYN, specific terminal sends to client with ACK flag and with the message of SYN flag, the message with ACK flag be used for
The first communication connection that client confirmation receives client transmission establishes request, and the message with SYN flag is used for terminal to visitor
The second communication connection that family end is sent establishes request, sends the packet to client to confirm connection request, terminal enters
SYN_RCVD state.
After client receives confirmation, terminal is sent the packet to, client and terminal enter ESTABLISHED shape
State, ESTABLISHED represent the connection of an opening, and data can send opposite end to, complete three-way handshake, subsequent client with
It can start to transmit data between terminal.
S208, terminal send vehicle condition data and flow to control device.
Specifically, after the completion of connection, terminal, that is, above-mentioned intelligent network connection vehicle device can acquire the condition information of the vehicle,
And it is converted into data and is sent to control device.
S209, control equipment send heartbeat packet to terminal.
Specifically, during data are transmitted, the control device period of vehicle sends above-mentioned heartbeat packet to detect connection
Whether interrupt, if disconnecting, the step of repeating the embodiment of the present application S205 to S208 is to restore to connect and receive above-mentioned end
Hold the data flow sent.
In the present embodiment, the case where whether the heartbeat packet connection sent by sub thread is interrupted, detects interruption
Under, after the WLAN of access terminal, connection request is sent to terminal, it can with terminal foundation by way of three-way handshake
The connection leaned on, and then the reliable transmission of data can be carried out, it can be when terminal breaks down, discovery connection at the first time
It interrupts, also can reconnect by the connection of interruption quickly, the real-time Transmission of the guarantee data of maximum possible provides for trip
Safely and conveniently.
Fig. 3 is a kind of structural schematic diagram for controlling equipment provided by the embodiments of the present application, which may include:
Detection unit 301, for whether being interrupted by the connection between serviced component detection and terminal, the terminal intelligent net
Join vehicle device;
First establishing unit 302, the case where for detecting the disconnecting between the terminal in detection unit 301
Under, establish the connection between the terminal.
Specifically, client in such a way that the serviced component of starting sends heartbeat packet to terminal, to detect and terminal
Connection whether terminal, if in the case where detecting interruption, first establishing unit 302 is actively established connection to terminal and is led to
Letter.
In a possible implementation, which includes:
First transmission sub-unit 3011 sends heartbeat packet to terminal for the sub thread by serviced component.
Determine subelement 3012, for first transmission sub-unit 3011 send heartbeat packet after preset time period in not
Disconnecting when receiving the response message for heartbeat packet, between the determining and terminal.
In one possible implementation, which may include:
Second transmission sub-unit 3021, for sending first to the terminal and connecting when detecting the communication signal of the terminal
Connect request;
Receiving subelement 3022, for receiving in the first confirmation message and the second connection request from the terminal;
Third transmission sub-unit 3023, for sending the second confirmation message to the terminal.
Specifically, TCP communication connection is sent to terminal (intelligent network connection vehicle device) in client (control device of vehicle)
When establishing request, first establishing unit 302 is mainly used for the process of the three-way handshake of TCP communication connection foundation, process client
The the first confirmation packet and the second connection request packet that end sends the first connection request packet and receiving terminal is sent, last client hair
After sending the second confirmation packet, just calculates communication connection and establish.
In one possible implementation, control equipment can also include:
Start unit 303, for starting serviced component when control equipment starting;
Second establishes unit 304, the sub thread of the serviced component for establishing the starting of start unit 303.
Receiving unit 305, for receiving the data for carrying out self terminal, which includes the speed of above-mentioned vehicle, revolving speed, water tank
Temperature, oil consumption, mileage travelled and location information.
Specifically, second the first sub thread established in unit 304 is established for completing transmission heartbeat packet client
With the connection status at terminal end, in the case where connecting disconnection, the second sub thread sends connection request to terminal for client
Until successful connection, sub thread is just recycled.
According to a kind of control equipment provided by the embodiments of the present application, whether the connection of the detection and terminal of being capable of timing breaks
It opens, and the principle of thread pool can be utilized, in a disconnected situation, send connection using sub thread again whereabouts terminal and ask
It asks, the consumption of the occupancy and memory that can not only economize on resources, the control equipment of automobile can also be allowed timely to receive intelligence
The situation of remote of net connection vehicle device acquisition, provides the convenient guarantee with safety for vehicle driving.
It referring to fig. 4, is the structural schematic diagram of another control equipment provided by the embodiments of the present application.Sheet as shown in Figure 4
Control equipment in embodiment may include: processor 401;Transmitter 402, receiver 403 and memory 404.Above-mentioned processing
Device 401, transmitter 402, receiver 403, memory 404 are connected by bus 405.Memory 404 is for storing computer journey
Sequence, computer program include program instruction, and processor 401 is used to execute the program instruction of the storage of memory 404.Opening in Fig. 3
Moving cell 303, second establish unit 304, determine that subelement 3012 can be realized by processor 401, the first transmission sub-unit
3011, the second transmission sub-unit 3021 and third transmission sub-unit 3023 can be realized by transmitter 402,305 He of receiving unit
Receiving subelement 3022 can be executed by receiver 403.Wherein, processor 401 is configured for caller instruction execution:
In one implementation, processor 401 is also used to execute following steps: by serviced component detection with terminal it
Between connection whether interrupt, the terminal be intelligent network join vehicle device;The case where detecting the disconnecting between the terminal
Under, establish the connection between the terminal.
In another implementation, whether above-mentioned processor 401 detects the connection between terminal by serviced component
It interrupts, comprising:
Transmitter 402 sends heartbeat packet to terminal by the sub thread of serviced component;
Receiver 403 is sending the response not received in the preset time period after above-mentioned heartbeat packet for above-mentioned heartbeat packet
When information,
The determining disconnecting between the terminal of processor 401.
Connection in another implementation, between above-mentioned foundation and the terminal, comprising:
When detecting the communication signal of the terminal, the first communication connection is sent to the terminal and establishes request;
It receives the first confirmation message and the second communication connection from the terminal and establishes request;
The second confirmation message is sent to the terminal.
In another implementation, above-mentioned communication connection method for building up further include:
When control equipment starting, start above-mentioned serviced component;
Establish the sub thread of the serviced component.
In another implementation, above-mentioned communication connection method for building up further include:
The data from the terminal are received, above-mentioned data include speed, revolving speed, water tank temperature, oil consumption, the traveling of the vehicle
Mileage and location information.
It should be appreciated that in the embodiment of the present application, alleged processor 401 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device is also possible to any conventional processor etc..
Transmitter 402 is for sending data, and receiver 403 is for receiving data.
The memory 404 may include read-only memory and random access memory, and to processor 404 provide instruction and
Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited
Store up the information of device type.
In the specific implementation, processor 401, sending device 402 described in the embodiment of the present application and receiving device 403 can
The embodiment that the communication connection that the embodiment of the present application Fig. 1 or Fig. 2 are provided is established is executed, details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the division of the unit, only a kind of logical function partition, can have in actual implementation
Other division mode, for example, multiple units or components can be combined or can be integrated into another system or some features
It can ignore, or not execute.Shown or discussed mutual coupling or direct-coupling or communication connection can be logical
Some interfaces are crossed, the indirect coupling or communication connection of device or unit can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program produces
Product include one or more computer instructions.It is all or part of when loading and execute on computers the computer program instructions
Ground generates the process or function according to the embodiment of the present application.The computer can be general purpose computer, special purpose computer, computer
Network or other programmable devices.The computer instruction may be stored in a computer readable storage medium, or by being somebody's turn to do
Computer readable storage medium is transmitted.The computer instruction can be from a web-site, computer, server or data
Center passes through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (digital subscriber line, DSL)) or wireless
(such as infrared, wireless, microwave etc.) mode is transmitted to another web-site, computer, server or data center.It should
Computer readable storage medium can be any usable medium that computer can access or include one or more available
The data storage devices such as medium integrated server, data center.The usable medium can be read-only memory (read-only
Memory, ROM) or random access memory (random access memory, RAM) or magnetic medium, for example, floppy disk,
Hard disk, tape, magnetic disk or optical medium, for example, digital versatile disc (digital versatile disc, DVD) or half
Conductive medium, for example, solid state hard disk (solid state disk, SSD) etc..
Claims (10)
1. a kind of communication connection method for building up, which is characterized in that the method is applied to control equipment, comprising:
Whether interrupted by the connection between serviced component detection and terminal;
In the case where detecting the disconnecting between the terminal, the connection between the terminal is established.
2. the method according to claim 1, wherein the connection by between serviced component detection and terminal
Before whether interrupting, further includes:
When telecommunication customer end starting, start the serviced component;
The sub thread of the serviced component is established, the sub thread is used for the connection established between the terminal.
3. according to the method described in claim 2, it is characterized in that, the connection by between serviced component detection and terminal
Whether interrupt, comprising:
Heartbeat packet is sent to terminal by the sub thread of serviced component;
Send do not receive the response message for the heartbeat packet in the preset time period after the heartbeat packet when, determine with
Disconnecting between the terminal.
4. according to the method described in claim 3, it is characterized in that, the connection established between the terminal, comprising:
When detecting the communication signal of the terminal, Xiang Suoshu terminal sends the first communication connection and establishes request;
It receives the first confirmation message and the second communication connection from the terminal and establishes request;
The second confirmation message is sent to the terminal.
5. method according to claim 1-4, which is characterized in that the control equipment is that the middle control of vehicle is set
It is standby, the method also includes:
The data from the terminal are received, the data include speed, revolving speed, water tank temperature, oil consumption, the traveling of the vehicle
Mileage and location information.
6. a kind of communication connection establishes system, the system is applied to control equipment, comprising:
Detection unit, for whether being interrupted by the connection between serviced component detection and terminal;
First establishing unit is built in the case where for detecting the disconnecting between the terminal in the detection unit
Connection between the vertical and described terminal.
7. equipment according to claim 6, which is characterized in that the detection unit includes:
First transmission sub-unit sends heartbeat packet to terminal for the sub thread by serviced component;
Subelement is determined, for not receiving in the preset time period after first transmission sub-unit sends the heartbeat packet
For the heartbeat packet response message when, the determining disconnecting between the terminal.
8. equipment according to claim 7, which is characterized in that the first establishing unit includes:
Second transmission sub-unit, for when detecting the communication signal of the terminal, Xiang Suoshu terminal to send the first connection and asks
It asks;
Receiving subelement, for receiving in the first confirmation message and the second connection request from the terminal;
Third transmission sub-unit, for sending the second confirmation message to the terminal.
9. a kind of terminal, which is characterized in that the processor, defeated including processor, input equipment, output equipment and memory
Enter equipment, output equipment and memory to be connected with each other, wherein the memory is for storing computer program, the computer
Program includes program instruction, and the processor is configured for calling described program instruction, is executed as Claims 1 to 5 is any
Method described in.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811228067.5A CN109413612A (en) | 2018-10-22 | 2018-10-22 | A kind of communication connection method for building up and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811228067.5A CN109413612A (en) | 2018-10-22 | 2018-10-22 | A kind of communication connection method for building up and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109413612A true CN109413612A (en) | 2019-03-01 |
Family
ID=65468118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811228067.5A Pending CN109413612A (en) | 2018-10-22 | 2018-10-22 | A kind of communication connection method for building up and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109413612A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110113790A (en) * | 2019-04-26 | 2019-08-09 | 武汉东湖学院 | The means of communication, system, readable storage medium storing program for executing and the device of rail vehicle |
CN111510492A (en) * | 2020-04-15 | 2020-08-07 | 矩阵元技术(深圳)有限公司 | Data processing method, device, equipment and system for realizing disconnection reconnection |
CN111726413A (en) * | 2020-06-28 | 2020-09-29 | 北京百度网讯科技有限公司 | Equipment connection method and device |
CN112721859A (en) * | 2021-01-14 | 2021-04-30 | 广州橙行智动汽车科技有限公司 | Vehicle control method and device, vehicle and medium |
CN113098972A (en) * | 2021-04-12 | 2021-07-09 | 京东数科海益信息科技有限公司 | Method and device for connecting with equipment, electronic equipment and storage medium |
WO2021218317A1 (en) * | 2020-04-29 | 2021-11-04 | 京东方科技集团股份有限公司 | Network reentry method for mobile terminal after network disconnection, and related device |
CN115242893A (en) * | 2022-05-27 | 2022-10-25 | 国电南瑞科技股份有限公司 | Multi-protocol data acquisition system and method suitable for power distribution Internet of things management system |
CN115334139A (en) * | 2022-06-24 | 2022-11-11 | 百果园技术(新加坡)有限公司 | Communication connection control method and device |
CN115766823A (en) * | 2022-10-26 | 2023-03-07 | 浪潮软件股份有限公司 | Method and system for realizing disconnection reconnection of terminal APP and server based on TCP |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139818A (en) * | 2011-12-02 | 2013-06-05 | 中兴通讯股份有限公司 | Method, system, area of effect (AOE), always on line (AOG) and terminal of maintaining long connection in acquisition of signal (AOS) |
CN103685241A (en) * | 2013-11-26 | 2014-03-26 | 中国科学院计算技术研究所 | Adaptive heartbeat method and adaptive heartbeat system for maintaining long connection of TCP (transmission control protocol) |
CN103942851A (en) * | 2014-04-02 | 2014-07-23 | 北京中交慧联信息科技有限公司 | Method and device for monitoring vehicle state and driving behavior |
CN104374394A (en) * | 2014-11-28 | 2015-02-25 | 广东好帮手电子科技股份有限公司 | One-key navigation system and one-key navigation method both based on wireless communication function box |
CN104837129A (en) * | 2014-02-07 | 2015-08-12 | 通用汽车有限责任公司 | Dynamic dhcp for wi-fi connectivity in a vehicle |
CN105208061A (en) * | 2014-06-23 | 2015-12-30 | 惠州市德赛西威汽车电子股份有限公司 | Method for reconnecting vehicular navigation terminal and T-BOX communication module |
CN105225421A (en) * | 2015-10-10 | 2016-01-06 | 英华达(南京)科技有限公司 | Fatigue driving control system and method |
CN106447830A (en) * | 2016-11-21 | 2017-02-22 | 建荣半导体(深圳)有限公司 | On-board diagnostic data processing method and system and on-board diagnosis terminal |
CN107172132A (en) * | 2017-04-26 | 2017-09-15 | 大连普惠达微仓实体网络科技有限公司 | A kind of data transmission method and intelligent wireless terminal device |
CN107462902A (en) * | 2016-06-03 | 2017-12-12 | 华为终端(东莞)有限公司 | A kind of localization method and location equipment |
US20170358921A1 (en) * | 2016-06-13 | 2017-12-14 | Toyota Industries Electric Systems North America, Inc. | Alternating current (ac) inverter and method of controlling the same |
CN107608337A (en) * | 2017-09-25 | 2018-01-19 | 深圳市道通科技股份有限公司 | Automobile remote diagnostic method and apparatus, mobile terminal, electronic equipment and server |
CN107659718A (en) * | 2017-09-19 | 2018-02-02 | 广东欧珀移动通信有限公司 | Control method, apparatus, mobile terminal and the storage medium of mobile terminal |
CN108616429A (en) * | 2018-05-14 | 2018-10-02 | 平安科技(深圳)有限公司 | A kind of reconnection method and equipment of Push Service |
-
2018
- 2018-10-22 CN CN201811228067.5A patent/CN109413612A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139818A (en) * | 2011-12-02 | 2013-06-05 | 中兴通讯股份有限公司 | Method, system, area of effect (AOE), always on line (AOG) and terminal of maintaining long connection in acquisition of signal (AOS) |
CN103685241A (en) * | 2013-11-26 | 2014-03-26 | 中国科学院计算技术研究所 | Adaptive heartbeat method and adaptive heartbeat system for maintaining long connection of TCP (transmission control protocol) |
CN104837129A (en) * | 2014-02-07 | 2015-08-12 | 通用汽车有限责任公司 | Dynamic dhcp for wi-fi connectivity in a vehicle |
CN103942851A (en) * | 2014-04-02 | 2014-07-23 | 北京中交慧联信息科技有限公司 | Method and device for monitoring vehicle state and driving behavior |
CN105208061A (en) * | 2014-06-23 | 2015-12-30 | 惠州市德赛西威汽车电子股份有限公司 | Method for reconnecting vehicular navigation terminal and T-BOX communication module |
CN104374394A (en) * | 2014-11-28 | 2015-02-25 | 广东好帮手电子科技股份有限公司 | One-key navigation system and one-key navigation method both based on wireless communication function box |
CN105225421A (en) * | 2015-10-10 | 2016-01-06 | 英华达(南京)科技有限公司 | Fatigue driving control system and method |
CN107462902A (en) * | 2016-06-03 | 2017-12-12 | 华为终端(东莞)有限公司 | A kind of localization method and location equipment |
US20170358921A1 (en) * | 2016-06-13 | 2017-12-14 | Toyota Industries Electric Systems North America, Inc. | Alternating current (ac) inverter and method of controlling the same |
CN106447830A (en) * | 2016-11-21 | 2017-02-22 | 建荣半导体(深圳)有限公司 | On-board diagnostic data processing method and system and on-board diagnosis terminal |
CN107172132A (en) * | 2017-04-26 | 2017-09-15 | 大连普惠达微仓实体网络科技有限公司 | A kind of data transmission method and intelligent wireless terminal device |
CN107659718A (en) * | 2017-09-19 | 2018-02-02 | 广东欧珀移动通信有限公司 | Control method, apparatus, mobile terminal and the storage medium of mobile terminal |
CN107608337A (en) * | 2017-09-25 | 2018-01-19 | 深圳市道通科技股份有限公司 | Automobile remote diagnostic method and apparatus, mobile terminal, electronic equipment and server |
CN108616429A (en) * | 2018-05-14 | 2018-10-02 | 平安科技(深圳)有限公司 | A kind of reconnection method and equipment of Push Service |
Non-Patent Citations (1)
Title |
---|
山晋的博客: "⽹联汽⻋硬件设备(⼀)", 《BLOG.SINA.COM.CN/S/BLOG_5F7711E70102XJ1U.HTML》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110113790A (en) * | 2019-04-26 | 2019-08-09 | 武汉东湖学院 | The means of communication, system, readable storage medium storing program for executing and the device of rail vehicle |
CN111510492A (en) * | 2020-04-15 | 2020-08-07 | 矩阵元技术(深圳)有限公司 | Data processing method, device, equipment and system for realizing disconnection reconnection |
WO2021218317A1 (en) * | 2020-04-29 | 2021-11-04 | 京东方科技集团股份有限公司 | Network reentry method for mobile terminal after network disconnection, and related device |
CN111726413A (en) * | 2020-06-28 | 2020-09-29 | 北京百度网讯科技有限公司 | Equipment connection method and device |
CN111726413B (en) * | 2020-06-28 | 2022-05-17 | 北京百度网讯科技有限公司 | Equipment connection method and device |
CN112721859A (en) * | 2021-01-14 | 2021-04-30 | 广州橙行智动汽车科技有限公司 | Vehicle control method and device, vehicle and medium |
CN112721859B (en) * | 2021-01-14 | 2022-08-19 | 广州橙行智动汽车科技有限公司 | Vehicle control method and device, vehicle and medium |
CN113098972A (en) * | 2021-04-12 | 2021-07-09 | 京东数科海益信息科技有限公司 | Method and device for connecting with equipment, electronic equipment and storage medium |
CN115242893A (en) * | 2022-05-27 | 2022-10-25 | 国电南瑞科技股份有限公司 | Multi-protocol data acquisition system and method suitable for power distribution Internet of things management system |
CN115334139A (en) * | 2022-06-24 | 2022-11-11 | 百果园技术(新加坡)有限公司 | Communication connection control method and device |
CN115334139B (en) * | 2022-06-24 | 2023-12-26 | 百果园技术(新加坡)有限公司 | Communication connection control method and device |
CN115766823A (en) * | 2022-10-26 | 2023-03-07 | 浪潮软件股份有限公司 | Method and system for realizing disconnection reconnection of terminal APP and server based on TCP |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109413612A (en) | A kind of communication connection method for building up and equipment | |
US8665700B2 (en) | Fault detection and mitigation for in-vehicle LAN network management | |
CA2592079A1 (en) | Wireless communication path management methods and systems | |
CN101980171B (en) | Failure self-recovery method for software system and software watchdog system used by same | |
WO2020238848A1 (en) | Method and device for managing port configuration mode | |
CN103139818A (en) | Method, system, area of effect (AOE), always on line (AOG) and terminal of maintaining long connection in acquisition of signal (AOS) | |
WO2019210817A1 (en) | Radio link recovery method and terminal | |
CN109040295A (en) | Determination method and device, terminal and the storage medium of abnormal broken line | |
CN112367643A (en) | Wireless sensor connection and remote upgrading method and monitoring system thereof | |
JP2001103062A (en) | Method for notifying detection of fault | |
CN109194744A (en) | A kind of data transmission method, device, storage medium and monitoring device | |
CN113246117B (en) | Control method and equipment of robot and building management system | |
US8266253B2 (en) | Server system and event message transmission method therefor, client terminal and connection method and program therefor, and recording medium | |
KR20190078677A (en) | Remote meter reading system, remote meter reading device and remote meter reading method | |
CN114826981B (en) | System and method for realizing application resident in cloud mobile phone | |
CN114884805B (en) | Data transmission method, device, terminal and storage medium | |
US20220200842A1 (en) | Method for network restoration when communication failure occurs in rapienet system | |
CN110311807B (en) | Network condition self-adaptive monitoring method for electric hanging basket data acquisition system | |
EP3355291B1 (en) | Systems and methods for dynamic output control hierarchy for wireless fire systems and for fire protection before and during the installation thereof | |
CN111224803B (en) | Multi-master detection method in stacking system and stacking system | |
CN117135029A (en) | Communication fault processing method, system and equipment | |
CN103401702A (en) | TCP (Transmission Control Protocol) connection management method and equipment based on fully-distributed model | |
CN107682600B (en) | Camera and gateway | |
CN108616433B (en) | State synchronization method, device, gateway equipment and storage medium | |
CN105959351A (en) | Data transmission method, data transmission device, and communication management device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190301 |
|
RJ01 | Rejection of invention patent application after publication |