CN111314356A - Communication data transmission method and device and electronic equipment - Google Patents

Communication data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN111314356A
CN111314356A CN202010106289.0A CN202010106289A CN111314356A CN 111314356 A CN111314356 A CN 111314356A CN 202010106289 A CN202010106289 A CN 202010106289A CN 111314356 A CN111314356 A CN 111314356A
Authority
CN
China
Prior art keywords
information
response
server
terminal
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010106289.0A
Other languages
Chinese (zh)
Inventor
姜浙
陈新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Automotive Group Co Ltd
Beijing Automotive Research Institute Co Ltd
Original Assignee
Beijing Automotive Group Co Ltd
Beijing Automotive Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Automotive Group Co Ltd, Beijing Automotive Research Institute Co Ltd filed Critical Beijing Automotive Group Co Ltd
Priority to CN202010106289.0A priority Critical patent/CN111314356A/en
Publication of CN111314356A publication Critical patent/CN111314356A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a communication data transmission method, a communication data transmission device and electronic equipment, which are used for solving the problems in the prior art. The method comprises the following steps: sending a login request to a server, wherein the login request carries identity information of a terminal; receiving response information from the server; generating reporting information according to the response type of the response information; sending the reported information to a server; feedback information from the server is received.

Description

Communication data transmission method and device and electronic equipment
Technical Field
The application relates to the field of vehicle cloud communication, in particular to a communication data transmission method and device and electronic equipment.
Background
With the continuous maturity of the related technologies of the internet of vehicles, the sensor technology, the mobile communication technology and the like are deeply integrated with the intelligent internet driving technology, so that the functions of the intelligent internet driving technology are increasingly improved. In the automobile manufacturing activity, the technical requirements of the demonstration operation of uploading and issuing data of different automobile factories, different vehicle types and different data types are not uniform, the use is complex and the compatibility is poor. Inconvenience is brought to real-time management of vehicle multi-dimensional information transmitted between vehicles and cloud servers.
Disclosure of Invention
An object of the embodiments of the present application is to provide a communication data transmission method, a communication data transmission device, and an electronic device, so as to solve the problems in the prior art.
In a first aspect, an embodiment provides a communication data transmission method, including: sending a login request to a server, wherein the login request carries identity information of a terminal; receiving response information from the server; generating reporting information according to the response type of the response information; sending the reported information to a server; feedback information from the server is received.
In an alternative embodiment, receiving the response message from the server includes: judging whether response information of the server is received within a preset time period; if the response information of the server is not received within the preset time period, the login request is sent to the server again, and the current sending times of the login request are recorded; judging whether the current sending times are greater than the preset times or not; and if the current sending times are greater than the preset times, sending the login request again after a preset time interval.
In an optional embodiment, generating the report information according to the response type of the response information includes: acquiring a response type identifier of response information; judging whether the response type is a correct response or not according to the response type identifier; if the response type is correct, generating report information.
In an optional embodiment, if the response type is a correct response, generating reporting information includes: acquiring a data encryption identifier of a server; judging whether the reported information needs to be encrypted or not according to the data encryption identifier; if the reported information needs to be encrypted, creating a data packet with encrypted bytes; according to the state data and a preset data value assignment table, packaging the state data to generate a message body; and filling the message body into the data packet according to the start and end characters of the data packet to generate report information.
In a second aspect, an embodiment provides a communication data transmission method, including: receiving a login request from a terminal, wherein the login request carries identity information of the terminal; generating response information according to the identity information; sending response information to the terminal; receiving reported information from a terminal; generating feedback information according to the reported information; and sending the feedback information to the terminal.
In an optional embodiment, generating the response information according to the identity information includes: acquiring an identification code of identity information; judging whether the identity information meets the login condition or not according to the identification code of the identity information and a database; and if the identity information meets the login condition, generating response information carrying a correct response identifier.
In a third aspect, an embodiment provides a communication data transmission apparatus, including: the first sending module is used for sending a login request to the server, wherein the login request carries the identity information of the terminal; the first receiving module is used for receiving the response information from the server; the first generation module is used for generating the report information according to the response type of the response information; the second sending module is used for sending the report information to the server; and the second receiving module is used for receiving the feedback information from the server.
In an alternative embodiment, the first receiving module is configured to: judging whether response information of the server is received within a preset time period; if the response information of the server is not received within the preset time period, the login request is sent to the server again, and the current sending times of the login request are recorded; judging whether the current sending times are greater than the preset times or not; and if the current sending times are greater than the preset times, sending the login request again after a preset time interval.
In an alternative embodiment, the first generating module is configured to: acquiring a response type identifier of response information; judging whether the response type is a correct response or not according to the response type identifier; if the response type is correct, generating report information.
In an alternative embodiment, the first generating module is further configured to: acquiring a data encryption identifier of a server; judging whether the reported information needs to be encrypted or not according to the data encryption identifier; if the reported information needs to be encrypted, creating a data packet with encrypted bytes; according to the state data and a preset data value assignment table, packaging the state data to generate a message body; and filling the message body into the data packet according to the start and end characters of the data packet to generate report information.
In a fourth aspect, an embodiment provides a communication data transmission apparatus, including: the third receiving module is used for receiving a login request from the terminal, wherein the login request carries the identity information of the terminal; the second generating module is used for generating response information according to the identity information; the third sending module is used for sending the response information to the terminal; the fourth receiving module is used for receiving the reported information from the terminal; the third generation module is used for generating feedback information according to the reported information; and the fourth sending module is used for sending the feedback information to the terminal.
In an alternative embodiment, the second generating module is configured to: acquiring an identification code of identity information; judging whether the identity information meets the login condition or not according to the identification code of the identity information and a database; and if the identity information meets the login condition, generating response information carrying a correct response identifier.
In a fifth aspect, an embodiment provides an electronic device, including: a memory for storing a computer program; a processor for performing the method as in any one of the embodiments of the first aspect described above.
In a sixth aspect, an embodiment provides an electronic device, including: a memory for storing a computer program; a processor for performing the method as in any one of the embodiments of the second aspect described above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is an electronic device according to an embodiment of the present disclosure;
fig. 2 is an interaction schematic scene of a terminal and a server provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a communication data transmission method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another communication data transmission method provided in an embodiment of the present application;
fig. 5 is a schematic flowchart of another communication data transmission method provided in an embodiment of the present application;
fig. 6 is a schematic flowchart of another communication data transmission method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a communication data transmission apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another communication data transmission apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
As shown in fig. 1, the present embodiment provides an electronic apparatus 1 including: at least one processor 11 and a memory 12, one processor being exemplified in fig. 1. The processor 11 and the memory 12 are connected by a bus 10, and the memory 12 stores instructions executable by the processor 11 and the instructions are executed by the processor 11.
In one embodiment, the electronic device 1 may be a terminal 100. The terminal 100 sends a login request to the server 200 according to the identity information of the terminal 100, generates report information according to the received response information of the server 200, sends the report information to the server 200, and receives feedback information of the server 200 to complete the process of communication data transmission.
In one embodiment, the electronic device 1 may be a server 200. The server 200 may send a login request to the server 200 according to the identity information of the terminal 100, generate report information according to the received response information of the server 200, send the report information to the server 200, and receive feedback information of the server 200 to complete a communication data transmission process.
As shown in fig. 2, which is a schematic scenario of interaction between the terminal 100 and the server 200 in an embodiment of the present application, the terminal 100 may be a vehicle, and the server 200 may be a data monitoring or data storage server 200. The terminal 100 initiates a login request to the server 200, a communication link is established between the terminal 100 and the server 200, when the communication link is established successfully, the terminal 100 automatically sends identity information to the server 200 for identity recognition, the server verifies the received identity information, and when the verification is correct, the server 200 returns an identity verification success response; when the error is checked, the server 200 stores the error record and notifies the terminal 100. After the identity information is verified, the terminal 100 uploads various and time data of the vehicle for storage or analysis by the server 200. Thereby improving the timeliness and safety of maintaining the vehicle.
Please refer to fig. 3, which is a communication data transmission method provided in this embodiment, the method may be executed by the electronic device 1 shown in fig. 1 as the terminal 100, and may be applied to the interaction scenario shown in fig. 2, so that the terminal 100 sends a login request to the server 200 according to the identity information of the terminal 100, generates report information according to the received response information of the server 200, sends the report information to the server 200, and receives feedback information of the server 200, so as to complete a process of transmitting communication data. The method comprises the following steps:
step 301: and sending a login request to the server 200, wherein the login request carries the identity information of the terminal 100.
In this step, the terminal 100 may be a vehicle, and the user may upload related data of the vehicle to the server 200 by operating an intelligent device on the vehicle, for example, by operating a driving computer to upload the energy type, current speed information, driving mode information, and the like of the current vehicle to the server 200.
In one embodiment, before uploading the vehicle data, a communication link between the terminal 100 and the server 200 needs to be established, so the terminal 100 sends a login request with identity information to the server 200 and performs data uploading after the server 200 verifies that the identity information passes. The login request carries identity information of the vehicle, and the identity information can be a unique identification code of the vehicle and is used for distinguishing different vehicles. For example, the Vehicle Identification Number (VIN) may be a group of seventeen letters or numerals, and may be used to identify the manufacturer of the Vehicle, the engine, the chassis serial number, and other performance data.
Step 302: response information from the server 200 is received.
In this step, the response information is generated by the server 200 according to the identity information of the vehicle and transmitted to the vehicle, and the vehicle receives the response information.
Step 303: and generating the report information according to the response type of the response information.
In this step, after the vehicle sends the login request, the server 200 verifies whether the identity information of the vehicle has the login authority according to the login request, if so, the response type of the response information is correct response, and the vehicle acquires the vehicle data according to the correct response to generate the report information. If the vehicle does not have the login authority, the response type of the response information is an error response, and the vehicle reinitiates the login request according to the error response.
Step 304: and sending the report information to the server 200.
In this step, the report information is generated after the initial data is collected and integrated by the vehicle local processor, and the report information is uploaded to the server 200.
Step 305: feedback information from the server 200 is received.
In this step, the vehicle may determine whether the reported information is successfully uploaded or whether corresponding data needs to be re-extracted according to the feedback information after receiving the feedback information of the server 200.
Please refer to fig. 4, which is a communication data transmission method provided in this embodiment, the method may be executed by the electronic device 1 shown in fig. 1 as the terminal 100, and may be applied to the interaction scenario shown in fig. 2, so that the terminal 100 sends a login request to the server 200 according to the identity information of the terminal 100, generates report information according to the received response information of the server 200, sends the report information to the server 200, and receives feedback information of the server 200, so as to complete a process of transmitting communication data. The method comprises the following steps:
step 401: and sending a login request to the server 200, wherein the login request carries the identity information of the terminal 100. Please refer to the description of step 301 in the above embodiments.
Step 402: it is determined whether the response information of the server 200 is received within a preset time period.
In this step, since the vehicle may be in a space without network coverage or the signal connection is unstable, a time period may be set for detecting whether the current communication connection of the vehicle with the server 200 is normal. If the response message of the server 200 is not received within the preset time period, step 403 is entered, otherwise step 405 is entered.
Step 403: the login request is sent to the server 200 again, and the current number of times of sending the login request is recorded.
In this step, if the response message of the server 200 is not received within the preset time period, it indicates that one of the vehicle and the server 200 is in an offline state or the network delay is too high. Because the network delay is too high, the login request is unsuccessful, and the login request needs to be sent again to establish a communication link. And recording the current times of sending the login request, and stopping sending or sending again after a period of time after the current times of sending the login request exceed a certain number of times.
Step 404: and judging whether the current sending times are greater than the preset times or not.
In this step, as the number of times of re-sending the login request increases, the more time is consumed, and thus it is determined that the communication connection between the vehicle and the server 200 is one of the off-line and the information cannot be normally sent or received. The login request is sent again after a preset time interval, and the process returns to step 401. Otherwise, return to step 403.
Step 405: a response type identifier of the response information is obtained.
In this step, the response information is transmitted from the server 200 to the vehicle, and the vehicle identifies the response type of the response information according to the response type identifier of the response information.
Step 406: and judging whether the response type is a correct response.
In this step, it is determined whether the response type is a correct response according to the response type identifier, and if the response type is a correct response, the process proceeds to step 407. Otherwise, return to step 401.
Step 407: the data encryption identification of the server 200 is acquired.
In this step, if the response type is correct, it indicates that the server 200 has confirmed the login request of the vehicle, and the vehicle can now upload the data to the server 200. Further obtain the data encryption identification of server 200 to determine whether the data uploaded to server 200 needs to be encrypted.
Step 408: and judging whether the reported information needs to be encrypted.
In this step, whether the reported information needs to be encrypted is judged according to the data encryption identifier. If the reported information needs to be encrypted, step 409 is entered, otherwise step 410 is entered.
Step 409: a data packet with encrypted bytes is created.
In this step, when it is determined that the reported information needs to be encrypted according to the data encryption identifier, the terminal 100 encrypts the data.
In one embodiment, the terminal 100 and the server 200 use big-end mode network endian to deliver words and double words. Wherein, a complete data packet to be transmitted is composed of a start symbol, a command unit, an identification code, a data encryption mode, a data unit length, a data unit and a check code. The structure and definition of the data packet are shown in table 1 and table 2.
Table 1 packet structure and definition table:
Figure BDA0002387931800000091
Figure BDA0002387931800000101
table 2 command unit description table:
encoding Definition of Direction of transmission
0x01 Vehicle login message Uplink is carried out
0x02 Real-time information reporting Uplink is carried out
0x03 Reissue information reporting Uplink is carried out
0x04 Vehicle logout message Uplink is carried out
0x05 Platform check-in Uplink is carried out
0x06 Platform logout Uplink is carried out
0x07~0x08 Terminal 100 data reservation Uplink is carried out
0x09~0x07F Upstream data system reservation Uplink is carried out
0x80~0x82 Terminal 100 data reservation Downstream
0x83~0xBF Downlink data system reservation Downstream
0xC0~0xFE Platform exchange custom data Self-defining
Step 410: and packaging the state data according to the state data and a preset data value assignment table to generate a message body.
In the step, the vehicle acquires the state data of the vehicle according to the vehicle-mounted data acquisition device and other devices, and encapsulates the state data according to the preset data assignment table to generate a message body.
In one embodiment, the default data assignment table is shown in table 3.
Table 3 message body data unit comparison table
Figure BDA0002387931800000111
Figure BDA0002387931800000121
Figure BDA0002387931800000131
Step 411: and filling the message body into the data packet according to the start and end characters of the data packet to generate report information.
In this step, the message body is filled into the data packet according to the start/stop byte of the data packet, and in one embodiment, the message body is filled into the data packet according to the start/stop byte shown in table 1.
Please refer to fig. 5, which is a communication data transmission method provided in this embodiment, the method may be executed by the electronic device 1 shown in fig. 1 as the server 200, and may be applied to the interaction scenario shown in fig. 2, where a login request is sent to the server 200 by the server 200 according to the identity information of the terminal 100 through a communication network, a report message is generated according to the received response message of the server 200, and then the report message is sent to the server 200, and a feedback message of the server 200 is received, so as to complete a process of communication data transmission. The method comprises the following steps:
step 501: and receiving a login request from the terminal 100, wherein the login request carries the identity information of the terminal 100.
In this step, the terminal 100 may be a vehicle, and the server 200 verifies whether the login request is legal according to the identity information sent by the vehicle. The detailed description of the identity information can be referred to the description of step 301 in the above embodiment.
Step 502: and generating response information according to the identity information.
In this step, the server 200 queries whether the identity information exists in the database, and generates response information according to the query result.
Step 503: transmits the response message to the terminal 100.
In this step, the server 200 transmits the generated response information to the vehicle. The response information may include a response type identification code of the response information.
Step 504: and receiving the report information from the terminal 100.
In this step, the server 200 receives the report information sent by the vehicle according to the response information.
Step 505: and generating feedback information according to the reported information.
In this step, the server 200 receives the report information and parses the data packet, obtains the status data in the data packet, and generates the feedback information according to the status of the status data.
In an embodiment, the feedback information may be generated according to a missing condition of the state data, for example, the missing vehicle fuel amount data, and the feedback information is sent with a request for acquiring the fuel amount data.
Step 506: and sends the feedback information to the terminal 100.
In this step, the server 200 transmits the generated feedback information to the vehicle.
Please refer to fig. 6, which is a communication data transmission method provided in this embodiment, the method may be executed by the electronic device 1 shown in fig. 1 as a server 200, and may be applied to the interaction scenario shown in fig. 2, where a login request is sent to the server 200 by the server 200 according to the identity information of the terminal 100 through a communication network, a report message is generated according to the received response message of the server 200, and then the report message is sent to the server 200, and a feedback message of the server 200 is received, so as to complete a process of communication data transmission. The method comprises the following steps:
step 601: and receiving a login request from the terminal 100, wherein the login request carries the identity information of the terminal 100. Please refer to the description of step 501 in the above embodiments.
Step 602: and acquiring the identification code of the identity information.
In this step, the login request sent by the vehicle carries the identity information of the vehicle, and the identity information may be a unique identification code of the vehicle and is used for distinguishing different vehicles. For example, the Vehicle Identification Number (VIN) may be a group of seventeen letters or numerals, and may be used to identify the manufacturer of the Vehicle, the engine, the chassis serial number, and other performance data.
Step 603: and judging whether the identity information meets the login condition.
In this step, whether the identity information meets the login condition is judged according to the identification code of the identity information and the database. If the identity information meets the login condition, go to step 604, otherwise go to step 605.
Step 604: and generating response information carrying the correct response identification.
In this step, if the identification code of the identity information exists in the database, it indicates that the login request of the vehicle is legal, and adds the correct response identification to the response information.
Step 605: and generating response information carrying the wrong response identification.
In this step, if the identification code of the identity information does not exist in the database, it indicates that the login request of the vehicle is illegal, and adds an error response identification to the response information.
Step 606: transmits the response message to the terminal 100. Please refer to the description of step 503 in the above embodiments.
Step 606: and receiving the report information from the terminal 100. Please refer to the description of step 504 in the above embodiments.
Step 607: and generating feedback information according to the reported information. Please refer to the description of step 505 in the above embodiments.
Step 608: and sends the feedback information to the terminal 100. Please refer to the description of step 506 in the above embodiments.
Please refer to fig. 7, which is a communication data transmission apparatus 700 provided in this embodiment, and the apparatus may be applied to the electronic device 1 shown in fig. 1 and may be applied to the interaction scenario shown in fig. 2, so that the terminal 100 sends a login request to the server 200 according to the identity information of the terminal 100, generates report information according to the received response information of the server 200, sends the report information to the server 200, and receives feedback information of the server 200, so as to complete a process of transmitting communication data. The device includes: a first sending module 701, a first receiving module 702, a first generating module 703, a second sending module 704 and a second receiving module 705. The principle relationship of the modules is as follows:
the first sending module 701 is configured to send a login request to the server 200, where the login request carries identity information of the terminal 100.
A first receiving module 702, configured to receive the response information from the server 200. Please refer to the description of step 301 in the above embodiments.
The first generating module 703 is configured to generate the report information according to the response type of the response information. Please refer to the description of step 302 in the above embodiment.
A second sending module 704, configured to send the report information to the server 200. Please refer to the description of step 303 in the above embodiments.
A second receiving module 705, configured to receive feedback information from the server 200. Please refer to the description of step 304 in the above embodiment.
In one embodiment, the first receiving module 702 is configured to: it is determined whether the response information of the server 200 is received within a preset time period. If the response information of the server 200 is not received within the preset time period, the login request is sent to the server 200 again, and the current sending times of the login request are recorded. And judging whether the current sending times are greater than the preset times or not. And if the current sending times are greater than the preset times, sending the login request again after a preset time interval. Please refer to the description of steps 402-404 in the above embodiment.
In an embodiment, the first generating module 703 is configured to: a response type identifier of the response information is obtained. And judging whether the response type is a correct response or not according to the response type identifier. If the response type is correct response, the data encryption identifier of the server 200 is acquired. And judging whether the reported information needs to be encrypted or not according to the data encryption identifier. And if the reported information needs to be encrypted, creating a data packet with encrypted bytes. And packaging the state data according to the state data and a preset data value assignment table to generate a message body. And filling the message body into the data packet according to the start and end characters of the data packet to generate report information. Please refer to the description of step 405-411 in the above embodiment.
Please refer to fig. 8, which is a communication data transmission apparatus 800 provided in this embodiment, and the apparatus is applicable to the electronic device 1 shown in fig. 1 and is applicable to the interaction scenario shown in fig. 2, and a communication network is used to enable the server 200 to send a login request to the server 200 according to the identity information of the terminal 100, generate report information according to the received response information of the server 200, send the report information to the server 200, and receive feedback information of the server 200, so as to complete a process of communication data transmission. The device includes: a third receiving module 801, a second generating module 802, a third sending module 803, a fourth receiving module 804, a third generating module 805 and a fourth sending module 806.
The principle relationship of the modules is as follows:
a third receiving module 801, configured to receive a login request from the terminal 100, where the login request carries identity information of the terminal 100. Please refer to the description of step 501 in the above embodiments.
A second generating module 802, configured to generate a response message according to the identity information. Please refer to the description of step 502 in the above embodiments.
A third sending module 803, configured to send the response message to the terminal 100. Please refer to the description of step 503 in the above embodiments.
A fourth receiving module 804, configured to receive the report information from the terminal 100. Please refer to the description of step 504 in the above embodiments.
A third generating module 805, configured to generate feedback information according to the report information. Please refer to the description of step 505 in the above embodiments.
A fourth sending module 806, configured to send the feedback information to the terminal 100. Please refer to the description of step 506 in the above embodiments.
In one embodiment, the second generation module 802 is configured to: and acquiring the identification code of the identity information. And judging whether the identity information meets the login condition or not according to the identification code of the identity information and the database. And if the identity information meets the login condition, generating response information carrying a correct response identifier. And if the identity information does not accord with the login condition, generating response information carrying the wrong response identification. Please refer to the description of step 602-605 in the above embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for communicating data, comprising:
sending a login request to a server, wherein the login request carries identity information of a terminal;
receiving response information from the server;
generating report information according to the response type of the response information;
sending the reported information to the server;
receiving feedback information from the server.
2. The method of claim 1, wherein receiving the response message from the server comprises:
judging whether response information of the server is received within a preset time period;
if the response information of the server is not received within a preset time period, the login request is sent to the server again, and the current sending times of the login request are recorded;
judging whether the current sending times are greater than preset times or not;
and if the current sending times are greater than the preset times, sending the login request again after a preset time interval.
3. The method of claim 1, wherein the generating the report information according to the response type of the response information comprises:
acquiring a response type identifier of the response information;
judging whether the response type is a correct response or not according to the response type identifier;
and if the response type is correct, generating report information.
4. The method of claim 3, wherein generating the report message if the response type is a correct response comprises:
acquiring a data encryption identifier of the server;
judging whether the reported information needs to be encrypted or not according to the data encryption identifier;
if the reported information needs to be encrypted, creating a data packet with encrypted bytes;
according to the state data and a preset data value assignment table, packaging the state data to generate a message body;
and filling the message body into the data packet according to the start and end characters of the data packet to generate the report information.
5. A method for communicating data, comprising:
receiving a login request from a terminal, wherein the login request carries identity information of the terminal;
generating response information according to the identity information;
sending the response information to the terminal;
receiving reported information from the terminal;
generating feedback information according to the reported information;
and sending the feedback information to the terminal.
6. The method of claim 5, wherein generating the response message according to the identity information comprises:
acquiring an identification code of the identity information;
judging whether the identity information meets the login condition or not according to the identification code of the identity information and a database;
and if the identity information meets the login condition, generating the response information carrying a correct response identifier.
7. A communication data transmission apparatus, comprising:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending a login request to a server, and the login request carries identity information of a terminal;
the first receiving module is used for receiving the response information from the server;
the first generating module is used for generating the report information according to the response type of the response information;
the second sending module is used for sending the reported information to the server;
and the second receiving module is used for receiving the feedback information from the server.
8. A communication data transmission apparatus, comprising:
a third receiving module, configured to receive a login request from a terminal, where the login request carries identity information of the terminal;
the second generating module is used for generating response information according to the identity information;
a third sending module, configured to send the response message to the terminal;
a fourth receiving module, configured to receive the report information from the terminal;
a third generating module, configured to generate feedback information according to the report information;
and the fourth sending module is used for sending the feedback information to the terminal.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for performing the method of any one of claims 1-4.
10. An electronic device, comprising:
a memory for storing a computer program;
a processor for performing the method of any one of claims 5-6.
CN202010106289.0A 2020-02-20 2020-02-20 Communication data transmission method and device and electronic equipment Pending CN111314356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010106289.0A CN111314356A (en) 2020-02-20 2020-02-20 Communication data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010106289.0A CN111314356A (en) 2020-02-20 2020-02-20 Communication data transmission method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111314356A true CN111314356A (en) 2020-06-19

