CN115967739A - Remote instruction issuing method for batch vehicle-mounted equipment - Google Patents
Remote instruction issuing method for batch vehicle-mounted equipment Download PDFInfo
- Publication number
- CN115967739A CN115967739A CN202211703276.7A CN202211703276A CN115967739A CN 115967739 A CN115967739 A CN 115967739A CN 202211703276 A CN202211703276 A CN 202211703276A CN 115967739 A CN115967739 A CN 115967739A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- instruction
- equipment
- batch
- mounted equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 20
- 230000004044 response Effects 0.000 claims description 30
- 238000013507 mapping Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 5
- 238000012549 training Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses a remote instruction issuing method for batch vehicle-mounted equipment, which is mainly designed and conceived in order to solve the problem that the batch instruction issuing fails due to the existing round training mechanism, the online state of each vehicle-mounted equipment is determined through an equipment gateway before an instruction server issues an instruction, the online vehicle-mounted equipment is grouped based on the bearing capacity of the equipment gateway, then the instruction is issued to the vehicle-mounted equipment in a single group by taking the group as a unit, the instruction response of the vehicle-mounted equipment in the current group is waited and recorded, the instruction issuing to each vehicle-mounted equipment in the next group is triggered based on the instruction response of the current group, and the process is repeated until the instructions in all the groups are sent. The invention can greatly reduce the burden of the equipment gateway and effectively utilize the resources of the server, thereby providing sufficient guarantee for the reliability of issuing the batch instructions.
Description
Technical Field
The invention relates to the field of intelligent networked automobiles, in particular to a remote instruction issuing method for batch vehicle-mounted equipment.
Background
Under a specific practical application scene, an internet of vehicles platform needs to issue instructions to a plurality of vehicle terminals, and at present, a mainstream method is mainly to execute a round training strategy for issuing instructions in batches, that is, each online vehicle-mounted device (such as a T-box) needs to be checked and issued at the same time, and if the number of the devices is large, the burden of a device gateway is obviously increased, so that the instructions are failed to be issued to the vehicle terminals.
Disclosure of Invention
In view of the above, the present invention aims to provide a remote instruction issuing method for batch vehicle-mounted devices, so as to solve the aforementioned technical problem that remote instruction batch issuing fails due to increase of device gateway processing pressure.
The technical scheme adopted by the invention is as follows:
the invention provides a remote instruction issuing method for batch vehicle-mounted equipment, which comprises the following steps:
before issuing the instruction, the instruction server determines the online state of each vehicle-mounted device through the device gateway;
dividing the on-line vehicle-mounted equipment into a plurality of groups based on the bearing capacity of the command issued by the equipment gateway;
taking a group as a unit, an instruction server issues an instruction to the vehicle-mounted equipment in a single group through an equipment gateway;
after the instruction is sent to the current group, waiting and recording the instruction response of the vehicle-mounted equipment in the current group;
and triggering to issue the instructions to each vehicle-mounted device in the next group based on the instruction response of the current group, and repeating the steps until the instructions in all the groups are sent.
In at least one possible implementation manner, the triggering, based on the instruction response of the current group, instruction issuing on each vehicle-mounted device in the next group includes: and when the number of the received instruction responses is larger than or equal to the set proportion of the number of the vehicle-mounted equipment in the current group, triggering and executing remote instruction issuing on the vehicle-mounted equipment in the next group.
In at least one possible implementation manner, the triggering, based on the instruction response of the current group, instruction issuing on each vehicle-mounted device in the next group includes: and when the current time and the instruction sending time are greater than or equal to the set multiple of the preset instruction response average time length, triggering and executing remote instruction issuing on the vehicle-mounted equipment in the next group.
In at least one possible implementation manner, the determining the online status of each vehicle-mounted device includes:
sending tcp heartbeat data to the equipment gateway by the vehicle-mounted equipment according to a set period;
and recording the online state of the vehicle-mounted equipment based on the tcp heartbeat data by the equipment gateway.
In at least one possible implementation manner, if the tcp heartbeat data of the vehicle-mounted device is not received by the device gateway after exceeding a preset time period, the online state of the vehicle-mounted device is removed.
In at least one possible implementation manner, the recording of the instruction response of the vehicle-mounted device in the current group includes: and the instruction server correspondingly inputs the received instruction response to a preset device instruction mapping table, wherein the device instruction mapping table is used for recording reply information of the vehicle-mounted device after receiving the remote instruction.
In at least one possible implementation manner, the device instruction mapping table is stored in a memory of the instruction server in a form of a list of key value pairs, and the key value pairs are composed of the vehicle-mounted device and the instruction response.
In at least one possible implementation manner, the method further includes: and if the command server determines that the vehicle-mounted equipment is not on line through the equipment gateway, putting the off-line vehicle-mounted equipment into a preset off-line equipment pool.
In at least one possible implementation manner, the method further includes: the instruction server regularly inquires whether the online state of the vehicle-mounted equipment in the offline equipment pool changes, if the online state of the vehicle-mounted equipment in the offline equipment pool changes to be online, the vehicle-mounted equipment in the online state is taken out of the offline equipment pool, and grouping and instruction issuing processing are carried out according to a grouping strategy; and if the vehicle-mounted equipment is still in the offline state, continuously keeping the offline vehicle-mounted equipment in the offline equipment pool.
The main design concept of the invention is that, in order to solve the problem that the existing round training mechanism causes the failure of batch instruction issuing, the online state of each vehicle-mounted device is determined through an equipment gateway before an instruction server issues the instruction, the online vehicle-mounted devices are grouped based on the bearing capacity of the equipment gateway, then the instruction is issued to the vehicle-mounted devices in a single group by taking the group as a unit, the instruction response of the vehicle-mounted devices in the current group is waited and recorded, the instruction issuing to each vehicle-mounted device in the next group is triggered based on the instruction response of the current group, and the like until the instructions in all the groups are sent completely. The invention can greatly reduce the burden of the equipment gateway and effectively utilize the resources of the server, thereby providing sufficient guarantee for the reliability of issuing the batch instructions.
Further, when a single group is grouped and a group is taken as a unit to issue an instruction, the instruction issuing success rate of the current group equipment and the load pressure of the equipment gateway can be comprehensively considered for the issuing opportunity of the next group.
Furthermore, an offline device pool can be constructed to temporarily store the offline vehicle-mounted device, and the command issuing processing is recovered according to the grouping and command issuing strategy after the state of the offline vehicle-mounted device is changed to be online.
Drawings
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described with reference to the accompanying drawings, in which:
fig. 1 is a schematic flowchart of a remote instruction issuing method for batch vehicle-mounted devices according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
The invention provides an embodiment of a remote instruction issuing method for batch vehicle-mounted equipment, and specifically, as shown in fig. 1, the method includes:
step S1, before issuing an instruction, an instruction server determines the online state of each vehicle-mounted device through an equipment gateway;
firstly, before an instruction server issues an instruction to a vehicle-mounted T-box, the online state of a target device (namely, a vehicle-mounted device needing to issue the instruction) can be inquired through an equipment gateway, in actual operation, tcp heartbeat data can be sent to the equipment gateway by the vehicle-mounted device according to a set period, the online state of the vehicle-mounted device is recorded by the equipment gateway based on the tcp heartbeat data, and based on the tcp heartbeat data, if the tcp heartbeat data of the vehicle-mounted device is not received after a preset time length is exceeded, the online state of the vehicle-mounted device is removed by the equipment gateway.
S2, dividing the on-line vehicle-mounted equipment into a plurality of groups based on the bearing capacity of the instruction issued by the equipment gateway;
specifically, the number of the vehicle-mounted devices in each group is predetermined by the bearer amount of the command issued by the device gateway, for example, one thousand may be taken as the number of the vehicle-mounted devices in each group.
S3, taking the group as a unit, and issuing an instruction to the vehicle-mounted equipment in the single group by the instruction server through the equipment gateway;
s4, after the instruction is sent to the current group, waiting and recording the instruction response of the vehicle-mounted equipment in the current group;
and S5, triggering to issue the instructions to each vehicle-mounted device in the next group based on the instruction response of the current group, and repeating the steps until the instructions in all the groups are sent.
With respect to the above concept, the following specific description can be made:
that is, the device gateway issues instructions to all the vehicle-mounted devices in the first group (for example, the group number is group 1, which may not be limited) at the same time in a multithreading manner. And after the command is sent, waiting for a command response of the vehicle-mounted equipment in the current group, and further, correspondingly inputting the received command response into a preset equipment command mapping table by the command server, wherein the equipment command mapping table is used for recording reply information of the vehicle-mounted equipment after receiving the remote command, and accordingly, judging whether the vehicle-mounted equipment receives the issued remote command. In actual operation, the device instruction mapping table is stored in a memory of the instruction server in a list form of key value pairs, and the key value pairs are formed by the vehicle-mounted device and the instruction response.
In the foregoing, the instruction response based on the current group triggers instruction issue for each vehicle-mounted device in the next group, and may be considered from two aspects of instruction issue success rate and/or device gateway load: for example, when the number of received command responses is greater than or equal to a predetermined proportion (e.g., two thirds) of the number of the vehicle-mounted devices in the current group, it indicates that most of the remote commands in the group have been successfully received by the vehicle-mounted devices; or, when the current time is greater than or equal to a predetermined multiple (e.g., 1.5 times) of the preset instruction response average time length, it indicates that the load of the device gateway at the current time is low, and in order to ensure that the instruction of the next packet is sent, when at least one of the two aspects is satisfied, the remote instruction issuing may be triggered to be performed on the vehicle-mounted device in the next packet (e.g., the aforementioned packet number, packet 2).
Finally, it may be added to the foregoing step S1 that, if the command server determines that the vehicle-mounted device is not online through the device gateway, the off-line vehicle-mounted device may be placed in a preset offline device pool. Based on the concept, the instruction server may also preferably query whether the online state of the vehicle-mounted device in the offline device pool changes at regular time, if the online state of the vehicle-mounted device in the offline device pool changes to online, take the vehicle-mounted device currently in the online state out of the offline device pool, and perform grouping and instruction issuing processing according to a grouping strategy; and if the vehicle-mounted equipment is still in the offline state, continuously keeping the vehicle-mounted equipment in the offline equipment pool.
In summary, in order to solve the problem that the batch instruction issuing fails due to the existing round training mechanism, the online states of the vehicle-mounted devices may be determined by the device gateway before the instruction server issues the instruction, the online vehicle-mounted devices may be grouped based on the carrying capacity of the device gateway, then the vehicle-mounted devices in a single group may be issued with the instruction in a group unit, the instruction response of the vehicle-mounted devices in the current group is waited for and recorded, the instruction issuing of the vehicle-mounted devices in the next group is triggered based on the instruction response of the current group, and so on until the instructions in all the groups are sent completely. The invention can greatly reduce the burden of the equipment gateway and effectively utilize the resources of the server, thereby providing sufficient guarantee for the reliability of issuing the batch instructions.
In the embodiments of the present invention, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
The structure, features and effects of the present invention have been described in detail with reference to the embodiments shown in the drawings, but the above embodiments are merely preferred embodiments of the present invention, and it should be understood that technical features related to the above embodiments and preferred modes thereof can be reasonably combined and configured into various equivalent schemes by those skilled in the art without departing from and changing the design idea and technical effects of the present invention; therefore, the invention is not limited to the specific embodiments shown in the drawings, and all changes that can be made or modified to the equivalent embodiments without departing from the spirit and scope of the invention are intended to be covered by the specification and drawings.
Claims (9)
1. A remote instruction issuing method for batch vehicle-mounted equipment is characterized by comprising the following steps:
before issuing the instruction, the instruction server determines the online state of each vehicle-mounted device through the device gateway;
dividing the on-line vehicle-mounted equipment into a plurality of groups based on the bearing capacity of the command issued by the equipment gateway;
taking a group as a unit, an instruction server issues an instruction to the vehicle-mounted equipment in a single group through an equipment gateway;
after the instruction is sent to the current group, waiting and recording the instruction response of the vehicle-mounted equipment in the current group;
and triggering to issue the instructions to each vehicle-mounted device in the next group based on the instruction response of the current group, and repeating the steps until the instructions in all the groups are sent.
2. The remote instruction issuing method for the batch of vehicle-mounted devices according to claim 1, wherein the triggering of instruction issuing for each vehicle-mounted device in the next group based on the instruction response of the current group comprises: and when the number of the received instruction responses is larger than or equal to the set proportion of the number of the vehicle-mounted equipment in the current group, triggering and executing remote instruction issuing on the vehicle-mounted equipment in the next group.
3. The remote instruction issuing method for the batch of vehicle-mounted devices according to claim 1, wherein the triggering of instruction issuing for each vehicle-mounted device in the next group based on the instruction response of the current group comprises: and when the current time-distance instruction sending time is greater than or equal to a preset multiple of the preset instruction response average time length, triggering and executing remote instruction issuing on the vehicle-mounted equipment in the next group.
4. The remote instruction issuing method for the batch of vehicle-mounted devices according to claim 1, wherein the determining the online state of each vehicle-mounted device comprises:
sending tcp heartbeat data to the equipment gateway by the vehicle-mounted equipment according to a set period;
and recording the online state of the vehicle-mounted equipment based on the tcp heartbeat data by the equipment gateway.
5. The remote instruction issuing method for the batch of vehicle-mounted devices according to claim 4, wherein if the tcp heartbeat data of the vehicle-mounted device is not received by the device gateway beyond a preset time period, the online state of the vehicle-mounted device is removed.
6. The remote instruction issuing method for the batch of vehicle-mounted devices according to claim 1, wherein the recording of the instruction response of the vehicle-mounted device in the current group includes: and the instruction server correspondingly inputs the received instruction response to a preset device instruction mapping table, wherein the device instruction mapping table is used for recording reply information of the vehicle-mounted device after receiving the remote instruction.
7. The remote instruction issuing method for the batch of vehicle-mounted devices according to claim 6, wherein the device instruction mapping table is stored in a memory of the instruction server in a form of a list of key-value pairs, and the key-value pairs are composed of vehicle-mounted devices and instruction responses.
8. The remote instruction issuing method for the batch of vehicle-mounted devices according to any one of claims 1 to 7, characterized by further comprising: and if the command server determines that the vehicle-mounted equipment is not on line through the equipment gateway, putting the off-line vehicle-mounted equipment into a preset off-line equipment pool.
9. The remote instruction issuing method for the batch of vehicle-mounted devices according to claim 8, characterized by further comprising: the instruction server regularly inquires whether the online state of the vehicle-mounted equipment in the offline equipment pool changes, if the online state of the vehicle-mounted equipment in the offline equipment pool changes to be online, the vehicle-mounted equipment in the online state is taken out of the offline equipment pool, and grouping and instruction issuing processing are carried out according to a grouping strategy; and if the vehicle-mounted equipment is still in the offline state, continuously keeping the offline vehicle-mounted equipment in the offline equipment pool.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211703276.7A CN115967739A (en) | 2022-12-28 | 2022-12-28 | Remote instruction issuing method for batch vehicle-mounted equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211703276.7A CN115967739A (en) | 2022-12-28 | 2022-12-28 | Remote instruction issuing method for batch vehicle-mounted equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115967739A true CN115967739A (en) | 2023-04-14 |
Family
ID=87358305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211703276.7A Pending CN115967739A (en) | 2022-12-28 | 2022-12-28 | Remote instruction issuing method for batch vehicle-mounted equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115967739A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007089021A (en) * | 2005-09-26 | 2007-04-05 | Toyota Infotechnology Center Co Ltd | Distributed processing system, in-vehicle terminal, and base station |
US20170069207A1 (en) * | 2014-05-20 | 2017-03-09 | Huawei Technologies Co., Ltd. | Message processing method, in-vehicle terminal, and base station |
CN110532096A (en) * | 2019-08-28 | 2019-12-03 | 广东乐之康医疗技术有限公司 | A kind of system and method for multinode grouping parallel deployment |
CN112230840A (en) * | 2020-12-21 | 2021-01-15 | 智道网联科技(北京)有限公司 | Method and device for remotely controlling vehicle-mounted computer, electronic equipment and storage medium |
CN113472884A (en) * | 2021-06-30 | 2021-10-01 | 潍柴动力股份有限公司 | OTA (over the air) upgrading method and device |
CN113885420A (en) * | 2021-11-10 | 2022-01-04 | 山东电工电气集团有限公司 | Data acquisition control method for disconnecting link state monitoring device |
CN114546430A (en) * | 2022-02-24 | 2022-05-27 | 亿咖通(湖北)技术有限公司 | Vehicle-mounted application program pushing method and device, electronic equipment and storage medium |
CN115061729A (en) * | 2022-07-01 | 2022-09-16 | 浙江吉利控股集团有限公司 | Instruction distribution method, device and electronic device |
-
2022
- 2022-12-28 CN CN202211703276.7A patent/CN115967739A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007089021A (en) * | 2005-09-26 | 2007-04-05 | Toyota Infotechnology Center Co Ltd | Distributed processing system, in-vehicle terminal, and base station |
US20170069207A1 (en) * | 2014-05-20 | 2017-03-09 | Huawei Technologies Co., Ltd. | Message processing method, in-vehicle terminal, and base station |
CN110532096A (en) * | 2019-08-28 | 2019-12-03 | 广东乐之康医疗技术有限公司 | A kind of system and method for multinode grouping parallel deployment |
CN112230840A (en) * | 2020-12-21 | 2021-01-15 | 智道网联科技(北京)有限公司 | Method and device for remotely controlling vehicle-mounted computer, electronic equipment and storage medium |
CN113472884A (en) * | 2021-06-30 | 2021-10-01 | 潍柴动力股份有限公司 | OTA (over the air) upgrading method and device |
CN113885420A (en) * | 2021-11-10 | 2022-01-04 | 山东电工电气集团有限公司 | Data acquisition control method for disconnecting link state monitoring device |
CN114546430A (en) * | 2022-02-24 | 2022-05-27 | 亿咖通(湖北)技术有限公司 | Vehicle-mounted application program pushing method and device, electronic equipment and storage medium |
CN115061729A (en) * | 2022-07-01 | 2022-09-16 | 浙江吉利控股集团有限公司 | Instruction distribution method, device and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE19836347C2 (en) | Fault-tolerant computer system | |
DE3280451T2 (en) | Process for initializing a data processing system. | |
DE69700512T2 (en) | Event notification in a computer system with a plurality of storage devices | |
CN106657349A (en) | Message subscription processing device, system and method | |
DE102005048037A1 (en) | Method for controlling / regulating at least one task | |
DE102014209752A1 (en) | relay means | |
CN109951537A (en) | A kind of load balance distribution method towards block chain | |
CN107025289A (en) | The method and relevant device of a kind of data processing | |
EP3684015A1 (en) | Device and method for classifying data in particular for a controller area network or an automotive ethernet network | |
EP0903666B1 (en) | Method for distributing data packets of an operating system | |
JP2007520003A (en) | A method for manipulating multiple computer arrays in the event of a computer failure | |
CN107065616A (en) | Inter-linked controlling method and device, computer-readable recording medium | |
CN105162837B (en) | The method and system of I/O throughputs are promoted under mass data storage environment | |
CN113873017A (en) | Heartbeat period adjusting method and device, client and server | |
CN113759872A (en) | Processing method after controller reset | |
CN115967739A (en) | Remote instruction issuing method for batch vehicle-mounted equipment | |
CN116467303A (en) | Method, server and storage medium for deducing breakpoint continuous cutting of chess | |
CN106776142A (en) | A kind of date storage method and data storage device | |
CN108306926B (en) | Method and device for pushing gateway service data of Internet of vehicles equipment | |
CN114298294A (en) | Neural network memory optimization method and device based on hardware accelerator | |
DE102019211908A1 (en) | Method and apparatus for distributing an application | |
CN116954721B (en) | Asynchronous non-blocking splitting method for multi-modal operator of actuator | |
DE102014000746A1 (en) | Method for operating a high-voltage network of a motor vehicle and motor vehicle | |
CN117235978B (en) | Torque filtering method and device | |
EP3876477B1 (en) | Method for checking the current condition of electronic components |
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 |