CN111131358A - Information acquisition method, device and system, readable storage medium and electronic equipment - Google Patents

Information acquisition method, device and system, readable storage medium and electronic equipment Download PDF

Info

Publication number
CN111131358A
CN111131358A CN201811291361.0A CN201811291361A CN111131358A CN 111131358 A CN111131358 A CN 111131358A CN 201811291361 A CN201811291361 A CN 201811291361A CN 111131358 A CN111131358 A CN 111131358A
Authority
CN
China
Prior art keywords
vehicle
vehicle machine
information
server
instruction information
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.)
Granted
Application number
CN201811291361.0A
Other languages
Chinese (zh)
Other versions
CN111131358B (en
Inventor
张加利
丁金卫
王定安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201811291361.0A priority Critical patent/CN111131358B/en
Publication of CN111131358A publication Critical patent/CN111131358A/en
Application granted granted Critical
Publication of CN111131358B publication Critical patent/CN111131358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to an information acquisition method, an information acquisition device, an information acquisition system, a readable storage medium and an electronic device. The method comprises the following steps: receiving instruction information sent by a server communicating with the vehicle machine through a publish-subscribe protocol; according to the instruction information, vehicle machine state information corresponding to the instruction information is obtained through a java reflection mechanism; and sending the vehicle machine state information to the server. Therefore, the user can obtain the instant state information of the corresponding vehicle machine at any time and any place through the client, and the method is convenient and fast. And the acquired instant state information is more comprehensive, a more powerful basis is provided for vehicle machine fault diagnosis, and a user can conveniently and accurately position faults.

Description

Information acquisition method, device and system, readable storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of vehicle control technologies, and in particular, to an information acquisition method, apparatus, system, readable storage medium, and electronic device.
Background
For most vehicle-mounted systems, when a vehicle machine fails, developers need to debug the vehicle machine on site. The method comprises the steps that a developer firstly connects a computer with a vehicle machine through a universal serial interface, and then obtains real-time state information of the vehicle machine through different instructions so as to perform fault diagnosis according to the real-time state information and historical vehicle machine uploading data. However, when the vehicle machine has less or missing historical uploaded data, the fault diagnosis is quite time-consuming and labor-consuming.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides an information acquisition method, apparatus, system, readable storage medium, and electronic device.
In order to achieve the above object, according to a first aspect of the embodiments of the present disclosure, an information obtaining method is provided, which is applied to a vehicle machine, and includes:
receiving instruction information sent by a server communicating with the vehicle machine through a publish-subscribe protocol;
according to the instruction information, vehicle machine state information corresponding to the instruction information is obtained through a java reflection mechanism;
and sending the vehicle machine state information to the server.
Optionally, the publish-subscribe protocol is a message queue telemetry transport protocol.
Optionally, the method further comprises:
receiving a random code sent by the server;
the sending the vehicle machine state information to the server includes:
and sending the vehicle machine state information and the random code to the server.
According to a second aspect of the embodiments of the present disclosure, there is provided an information acquisition method, applied to a server, including:
receiving instruction information and vehicle machine identification information sent by a client;
sending the instruction information to a vehicle machine corresponding to the vehicle machine identification information through a publish-subscribe protocol;
receiving the vehicle-mounted machine state information sent by the vehicle-mounted machine;
and sending the vehicle machine state information to the client.
Optionally, the publish-subscribe protocol is a message queue telemetry transport protocol.
Optionally, the method further comprises:
generating a random code after receiving the instruction information and the vehicle machine identification information;
sending the random code to the vehicle machine, and performing associated storage on the random code and the instruction information;
receiving the vehicle machine state information sent by the vehicle machine, including:
receiving the vehicle machine state information and the random code sent by the vehicle machine;
the method further comprises the following steps:
and acquiring target instruction information corresponding to the random code, and performing associated storage on the target instruction information and the vehicle machine state information.
According to a third aspect of the embodiments of the present disclosure, an information obtaining apparatus is provided, which is applied to a vehicle machine, and includes:
the first receiving module is used for receiving instruction information sent by a server communicating with the vehicle machine through a publish-subscribe protocol;
the obtaining module is used for obtaining the vehicle-mounted machine state information corresponding to the instruction information through a java reflection mechanism according to the instruction information received by the first receiving module;
and the first sending module is used for sending the vehicle-mounted device state information acquired by the acquiring module to the server.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an information acquisition apparatus, applied to a server, including:
the second receiving module is used for receiving the instruction information and the vehicle machine identification information sent by the client;
the second sending module is used for sending the instruction information received by the second receiving module to the vehicle machine corresponding to the vehicle machine identification information through a publish-subscribe protocol;
the third receiving module is used for receiving the vehicle-mounted machine state information sent by the vehicle-mounted machine;
and the third sending module is used for sending the vehicle-mounted machine state information received by the third receiving module to the client.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an information acquisition system including:
at least one vehicle machine, configured to perform the steps of the information obtaining method provided in the first aspect of the present disclosure;
the server is respectively connected with the at least one vehicle machine and is used for executing the steps of the information acquisition method provided by the second aspect of the disclosure; and
and the client is respectively connected with the server and used for sending the instruction information and the vehicle machine identification information to the server and receiving the vehicle machine state information sent by the server after receiving the instruction information and the vehicle machine identification information input by a user.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the steps of the information acquisition method provided by the first or second aspect of the present disclosure.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an electronic apparatus, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the information acquisition method provided by the first aspect or the second aspect of the present disclosure.
In the technical scheme, the client sends the instruction information and the vehicle machine identification information to the server; then, the server sends the instruction information to the vehicle machine corresponding to the vehicle machine identification information through a publish-subscribe protocol; the vehicle machine receives the instruction information through a publish-subscribe protocol, acquires vehicle machine state information corresponding to the instruction information through a java reflection mechanism, and sends the vehicle machine state information to the server; and the server receives the vehicle machine state information and feeds the vehicle machine state information back to the client. Therefore, the user can obtain the instant state information of the corresponding vehicle machine at any time and any place through the client, and the method is convenient and fast. And the acquired instant state information is more comprehensive, a more powerful basis is provided for vehicle machine fault diagnosis, and a user can conveniently and accurately position faults.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a block diagram illustrating the structure of an information acquisition system according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating an information acquisition method according to an example embodiment.
Fig. 3 is a flow chart illustrating an information acquisition method according to another exemplary embodiment.
Fig. 4 is a flow chart illustrating an information acquisition method according to an example embodiment.
Fig. 5 is a flowchart illustrating an information acquisition method according to another exemplary embodiment.
Fig. 6 is a block diagram illustrating an information acquisition apparatus according to an example embodiment.
Fig. 7 is a block diagram illustrating an information acquisition apparatus according to an example embodiment.
FIG. 8 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 9 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a block diagram illustrating the structure of an information acquisition system according to an exemplary embodiment. Referring to fig. 1, the system may include: the system comprises a server 1, at least one vehicle machine 2 and at least one client 3. In the present disclosure, the server 1 is in communication connection with each car machine 2 and each client 3, and the server 1 and each car machine 2 and each client 3 may communicate via a 2G network, a 3G network, a 4G network, bluetooth, WIFI, etc., for example, to complete data transmission. The client 3 may be configured to receive instruction information and vehicle machine identification information input by a user, and send the instruction information and the vehicle machine identification information to the server 1; the server 1 may be configured to receive the instruction information and the car machine identification information, and send the instruction information to the car machine 2 corresponding to the car machine identification information; the car machine 2 may be configured to obtain car machine state information corresponding to the instruction information after receiving the instruction information, and feed back the car machine state information to the client 3 through the server 1. The client 3 may be, for example, a smart phone, a tablet computer, a personal computer, or the like, and is not particularly limited in this disclosure.
Specifically, the server 1 may implement, through steps 201 to 204 shown in fig. 2, obtaining the vehicle-machine state information of the corresponding vehicle machine.
In step 201, instruction information and car machine identification information sent by a client are received.
In this disclosure, the car machine identification information may be an Integrated Circuit Card Identification (ICCID), a car machine number, or the like. The instruction information may be an instruction for acquiring network card information of the vehicle machine, may also be an instruction for acquiring a current running state of the vehicle machine, and may also be an instruction for acquiring corresponding cache data on the vehicle machine, which is not specifically limited in this disclosure.
When a user needs to know the vehicle-machine state information of any vehicle machine, corresponding instruction information and vehicle-machine identification information can be input into the client; after receiving the instruction information and the vehicle machine identification information, the client can send the instruction information and the vehicle machine identification information to the server; and the server receives the instruction information and the vehicle machine identification information.
In step 202, the instruction information is sent to the car machine corresponding to the car machine identification information through a publish-subscribe protocol.
In the present disclosure, the publish-subscribe protocol may be a Message Queue Telemetry Transport (MQTT), a card (Kafka) protocol, or the like. Furthermore, the server may pre-store a corresponding relationship between the car machine identification information and the car machine network address, for example, the server may store the corresponding relationship in a table form. In this way, after the server receives the vehicle machine identification information and the instruction information sent by any client, the network address of the vehicle machine corresponding to the received vehicle machine identification can be determined by searching the corresponding relationship between the pre-stored vehicle machine identification information and the vehicle machine network address; then, the server may send the instruction information to the network address through a publish-subscribe protocol, that is, to the car machine corresponding to the car machine identifier, and the car machine receives the instruction information through the publish-subscribe protocol.
After the vehicle machine corresponding to the vehicle machine identifier receives the instruction information, the vehicle machine state information corresponding to the instruction information can be acquired through a java reflection mechanism according to the instruction information. Specifically, after receiving the instruction information, the car machine corresponding to the car machine identifier may parse the instruction information; then, according to the analyzed instruction information, acquiring the running environment of the current JVM through a java reflection mechanism (runtime. getruntime () function), and then transmitting the analyzed instruction information to an exc () method for execution, wherein the return value of the exc () method is the vehicle machine state information; then, the car machine sends the car machine state information to a server, for example, the car machine may send its own car machine state information to the server through hypertext transfer Protocol (HTTP); the server receives the car machine state information (step 203).
In step 203, the car machine state information sent by the car machine is received.
In step 204, the vehicle machine state information is sent to the client.
In this disclosure, after receiving the car machine state information sent by the car machine, the server may send the car machine state information to the client, and the client receives the car machine state information. Therefore, the user can obtain the vehicle-machine state information of the corresponding vehicle machine through the client.
In the technical scheme, the client sends the instruction information and the vehicle machine identification information to the server; then, the server sends the instruction information to the vehicle machine corresponding to the vehicle machine identification information through a publish-subscribe protocol; the vehicle machine receives the instruction information through a publish-subscribe protocol, acquires vehicle machine state information corresponding to the instruction information through a java reflection mechanism, and sends the vehicle machine state information to the server; and the server receives the vehicle machine state information and feeds the vehicle machine state information back to the client. Therefore, the user can obtain the instant state information of the corresponding vehicle machine at any time and any place through the client, and the method is convenient and fast. And the acquired instant state information is more comprehensive, a more powerful basis is provided for vehicle machine fault diagnosis, and a user can conveniently and accurately position faults.
Fig. 3 is a flowchart illustrating an information acquisition method according to another exemplary embodiment, wherein the method may be applied to a server, for example, the server 1 illustrated in fig. 1. As shown in fig. 3, the method may further include the following steps 205 to 207.
In step 205, after the instruction information and the in-vehicle machine identification information are received, a random code is generated.
In step 206, the random code is sent to the car machine, and the random code and the instruction information are stored in an associated manner.
In this disclosure, in order to facilitate a subsequent user to continuously obtain the vehicle device state information in a short time and obtain the vehicle device state information in a historical time period, the server may locally store the vehicle device state information after obtaining the vehicle device state information. However, the server may receive a plurality of pieces of car-machine state information at the same time at a certain time, and at this time, the server cannot know the correspondence between each piece of car-machine state information and the previously received instruction information, so that the server may generate a random code (e.g., a random number) after receiving the instruction information and the car-machine identification information sent by the client in step 201.
Then, the server can send the random code to the vehicle machine corresponding to the vehicle machine identification information through a publish-subscribe protocol; the vehicle machine receives the random code through a publish-subscribe protocol, and after vehicle machine state information corresponding to the instruction information is obtained through a java reflection mechanism, the vehicle machine sends the random code and the vehicle machine state information to the server; and the server receives the vehicle machine state information and the random code.
In addition, after the server generates the random code, the server may perform associated storage on the random code and corresponding instruction information, that is, establish a corresponding relationship between the random code and the instruction information, and store the corresponding relationship.
It should be noted that, the step 206 may be executed before the step 202, may be executed after the step 202, may be executed simultaneously with the step 202, and is not particularly limited in this disclosure.
In step 207, target instruction information corresponding to the random code is obtained, and the target instruction information and the vehicle-mounted device state information are stored in an associated manner.
In this disclosure, after receiving the vehicle-machine state information and the random code sent by the vehicle machine, the server may obtain target instruction information corresponding to the received random code according to a corresponding relationship between the random code and the instruction information, and then perform associated storage on the target instruction information and the vehicle-machine state information, that is, establish a corresponding relationship between the instruction information and the vehicle-machine state information, and store the corresponding relationship.
Fig. 4 is a flowchart illustrating an information obtaining method according to an exemplary embodiment, where the method may be applied to a car machine, for example, the car machine 2 shown in fig. 1. As shown in fig. 4, the above method may include the following steps 301 to 303.
In step 301, instruction information sent by a server in communication with a car machine is received through a publish-subscribe protocol.
In step 302, according to the instruction information, the vehicle-mounted device state information corresponding to the instruction information is acquired through a java reflection mechanism.
In step 303, the car machine state information is sent to the server.
Fig. 5 is a flowchart illustrating an information obtaining method according to an exemplary embodiment, where the method may be applied to a car machine, for example, the car machine 2 shown in fig. 1. As shown in fig. 5, the above method may include the following step 304.
In step 304, a random code sent by the server is received.
In this disclosure, after acquiring the vehicle-mounted device state information of the vehicle-mounted device, the vehicle-mounted device may send the vehicle-mounted device state information and the corresponding random code to the server together.
Fig. 6 is a block diagram illustrating an information obtaining apparatus according to an exemplary embodiment, where the apparatus 600 may be applied to a vehicle machine, for example, the vehicle machine 2 shown in fig. 1. Referring to fig. 6, the apparatus 600 may include: a first receiving module 601, configured to receive, through a publish-subscribe protocol, instruction information sent by a server in communication with the car machine; an obtaining module 602, configured to obtain vehicle-mounted device state information corresponding to the instruction information through a java reflection mechanism according to the instruction information received by the first receiving module 601; a first sending module 603, configured to send the vehicle-mounted device status information obtained by the obtaining module 602 to the server.
Optionally, the publish-subscribe protocol is a message queue telemetry transport protocol.
Optionally, the first receiving module 601 is further configured to receive a random code sent by the server; the first sending module 603 is configured to send the car machine state information acquired by the acquiring module 602 and the random code received by the first receiving module 601 to the server together.
Fig. 7 is a block diagram illustrating an information acquisition apparatus according to an exemplary embodiment, wherein the apparatus 700 may be applied to a server, for example, the server 1 shown in fig. 1. Referring to fig. 7, the apparatus 700 may include: the second receiving module 701 is configured to receive instruction information and vehicle machine identification information sent by a client; a second sending module 702, configured to send the instruction information received by the second receiving module 701 to a car machine corresponding to the car machine identification information through a publish-subscribe protocol; a third receiving module 703, configured to receive the vehicle-mounted device state information sent by the vehicle-mounted device; a third sending module 704, configured to send the vehicle-mounted device state information received by the third receiving module 703 to the client.
Optionally, the publish-subscribe protocol is a message queue telemetry transport protocol.
Optionally, the apparatus 700 may further include: a generating module, configured to generate a random code after the second receiving module 701 receives the instruction information and the vehicle-mounted device identification information; the storage module is configured to send the random code generated by the generation module to the car machine, and perform associated storage on the random code and the instruction information received by the second receiving module 701; the third receiving module 703 is configured to receive the vehicle-mounted device state information and the random code sent by the vehicle-mounted device; the storage module is further configured to acquire target instruction information corresponding to the random code received by the third receiving module 703, and store the target instruction information and the vehicle-mounted device state information in an associated manner.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present disclosure also provides a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the vehicle-side or server-side information acquisition method.
Fig. 8 is a block diagram illustrating an electronic device 800 in accordance with an example embodiment. As shown in fig. 8, the electronic device 800 may include: a processor 801, a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communications component 805.
The processor 801 is configured to control the overall operation of the electronic device 800, so as to complete all or part of the steps in the above-mentioned vehicle-side information obtaining method. The memory 802 is used to store various types of data to support operation at the electronic device 800, such as instructions for any application or method operating on the electronic device 800 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 802 or transmitted through the communication component 805. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for executing the above-mentioned information acquisition method on the vehicle side.
In another exemplary embodiment, there is also provided a computer-readable storage medium including program instructions which, when executed by a processor, implement the steps of the above-described vehicle-side information acquisition method. For example, the computer-readable storage medium may be the above-described memory 802 including program instructions executable by the processor 801 of the electronic device 800 to perform the above-described vehicle-side information acquisition method.
Fig. 9 is a block diagram illustrating an electronic device 900 in accordance with an example embodiment. For example, the electronic device 900 may be provided as a server. Referring to fig. 9, the electronic device 900 includes a processor 922, which may be one or more in number, and a memory 932 for storing computer programs executable by the processor 922. The computer programs stored in memory 932 may include one or more modules that each correspond to a set of instructions. Further, the processor 922 may be configured to execute the computer program to perform the above-described server-side information acquisition method.
Additionally, the electronic device 900 may also include a power component 926 and a communication component 950, the power component 926 may be configured to perform power management of the electronic device 900, and the communication component 950 may be configured to enable communication, e.g., wired or wireless communication, of the electronic device 900. The electronic device 900 may also include input/output (I/O) interfaces 958. The electronic device 900 may operate based on an operating system stored in the memory 932, such as Windows Server, Mac OSXTM, UnixTM, LinuxTM, and the like.
In another exemplary embodiment, there is also provided a computer-readable storage medium including program instructions which, when executed by a processor, implement the steps of the above-described server-side information acquisition method. For example, the computer readable storage medium may be the memory 932 described above including program instructions that are executable by the processor 922 of the electronic device 900 to perform the server-side information acquisition method described above.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (11)

1. The utility model provides an information acquisition method, is applied to the car machine, its characterized in that includes:
receiving instruction information sent by a server communicating with the vehicle machine through a publish-subscribe protocol;
according to the instruction information, vehicle machine state information corresponding to the instruction information is obtained through a java reflection mechanism;
and sending the vehicle machine state information to the server.
2. The method of claim 1, wherein the publish-subscribe protocol is a message queue telemetry transport protocol.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a random code sent by the server;
the sending the vehicle machine state information to the server includes:
and sending the vehicle machine state information and the random code to the server.
4. An information acquisition method applied to a server is characterized by comprising the following steps:
receiving instruction information and vehicle machine identification information sent by a client;
sending the instruction information to a vehicle machine corresponding to the vehicle machine identification information through a publish-subscribe protocol;
receiving the vehicle-mounted machine state information sent by the vehicle-mounted machine;
and sending the vehicle machine state information to the client.
5. The method of claim 4, wherein the publish-subscribe protocol is a message queue telemetry transport protocol.
6. The method according to claim 4 or 5, characterized in that the method further comprises:
generating a random code after receiving the instruction information and the vehicle machine identification information;
sending the random code to the vehicle machine, and performing associated storage on the random code and the instruction information;
receiving the vehicle machine state information sent by the vehicle machine, including:
receiving the vehicle machine state information and the random code sent by the vehicle machine;
the method further comprises the following steps:
and acquiring target instruction information corresponding to the random code, and performing associated storage on the target instruction information and the vehicle machine state information.
7. The utility model provides an information acquisition device, is applied to the car machine, its characterized in that includes:
the first receiving module is used for receiving instruction information sent by a server communicating with the vehicle machine through a publish-subscribe protocol;
the obtaining module is used for obtaining the vehicle-mounted machine state information corresponding to the instruction information through a java reflection mechanism according to the instruction information received by the first receiving module;
and the first sending module is used for sending the vehicle-mounted device state information acquired by the acquiring module to the server.
8. An information acquisition apparatus applied to a server, comprising:
the second receiving module is used for receiving the instruction information and the vehicle machine identification information sent by the client;
the second sending module is used for sending the instruction information received by the second receiving module to the vehicle machine corresponding to the vehicle machine identification information through a publish-subscribe protocol;
the third receiving module is used for receiving the vehicle-mounted machine state information sent by the vehicle-mounted machine;
and the third sending module is used for sending the vehicle-mounted machine state information received by the third receiving module to the client.
9. An information acquisition system, comprising:
at least one vehicle machine for performing the steps of the method of any one of claims 1-3;
a server, connected to the at least one vehicle machine, respectively, for performing the steps of the method according to any one of claims 4 to 6; and
and the client is respectively connected with the server and used for sending the instruction information and the vehicle machine identification information to the server and receiving the vehicle machine state information sent by the server after receiving the instruction information and the vehicle machine identification information input by a user.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
11. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 6.
CN201811291361.0A 2018-10-31 2018-10-31 Information acquisition method, device and system, readable storage medium and electronic equipment Active CN111131358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811291361.0A CN111131358B (en) 2018-10-31 2018-10-31 Information acquisition method, device and system, readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811291361.0A CN111131358B (en) 2018-10-31 2018-10-31 Information acquisition method, device and system, readable storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111131358A true CN111131358A (en) 2020-05-08
CN111131358B CN111131358B (en) 2021-10-22

Family

ID=70494664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811291361.0A Active CN111131358B (en) 2018-10-31 2018-10-31 Information acquisition method, device and system, readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111131358B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363925A (en) * 2020-11-10 2021-02-12 湖北亿咖通科技有限公司 Method for acquiring vehicle-mounted machine basic information, electronic equipment and computer storage medium
CN113844315A (en) * 2021-09-24 2021-12-28 北京胜能能源科技有限公司 Method, device, medium, electronic device and server for acquiring battery pack information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102431523A (en) * 2011-11-30 2012-05-02 深圳市车音网科技有限公司 Vehicle monitoring system and method
KR101145556B1 (en) * 2004-11-01 2012-05-15 엘지전자 주식회사 examining system of car using wireless communication network and method thereof
CN104537727A (en) * 2014-12-15 2015-04-22 北京九五智驾信息技术股份有限公司 Vehicle condition recording system based on internet of vehicles
CN105262605A (en) * 2014-07-17 2016-01-20 阿里巴巴集团控股有限公司 Method, apparatus and system for obtaining local information
CN108263303A (en) * 2016-12-30 2018-07-10 上海擎感智能科技有限公司 Control method for vehicle, apparatus and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101145556B1 (en) * 2004-11-01 2012-05-15 엘지전자 주식회사 examining system of car using wireless communication network and method thereof
CN102431523A (en) * 2011-11-30 2012-05-02 深圳市车音网科技有限公司 Vehicle monitoring system and method
CN105262605A (en) * 2014-07-17 2016-01-20 阿里巴巴集团控股有限公司 Method, apparatus and system for obtaining local information
CN104537727A (en) * 2014-12-15 2015-04-22 北京九五智驾信息技术股份有限公司 Vehicle condition recording system based on internet of vehicles
CN108263303A (en) * 2016-12-30 2018-07-10 上海擎感智能科技有限公司 Control method for vehicle, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
青岛农业大学,青岛英谷教育科技股份有限公司编著: "《Java SE程序设计及实践》", 31 August 2015 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363925A (en) * 2020-11-10 2021-02-12 湖北亿咖通科技有限公司 Method for acquiring vehicle-mounted machine basic information, electronic equipment and computer storage medium
CN113844315A (en) * 2021-09-24 2021-12-28 北京胜能能源科技有限公司 Method, device, medium, electronic device and server for acquiring battery pack information
CN113844315B (en) * 2021-09-24 2024-01-26 北京胜能能源科技有限公司 Method, device, medium, electronic equipment and server for acquiring battery pack information

Also Published As

Publication number Publication date
CN111131358B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN109117361B (en) Remote debugging method, related equipment and system for small program
CN107592238B (en) Automatic test method and system of interface, service terminal and memory
CN110032512B (en) Debugging method of small program, related equipment and terminal
US20160050128A1 (en) System and Method for Facilitating Communication with Network-Enabled Devices
WO2018019236A1 (en) Method and apparatus for sharing application program, and electronic device
CN108027725B (en) Method, device and equipment for guiding terminal equipment operation
CN113365106B (en) Multimedia resource generation method and device, electronic equipment and storage medium
CN104778063A (en) Method and device for updating resource
US10863312B2 (en) Moving track sharing method and apparatus, and storage medium
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN108712320B (en) Message pushing method and device
CN111131358B (en) Information acquisition method, device and system, readable storage medium and electronic equipment
US11740997B2 (en) Method and apparatus for debugging a device
CN111949314A (en) Method and device for generating application installation package, server and storage medium
CN108900627B (en) Network request method, terminal device and storage medium
CN103944961A (en) Application sharing method, device and system
CN109684112B (en) Program file operation method, device, terminal and storage medium
CN110618768B (en) Information presentation method and device
CN108984417B (en) Software testing method, device, terminal and storage medium
CN106302093B (en) Communication method, system and server
CN106294119B (en) Test scheduling system and method and terminal equipment
CN104184768A (en) Method of transmitting data of Internet of things, device and system
WO2015003570A1 (en) Data downloading method,device and system thereof
CN107809418B (en) Autonomous binding method and system for LoRa terminal equipment
CN108874381B (en) Method and device for outputting page view controller and electronic equipment

Legal Events

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