Family

ID=71160169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010106289.0A Pending CN111314356A (en) 2020-02-20 2020-02-20 Communication data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111314356A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114025353A (en) * 2021-11-04 2022-02-08 湖南三一华源机械有限公司 Data processing method and device for mobile equipment, storage medium and mobile equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425105A (en) * 2013-08-07 2013-12-04 合肥迈腾信息科技有限公司 Cloud service based on-board networking terminal and application method thereof
CN107846415A (en) * 2017-12-11 2018-03-27 北京奇虎科技有限公司 A kind of server log method and device
CN108011904A (en) * 2016-10-31 2018-05-08 比亚迪股份有限公司 Method for sending information, method of reseptance, device and information transmission system
CN109658542A (en) * 2018-11-16 2019-04-19 深圳市元征科技股份有限公司 Diagnostic parameters data verification method, device, vehicle diagnostic equipment and storage medium
CN110071904A (en) * 2018-01-24 2019-07-30 比亚迪股份有限公司 A kind of detection method of car-mounted terminal and system, server and storage medium
US20190340850A1 (en) * 2015-11-26 2019-11-07 Psa Automobiles S.A. Method and Terminal For Controlling the Establishment of a Vehicle Accident Report
CN110796763A (en) * 2019-09-24 2020-02-14 北京汽车集团有限公司 Vehicle state data processing method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425105A (en) * 2013-08-07 2013-12-04 合肥迈腾信息科技有限公司 Cloud service based on-board networking terminal and application method thereof
US20190340850A1 (en) * 2015-11-26 2019-11-07 Psa Automobiles S.A. Method and Terminal For Controlling the Establishment of a Vehicle Accident Report
CN108011904A (en) * 2016-10-31 2018-05-08 比亚迪股份有限公司 Method for sending information, method of reseptance, device and information transmission system
CN107846415A (en) * 2017-12-11 2018-03-27 北京奇虎科技有限公司 A kind of server log method and device
CN110071904A (en) * 2018-01-24 2019-07-30 比亚迪股份有限公司 A kind of detection method of car-mounted terminal and system, server and storage medium
CN109658542A (en) * 2018-11-16 2019-04-19 深圳市元征科技股份有限公司 Diagnostic parameters data verification method, device, vehicle diagnostic equipment and storage medium
CN110796763A (en) * 2019-09-24 2020-02-14 北京汽车集团有限公司 Vehicle state data processing method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114025353A (en) * 2021-11-04 2022-02-08 湖南三一华源机械有限公司 Data processing method and device for mobile equipment, storage medium and mobile equipment

Similar Documents

Publication Publication Date Title
CN103532803B (en) The network-building method of Internet of Things and system
CN110768882B (en) Data monitoring method and system, monitoring equipment and vehicle
CN101667928B (en) Client, signaling tracking server, protocol module and signaling tracking method
CN112788128B (en) Business information pushing method and device, storage medium and electronic device
CN105301383A (en) Vehicle detection method and system
CN110225123A (en) A kind of Vehicular data recording method and apparatus
CN103457802A (en) Information transmission system and method
CN113872840A (en) CAN data acquisition and transmission method, device and vehicle-mounted terminal
CN109542971A (en) Vehicle data processing method, device and readable storage medium storing program for executing
CN111314356A (en) Communication data transmission method and device and electronic equipment
CN111123807A (en) Calibration method for whole vehicle controller of new energy bus
CN110830491A (en) Internet of vehicles information acquisition method and device
CN111130937B (en) Protocol analysis method, device, electronic equipment and storage medium
CN111355787B (en) Information transmission method and device and electronic equipment
CN112566061B (en) Internet of vehicles data transmission method and system and vehicle service cloud
KR20160117811A (en) Vehicle network system and protocol communication method thereof
CN113542260A (en) Warehouse voice transmission method based on distribution mode
CN110740133A (en) network voting and election method and system based on RTMP protocol
CN112468295B (en) Internet of things communication encryption method, system and computer equipment based on parking spot lock equipment
CN114422496A (en) Mass traffic data processing system and method
CN112003867A (en) Communication method of vehicle-mounted T-BOX and cloud server and related equipment
CN114827260B (en) Data transmission method and related device
CN116055577B (en) Protocol conversion method, device, equipment and storage medium
CN113709141B (en) Communication method and device applied to Internet of things firmware and intelligent terminal
CN104579593B (en) Data monitoring system and method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200619