CN111988209A - Vehicle-mounted router Internet of things data processing method, device, equipment and storage medium - Google Patents

Vehicle-mounted router Internet of things data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111988209A
CN111988209A CN202010794830.1A CN202010794830A CN111988209A CN 111988209 A CN111988209 A CN 111988209A CN 202010794830 A CN202010794830 A CN 202010794830A CN 111988209 A CN111988209 A CN 111988209A
Authority
CN
China
Prior art keywords
equipment
data
bus
screening
vehicle
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
CN202010794830.1A
Other languages
Chinese (zh)
Other versions
CN111988209B (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.)
Guangzhou Tongda Auto Electric Co Ltd
Original Assignee
Guangzhou Tongda Auto Electric 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 Guangzhou Tongda Auto Electric Co Ltd filed Critical Guangzhou Tongda Auto Electric Co Ltd
Priority to CN202010794830.1A priority Critical patent/CN111988209B/en
Publication of CN111988209A publication Critical patent/CN111988209A/en
Application granted granted Critical
Publication of CN111988209B publication Critical patent/CN111988209B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40143Bus networks involving priority mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4286Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40143Bus networks involving priority mechanisms
    • H04L12/4015Bus networks involving priority mechanisms by scheduling the transmission of messages at the communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • 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/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the application discloses a method, a device, equipment and a storage medium for processing vehicle-mounted router Internet of things data. According to the technical scheme, the bus number and the equipment number corresponding to the equipment data are determined by analyzing the equipment data sent by the far-end equipment, the screening strategy of the equipment data is determined according to the bus number and the equipment number, the equipment data are screened based on the screening strategy, the screened equipment data are sent to the cloud platform after the screening of the equipment data is completed, the flow consumption caused by unnecessary data transmission is reduced, and the data processing efficiency of the cloud platform is improved.

Description

Vehicle-mounted router Internet of things data processing method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the field of vehicle-mounted routers, in particular to a method, a device, equipment and a storage medium for processing Internet of things data of a vehicle-mounted router.
Background
With the development of public transport systems, more and more communication devices are arranged on public transport vehicles, and remote devices such as a dispatching system, a monitoring system, a driver fatigue driving early warning system, an ADAS system, a 360 system, a blind area reminding system, a vehicle CAN bus monitoring system and an electronic guideboard need to be networked, and generated device data are uploaded to a cloud platform.
However, the suppliers of the remote devices are different and are in communication connection with the cloud platform through the wireless communication module, which is easy to cause the uploading of repeated data and waste of traffic.
Disclosure of Invention
The embodiment of the application provides a vehicle-mounted router internet of things data processing method, device, equipment and storage medium, so that equipment data are screened, and waste of flow is reduced.
In a first aspect, an embodiment of the present application provides a method for processing vehicle-mounted router internet of things data, including:
analyzing equipment data received from a bus interface, and determining a bus number of the bus interface and an equipment number of a remote equipment, wherein the equipment data is generated by the remote equipment and is sent to the bus interface;
determining a screening strategy for equipment data sent by the remote equipment based on the bus number and the equipment number, wherein different bus numbers and equipment numbers correspond to different screening strategies;
and screening the equipment data according to the screening strategy, and sending the screened equipment data to a cloud platform.
Further, before analyzing the device data received from the bus interface and determining the bus number of the bus interface and the device number of the remote device, the method further includes:
numbering bus interfaces of the vehicle-mounted router, and determining the bus number of each bus interface, wherein the bus interfaces comprise one or more combinations of RS232 interfaces, RS485 interfaces, IO interfaces and CAN interfaces;
numbering the remote equipment connected to the vehicle-mounted router through the bus interface, and determining the equipment number of the remote equipment;
and setting a screening strategy of the equipment data sent by the remote equipment based on the bus number and the equipment number.
Further, after the setting of the screening policy for the device data sent by the remote device based on the bus number and the device number, the method further includes:
and setting a communication address of a cloud platform for the remote equipment to be docked and a corresponding transmission protocol based on the bus number and/or the equipment number.
Further, the screening the device data according to the screening policy and sending the screened device data to a cloud platform includes:
screening the equipment data according to the screening strategy;
determining a communication address of a cloud platform to be docked by the remote equipment and a corresponding transmission protocol based on the bus number and/or the equipment number;
and sending the screened equipment data to a cloud platform based on the communication address and a corresponding transmission protocol.
Further, after the setting of the screening policy for the device data sent by the remote device based on the bus number and/or the device number, the method further includes:
and setting the priority of the remote equipment based on the bus number and/or the equipment number, wherein different priorities correspond to different transmission queues.
Further, the screening the device data according to the screening policy and sending the screened device data to a cloud platform includes:
screening the equipment data according to the screening strategy;
determining a priority of the remote device based on the bus number and/or the device number;
and issuing the screened device data to a corresponding transmission queue based on the priority, and sending the device data to a cloud platform by the transmission queue.
Further, the determining a screening policy for the device data sent by the remote device based on the bus number and the device number includes:
determining the operation state of the vehicle according to the positioning information and the operation time of the vehicle;
and determining a screening strategy for the equipment data sent by the remote equipment based on the operation state, the bus number and the equipment number, wherein different operation states, bus numbers and equipment numbers correspond to different screening strategies.
In a second aspect, an embodiment of the present application provides a vehicle-mounted router internet of things data processing apparatus, including a data parsing module, a policy determining module, and a data processing module, where:
the data analysis module is used for analyzing the equipment data received from the bus interface, determining the bus number of the bus interface and the equipment number of the remote equipment, and the equipment data is generated by the remote equipment and is sent to the bus interface;
a policy determining module, configured to determine, based on the bus number and the device number, a screening policy for device data sent by the remote device, where different bus numbers and device numbers correspond to different screening policies;
and the data processing module is used for screening the equipment data according to the screening strategy and sending the screened equipment data to the cloud platform.
Further, the apparatus further includes a policy setting module, where the policy setting module is configured to:
numbering bus interfaces of the vehicle-mounted router, and determining the bus number of each bus interface, wherein the bus interfaces comprise one or more combinations of RS232 interfaces, RS485 interfaces, IO interfaces and CAN interfaces;
numbering the remote equipment connected to the vehicle-mounted router through the bus interface, and determining the equipment number of the remote equipment;
and setting a screening strategy of the equipment data sent by the remote equipment based on the bus number and the equipment number.
Further, the apparatus further comprises a protocol setting module, and the protocol setting module is configured to:
and setting a communication address of a cloud platform for the remote equipment to be docked and a corresponding transmission protocol based on the bus number and/or the equipment number.
Further, the data processing module is specifically configured to:
screening the equipment data according to the screening strategy;
determining a communication address of a cloud platform to be docked by the remote equipment and a corresponding transmission protocol based on the bus number and/or the equipment number;
and sending the screened equipment data to a cloud platform based on the communication address and a corresponding transmission protocol.
Further, the apparatus further includes a priority setting module, and the priority setting module is configured to:
and setting the priority of the remote equipment based on the bus number and/or the equipment number, wherein different priorities correspond to different transmission queues.
Further, the data processing module is specifically configured to:
screening the equipment data according to the screening strategy;
determining a priority of the remote device based on the bus number and/or the device number;
and issuing the screened device data to a corresponding transmission queue based on the priority, and sending the device data to a cloud platform by the transmission queue.
Further, the policy determination module is specifically configured to:
determining the operation state of the vehicle according to the positioning information and the operation time of the vehicle;
and determining a screening strategy for the equipment data sent by the remote equipment based on the operation state, the bus number and the equipment number, wherein different operation states, bus numbers and equipment numbers correspond to different screening strategies.
In a third aspect, an embodiment of the present application provides a computer device, including: a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the on-vehicle router association data processing method according to the first aspect.
In a fourth aspect, the present application provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the on-board router association data processing method according to the first aspect.
According to the method and the device for processing the data, the device data sent by the remote device are analyzed, the bus number and the device number corresponding to the device data are determined, the screening strategy for the device data is determined according to the bus number and the device number, the device data are screened based on the screening strategy, the screened device data are sent to the cloud platform after the screening of the device data is completed, the flow consumption caused by unnecessary data transmission is reduced, and the data processing efficiency of the cloud platform is improved.
Drawings
Fig. 1 is a flowchart of a method for processing data of an internet of things of a vehicle-mounted router according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an onboard router provided in an embodiment of the present application;
fig. 3 is a flowchart of another method for processing vehicle-mounted router internet of things data according to the embodiment of the present application;
fig. 4 is a flowchart of another method for processing vehicle-mounted router internet of things data according to the embodiment of the present application;
fig. 5 is a schematic structural diagram of a vehicle-mounted router internet of things data processing device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a vehicle-mounted router internet of things data processing method according to an embodiment of the present disclosure, where the vehicle-mounted router internet of things data processing method according to the embodiment of the present disclosure may be executed by a vehicle-mounted router internet of things data processing apparatus, and the vehicle-mounted router internet of things data processing apparatus may be implemented in a hardware and/or software manner and integrated in a computer device (e.g., a vehicle-mounted router).
The following description will be given by taking as an example a method for executing the data processing method of the internet of things of the vehicle-mounted router by the data processing device of the internet of things of the vehicle-mounted router. Referring to fig. 1, the method for processing the internet of things data of the vehicle-mounted router includes:
s101: analyzing the device data received from the bus interface, and determining the bus number of the bus interface and the device number of the remote device.
Fig. 2 is a schematic structural diagram of a vehicle-mounted router according to an embodiment of the present application. As shown in fig. 2, the vehicle-mounted router provided in this embodiment adopts a dual-CPU architecture of a master processing board and a slave processing board, where the master processing board is built based on a 5G dual-frequency router motherboard (e.g., MT7621 routing motherboard), the slave processing board is built based on a single chip microcomputer (e.g., STM32 single chip microcomputer), and data interaction is performed between the master processing board and the slave processing board through an SPI interface (the master processing board is connected to the SPI interface of the slave processing board through a USB-to-SPI interface module). The main processing board is used for realizing the related functions of the router, and the auxiliary processing board is used for realizing the functions of peripheral interface expansion and data acquisition.
The slave processing board of the vehicle-mounted router provides bus interfaces with a plurality of different interface types, the bus interfaces comprise one or a combination of an RS232 interface, an RS485 interface, an IO interface and a CAN interface, specific interface types CAN be selected according to actual needs, and the application is not limited.
Further, the remote device is in communication connection with a bus interface provided by the slave processing board of the vehicle-mounted router according to the interface type of the remote device, wherein the remote device CAN be a dispatching system, a monitoring system, a driver fatigue driving early warning system, an ADAS system, a 360 system, a blind area reminding system, a vehicle CAN bus monitoring system, an electronic guideboard and the like on a bus, for example, the monitoring system is in communication connection with an RS485 interface provided by the slave processing board through RS485 wiring, and sends monitoring video related device parameters to the slave processing board of the vehicle-mounted router.
Illustratively, the device data is generated by the remote device and sent to the bus interface, that is, when the remote device generates the device data to be uploaded to the cloud platform, the device data is uploaded to the vehicle-mounted router through the bus interface connected to the vehicle-mounted router. Further, after the slave processing board receives the device data, the slave processing board determines the bus number and the device number according to the port that receives the device data. The slave processing board records the corresponding relation between each port and the bus number and the equipment number.
Further, after determining the bus number and the device number, the slave processing board packages the device data, the bus number, and the device number and sends the device data, the bus number, and the device number to the master processing board, and the master processing board parses the received data to obtain the device data, the bus number of the bus interface that receives the device data, and the device number of the remote device that sends the device data.
S102: and determining a screening strategy for the equipment data sent by the remote equipment based on the bus number and the equipment number, wherein different bus numbers and equipment numbers correspond to different screening strategies.
For example, after determining the bus number and the device number corresponding to the device data, the screening policy for the device data is determined according to the correspondence between the bus number and the device number and the screening policy. The corresponding relation between the screening strategy and the bus number and the equipment is recorded in the main processing board.
S103: and screening the equipment data according to the screening strategy, and sending the screened equipment data to a cloud platform.
Illustratively, after determining the screening policy for the device data, the device data is screened according to the screening policy. Further, after the screening of the device data is completed, the cloud platform to which the remote device needs to be connected is determined, and the screened device data is sent to the cloud platform, so that the cloud platform analyzes or displays the device data, and unattended operation of the remote device is achieved.
The method comprises the steps of analyzing the device data sent by the far-end device, determining the bus number and the device number corresponding to the device data, determining the screening strategy of the device data according to the bus number and the device number, screening the device data based on the screening strategy, sending the screened device data to the cloud platform after the device data is screened, reducing flow consumption caused by unnecessary data transmission, and improving the data processing efficiency of the cloud platform.
On the basis of the foregoing embodiment, fig. 3 is a flowchart of another vehicle-mounted router internet of things data processing method provided in the embodiment of the present application, where the vehicle-mounted router internet of things data processing method is an embodiment of the vehicle-mounted router internet of things data processing method. Referring to fig. 3, the method for processing the internet of things data of the vehicle-mounted router includes:
s201: and numbering the bus interfaces of the vehicle-mounted router, and determining the bus number of each bus interface.
The bus interface provided by the embodiment includes one or a combination of more of an RS232 interface, an RS485 interface, an IO interface, and a CAN interface.
Specifically, each bus interface provided by the vehicle-mounted router main processing board is numbered, so that the bus number of each bus interface is determined, and the corresponding relation between the bus interface and the bus number is recorded and recorded in the configuration file.
S202: and numbering the remote equipment connected to the vehicle-mounted router through the bus interface, and determining the equipment number of the remote equipment.
Specifically, each port provided by the bus interface is numbered, so that the remote device connected to the vehicle-mounted router through the port provided by the bus interface is numbered, and the corresponding relationship between each port of the bus interface and the device number is recorded and recorded in the configuration file.
After the bus interface and the remote equipment under the bus interface are numbered, one remote equipment can be uniquely determined according to the bus number and the equipment number, and equipment data of the specific remote equipment can be screened through the bus number and the equipment number.
S203: and setting a screening strategy of the equipment data sent by the remote equipment based on the bus number and the equipment number.
Determining a screening strategy aiming at each remote device according to the screening requirement of device data sent by each remote device, determining a bus number and a device number corresponding to each remote device according to a bus interface and a specific port accessed by the remote device, further associating the bus number and the device number corresponding to each remote device with the screening strategy, thereby establishing a strategy association relation between different bus numbers and device numbers and the corresponding screening strategies, storing the strategy association relation in a configuration file of a main processing board, and corresponding different bus numbers and device numbers to different screening strategies.
S204: and setting a communication address of a cloud platform for the remote equipment to be docked and a corresponding transmission protocol based on the bus number and/or the equipment number.
Specifically, a communication address (platform IP and port) of the cloud platform to which the remote device needs to be docked and a transmission protocol for transmitting data with the cloud platform are determined, a bus number and/or a device number corresponding to the remote device are/is associated with the communication address and the transmission protocol to form a protocol association relationship, and the protocol association relationship is stored in a configuration file of the main processing board. The transmission protocol may be TCP, UDP, HTTP, etc., and the present application is not limited thereto.
Optionally, the same communication address and transmission protocol may be set for the remote devices connected to the same bus interface according to the bus number, that is, one bus number corresponds to the same communication address and transmission protocol, and a corresponding communication address and transmission protocol may be set for each combination of the bus number and the device number according to the communication requirement of each remote device.
Optionally, one remote device may be connected to different cloud platforms based on different transmission protocols, that is, one bus number and/or device number may be associated with multiple communication addresses and transmission protocols.
In a possible embodiment, the configuration of the policy association relationship and the protocol association relationship may be performed in a configuration page provided by the main processing board, the policy association relationship and the protocol association relationship are recorded in a configuration file after the configuration is completed, the configuration file is sent to the slave processing board after the vehicle-mounted router is powered on, the slave processing board performs setting according to the configuration file, and the set state is fed back to the main processing board.
S205: analyzing the device data received from the bus interface, and determining the bus number of the bus interface and the device number of the remote device.
Specifically, when the remote device generates device data to be uploaded to the cloud platform, the device data is uploaded to the slave processing board through a bus interface connected with the vehicle-mounted router, and after the slave processing board receives the device data, the slave processing board determines a bus number and a device number according to a port receiving the device data.
Further, the slave processing board packages the device data, the bus number and the device number and sends the device data, the bus number and the device number to the master processing board, and the master processing board analyzes the received data to obtain the device data, the bus number and the device number.
S206: and determining a screening strategy for the equipment data sent by the remote equipment based on the bus number and the equipment number.
Specifically, the screening policy for the device data sent by the remote device is determined according to the bus number recorded in the configuration file and the policy association relationship between the device number and the screening policy. Optionally, the filtering policy for the device data may be to filter the content of the device data, for example, to filter out part of the content related to the keyword or to filter out a set type of content according to the keyword, or to filter out all the device content sent by the remote device.
S207: and screening the equipment data according to the screening strategy.
S208: and determining the communication address of the cloud platform to be docked by the remote equipment and the corresponding transmission protocol based on the bus number and/or the equipment number.
Specifically, after the screening of the device data is completed, a bus number and/or a device number corresponding to the screened device data is determined, and a communication address of the cloud platform and a corresponding transmission protocol, which are required to be sent by the device data, are determined according to a protocol association relationship recorded in the configuration file.
S209: and sending the screened equipment data to a cloud platform based on the communication address and a corresponding transmission protocol.
Specifically, the screened device data is sent to the cloud platform corresponding to the communication address based on the determined transmission protocol, for example, the corresponding cloud platform is docked according to the platform IP and the port corresponding to the communication address, and the device data is uploaded to the cloud platform according to the corresponding transmission protocol, so that the cloud platform analyzes and processes or displays the received device data.
The method comprises the steps of analyzing the device data sent by the far-end device, determining the bus number and the device number corresponding to the device data, determining the screening strategy of the device data according to the bus number and the device number, screening the device data based on the screening strategy, sending the screened device data to the cloud platform after the device data is screened, reducing flow consumption caused by unnecessary data transmission, and improving the data processing efficiency of the cloud platform. And the policy association relation and the protocol association relation are recorded in the configuration file of the vehicle-mounted router, so that the screening policy of the remote router and the configuration of the cloud platform are facilitated, and the flexibility of the setting of the vehicle-mounted router is improved.
On the basis of the foregoing embodiment, fig. 4 is a flowchart of another vehicle-mounted router internet of things data processing method provided in the embodiment of the present application, where the vehicle-mounted router internet of things data processing method is an embodiment of the vehicle-mounted router internet of things data processing method. Referring to fig. 4, the method for processing the internet of things data of the vehicle-mounted router includes:
s301: and numbering the bus interfaces of the vehicle-mounted router, and determining the bus number of each bus interface.
S302: and numbering the remote equipment connected to the vehicle-mounted router through the bus interface, and determining the equipment number of the remote equipment.
S303: and setting a screening strategy of the equipment data sent by the remote equipment based on the bus number and the equipment number.
S304: and setting the priority of the remote equipment based on the bus number and/or the equipment number, wherein different priorities correspond to different transmission queues.
Specifically, according to the transmission requirements for device data received by different types of bus interfaces or device data sent by different remote devices, the priority of the remote devices is determined, the priority association relationship between the bus numbers and/or the device numbers is determined, and the priority association relationship is recorded in the configuration file of the main processing board.
In the embodiment, a plurality of transmission queues for transmitting device data are created, and different transmission queues correspond to different priorities, and it can be understood that a transmission queue with a higher priority will preferentially perform a data transmission task. For example, the priority is set to 0-3 for a total of four levels, and the priority levels from 0 to 3 are sequentially decreased, and respectively correspond to the transmission queues with the transmission data having the high priority levels from low to high.
S305: analyzing the device data received from the bus interface, and determining the bus number of the bus interface and the device number of the remote device.
S306: and determining the operation state of the vehicle according to the positioning information and the operation time of the vehicle.
Specifically, the positioning information of the vehicle is determined according to a positioning module (such as a GPS module) on the vehicle, and the operation time table of the current vehicle is obtained to determine the operation time of the vehicle. Further, the operating route information of the current vehicle is obtained, and the route range of the vehicle in operation is determined. The operation time table and the operation line information can be configured in a configuration file of the main processing board, can also be recorded in the cloud platform, and can be acquired from the cloud platform after the main processing board is powered on.
Further, whether the positioning corresponding to the positioning information is in the route range corresponding to the operating line information or not is judged, and whether the current time is in the operating time or not is judged. And if the positioning information is in the route range and within the operation time, determining that the operation state of the current vehicle is in operation, and otherwise, determining that the operation state of the current vehicle is suspended operation.
S307: and determining a screening strategy for the equipment data sent by the remote equipment based on the operation state, the bus number and the equipment number.
And determining screening strategies aiming at the remote equipment in different operation states according to the screening requirements of the vehicle on the equipment data sent by the remote equipment in different operation states. For example, if only part of the data needs to be sent in the operating state of the vehicle, the corresponding screening strategies respectively reserve and screen out part of the data in the operating state and the suspended operating state of the vehicle.
Further, the operation state, the bus number and the device number corresponding to each remote device are associated with the screening policy, so as to establish a policy association relationship between different operation states, bus numbers and device numbers and corresponding screening policies, the policy association relationship is stored in the configuration file of the main processing board, and different operation states, bus numbers and device numbers correspond to different screening policies.
Specifically, after the operation state is determined based on the positioning information and the operation time, the bus number and the device number of the device data are further determined, and the corresponding screening policy is determined according to the policy association relationship.
S308: and screening the equipment data according to the screening strategy.
S309: determining a priority of the remote device based on the bus number and/or the device number.
Specifically, after the screening of the device data is completed, the priority of the remote device is determined according to the bus number and/or the device number corresponding to the device data and the priority of the remote device.
S310: and issuing the screened device data to a corresponding transmission queue based on the priority, and sending the device data to a cloud platform by the transmission queue.
Specifically, according to the corresponding relation between the priority of the remote device and the transmission queue, the screened device data is issued to the transmission queue with the corresponding priority, and the transmission queue sends the device data to the cloud platform according to the corresponding communication address and the transmission protocol.
The method comprises the steps of analyzing the device data sent by the far-end device, determining the bus number and the device number corresponding to the device data, determining the screening strategy of the device data according to the bus number and the device number, screening the device data based on the screening strategy, sending the screened device data to the cloud platform after the device data is screened, reducing flow consumption caused by unnecessary data transmission, and improving the data processing efficiency of the cloud platform. And setting corresponding priorities for different remote devices according to the importance degrees of the device data, and publishing the screened device data to corresponding transmission queues according to the priorities to ensure the priority uploading of the important data. Meanwhile, a screening strategy for the equipment data is determined by combining the operation state of the vehicle, unnecessary data transmission is reduced, and the consumption of flow is reduced.
Fig. 5 is a schematic structural diagram of a vehicle-mounted router internet of things data processing device according to an embodiment of the present application. Referring to fig. 5, the in-vehicle router internet of things data processing device includes a data parsing module 51, a policy determining module 52 and a data processing module 53.
The data analysis module 51 is configured to analyze device data received from a bus interface, determine a bus number of the bus interface and a device number of a remote device, where the device data is generated by the remote device and sent to the bus interface; a policy determining module 52, configured to determine, based on the bus number and the device number, a screening policy for device data sent by the remote device, where different bus numbers and device numbers correspond to different screening policies; and the data processing module 53 is configured to screen the device data according to the screening policy, and send the screened device data to the cloud platform.
The method comprises the steps of analyzing the device data sent by the far-end device, determining the bus number and the device number corresponding to the device data, determining the screening strategy of the device data according to the bus number and the device number, screening the device data based on the screening strategy, sending the screened device data to the cloud platform after the device data is screened, reducing flow consumption caused by unnecessary data transmission, and improving the data processing efficiency of the cloud platform.
In one possible embodiment, the apparatus further comprises a policy setting module, configured to:
numbering bus interfaces of the vehicle-mounted router, and determining the bus number of each bus interface, wherein the bus interfaces comprise one or more combinations of RS232 interfaces, RS485 interfaces, IO interfaces and CAN interfaces;
numbering the remote equipment connected to the vehicle-mounted router through the bus interface, and determining the equipment number of the remote equipment;
and setting a screening strategy of the equipment data sent by the remote equipment based on the bus number and the equipment number.
In one possible embodiment, the apparatus further comprises a protocol setting module, the protocol setting module is configured to:
and setting a communication address of a cloud platform for the remote equipment to be docked and a corresponding transmission protocol based on the bus number and/or the equipment number.
In a possible embodiment, the data processing module 53 is specifically configured to:
screening the equipment data according to the screening strategy;
determining a communication address of a cloud platform to be docked by the remote equipment and a corresponding transmission protocol based on the bus number and/or the equipment number;
and sending the screened equipment data to a cloud platform based on the communication address and a corresponding transmission protocol.
In one possible embodiment, the apparatus further comprises a priority setting module configured to:
and setting the priority of the remote equipment based on the bus number and/or the equipment number, wherein different priorities correspond to different transmission queues.
In a possible embodiment, the data processing module 53 is specifically configured to:
screening the equipment data according to the screening strategy;
determining a priority of the remote device based on the bus number and/or the device number;
and issuing the screened device data to a corresponding transmission queue based on the priority, and sending the device data to a cloud platform by the transmission queue.
In a possible embodiment, the policy determination module 52 is specifically configured to:
determining the operation state of the vehicle according to the positioning information and the operation time of the vehicle;
and determining a screening strategy for the equipment data sent by the remote equipment based on the operation state, the bus number and the equipment number, wherein different operation states, bus numbers and equipment numbers correspond to different screening strategies.
The embodiment of the application also provides computer equipment which can integrate the vehicle-mounted router internet of things data processing device provided by the embodiment of the application. Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application. Referring to fig. 6, the computer apparatus includes: an input device 63, an output device 64, a memory 62, and one or more processors 61; the memory 62 for storing one or more programs; when the one or more programs are executed by the one or more processors 61, the one or more processors 61 are enabled to implement the method for processing the internet of things data of the vehicle router provided by the above embodiment. Wherein the input device 63, the output device 64, the memory 62 and the processor 61 may be connected by a bus or other means, as exemplified by the bus connection in fig. 6.
The memory 62 is a storage medium readable by a computing device, and can be used for storing software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the vehicle router internet of things data processing method according to any embodiment of the present application (for example, the data analysis module 51, the policy determination module 52, and the data processing module 53 in the vehicle router internet of things data processing apparatus). The memory 62 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 62 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 62 may further include memory located remotely from the processor 61, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 63 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 64 may include a display device such as a display screen.
The processor 61 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 62, that is, implements the above-mentioned method for processing the internet of things data of the vehicle router.
The vehicle-mounted router internet of things data processing device, the equipment and the computer provided by the embodiment can be used for executing the vehicle-mounted router internet of things data processing method provided by any embodiment, and have corresponding functions and beneficial effects.
The embodiment of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform the method for processing the vehicle-mounted router internet of things data provided in the foregoing embodiment, and the method for processing the vehicle-mounted router internet of things data includes: analyzing equipment data received from a bus interface, and determining a bus number of the bus interface and an equipment number of a remote equipment, wherein the equipment data is generated by the remote equipment and is sent to the bus interface; determining a screening strategy for equipment data sent by the remote equipment based on the bus number and the equipment number, wherein different bus numbers and equipment numbers correspond to different screening strategies; and screening the equipment data according to the screening strategy, and sending the screened equipment data to a cloud platform.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present application is not limited to the above-described vehicle-mounted router internet of things data processing method, and may also perform related operations in the vehicle-mounted router internet of things data processing method provided in any embodiments of the present application.
The device, the apparatus, and the storage medium for processing the vehicle-mounted router internet of things data provided in the foregoing embodiments may execute the method for processing the vehicle-mounted router internet of things data provided in any embodiments of the present application, and refer to the method for processing the vehicle-mounted router internet of things data provided in any embodiments of the present application without detailed technical details described in the foregoing embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. A method for processing vehicle-mounted router Internet of things data is characterized by comprising the following steps:
analyzing equipment data received from a bus interface, and determining a bus number of the bus interface and an equipment number of a remote equipment, wherein the equipment data is generated by the remote equipment and is sent to the bus interface;
determining a screening strategy for equipment data sent by the remote equipment based on the bus number and the equipment number, wherein different bus numbers and equipment numbers correspond to different screening strategies;
and screening the equipment data according to the screening strategy, and sending the screened equipment data to a cloud platform.
2. The method for processing the data of the vehicle-mounted router and the internet of things according to claim 1, wherein before analyzing the device data received from the bus interface and determining the bus number of the bus interface and the device number of the remote device, the method further comprises:
numbering bus interfaces of the vehicle-mounted router, and determining the bus number of each bus interface, wherein the bus interfaces comprise one or more combinations of RS232 interfaces, RS485 interfaces, IO interfaces and CAN interfaces;
numbering the remote equipment connected to the vehicle-mounted router through the bus interface, and determining the equipment number of the remote equipment;
and setting a screening strategy of the equipment data sent by the remote equipment based on the bus number and the equipment number.
3. The method for processing the data of the internet of things of the vehicle-mounted router according to claim 2, wherein after the setting of the screening policy for the device data sent by the remote device based on the bus number and the device number, the method further comprises:
and setting a communication address of a cloud platform for the remote equipment to be docked and a corresponding transmission protocol based on the bus number and/or the equipment number.
4. The method for processing the data of the internet of things of the vehicle-mounted router according to claim 3, wherein the screening the device data according to the screening policy and sending the screened device data to a cloud platform comprises:
screening the equipment data according to the screening strategy;
determining a communication address of a cloud platform to be docked by the remote equipment and a corresponding transmission protocol based on the bus number and/or the equipment number;
and sending the screened equipment data to a cloud platform based on the communication address and a corresponding transmission protocol.
5. The method for processing the vehicle-mounted router internet of things data according to claim 2, wherein after the setting of the screening policy for the device data sent by the remote device based on the bus number and/or the device number, the method further comprises:
and setting the priority of the remote equipment based on the bus number and/or the equipment number, wherein different priorities correspond to different transmission queues.
6. The method for processing the data of the internet of things of the vehicle-mounted router according to claim 5, wherein the screening the device data according to the screening policy and sending the screened device data to a cloud platform comprises:
screening the equipment data according to the screening strategy;
determining a priority of the remote device based on the bus number and/or the device number;
and issuing the screened device data to a corresponding transmission queue based on the priority, and sending the device data to a cloud platform by the transmission queue.
7. The method for processing the data of the internet of things of the vehicle-mounted router according to claim 1, wherein the determining a screening policy for the device data sent by the remote device based on the bus number and the device number includes:
determining the operation state of the vehicle according to the positioning information and the operation time of the vehicle;
and determining a screening strategy for the equipment data sent by the remote equipment based on the operation state, the bus number and the equipment number, wherein different operation states, bus numbers and equipment numbers correspond to different screening strategies.
8. The utility model provides a vehicle-mounted router thing allies oneself with data processing apparatus which characterized in that, includes data analysis module, tactics and confirms module and data processing module, wherein:
the data analysis module is used for analyzing the equipment data received from the bus interface, determining the bus number of the bus interface and the equipment number of the remote equipment, and the equipment data is generated by the remote equipment and is sent to the bus interface;
a policy determining module, configured to determine, based on the bus number and the device number, a screening policy for device data sent by the remote device, where different bus numbers and device numbers correspond to different screening policies;
and the data processing module is used for screening the equipment data according to the screening strategy and sending the screened equipment data to the cloud platform.
9. A computer device, comprising: a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method for processing the in-vehicle router internet of things data according to any one of claims 1 to 7.
10. A storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the in-vehicle router internet of things data processing method according to any one of claims 1 to 7.
CN202010794830.1A 2020-08-10 2020-08-10 Vehicle-mounted router Internet of things data processing method, device, equipment and storage medium Active CN111988209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010794830.1A CN111988209B (en) 2020-08-10 2020-08-10 Vehicle-mounted router Internet of things data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010794830.1A CN111988209B (en) 2020-08-10 2020-08-10 Vehicle-mounted router Internet of things data processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111988209A true CN111988209A (en) 2020-11-24
CN111988209B CN111988209B (en) 2021-09-07

Family

ID=73446149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010794830.1A Active CN111988209B (en) 2020-08-10 2020-08-10 Vehicle-mounted router Internet of things data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111988209B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960347A (en) * 2006-11-06 2007-05-09 吉林大学 Wireless car borne gateway system
US20140032800A1 (en) * 2012-07-30 2014-01-30 GM Global Technology Operations LLC Vehicle message filter
CN103812765A (en) * 2014-02-14 2014-05-21 浙江大学 CAN (Controller Area Network) to Ethernet gateway with filtering function and data transmission method based on gateway
CN105025077A (en) * 2015-05-28 2015-11-04 广州番禺职业技术学院 Vehicular Internet of Things operation system based on cloud computing
CN107026799A (en) * 2017-03-01 2017-08-08 杭州伯坦科技工程有限公司 The flow control methods of new-energy automobile car networking system onboard terminal
CN109474912A (en) * 2018-04-10 2019-03-15 西南大学 The monitoring method and device of a kind of car borne gateway system and onboard subsystem
CN109831517A (en) * 2019-03-05 2019-05-31 南京钛佳汽车科技有限公司 A kind of the edge cloud computing framework and method of vehicle device data
CN110166557A (en) * 2019-05-23 2019-08-23 浙江吉利控股集团有限公司 Car networking data processing equipment, vehicle termination and storage medium
CN111083030A (en) * 2019-12-25 2020-04-28 南京领行科技股份有限公司 Data acquisition method, device, equipment and storage medium
CN210693988U (en) * 2020-01-03 2020-06-05 湖南恒茂高科股份有限公司 Smog warning dual-frenquency wireless router

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960347A (en) * 2006-11-06 2007-05-09 吉林大学 Wireless car borne gateway system
US20140032800A1 (en) * 2012-07-30 2014-01-30 GM Global Technology Operations LLC Vehicle message filter
CN103812765A (en) * 2014-02-14 2014-05-21 浙江大学 CAN (Controller Area Network) to Ethernet gateway with filtering function and data transmission method based on gateway
CN105025077A (en) * 2015-05-28 2015-11-04 广州番禺职业技术学院 Vehicular Internet of Things operation system based on cloud computing
CN107026799A (en) * 2017-03-01 2017-08-08 杭州伯坦科技工程有限公司 The flow control methods of new-energy automobile car networking system onboard terminal
CN109474912A (en) * 2018-04-10 2019-03-15 西南大学 The monitoring method and device of a kind of car borne gateway system and onboard subsystem
CN109831517A (en) * 2019-03-05 2019-05-31 南京钛佳汽车科技有限公司 A kind of the edge cloud computing framework and method of vehicle device data
CN110166557A (en) * 2019-05-23 2019-08-23 浙江吉利控股集团有限公司 Car networking data processing equipment, vehicle termination and storage medium
CN111083030A (en) * 2019-12-25 2020-04-28 南京领行科技股份有限公司 Data acquisition method, device, equipment and storage medium
CN210693988U (en) * 2020-01-03 2020-06-05 湖南恒茂高科股份有限公司 Smog warning dual-frenquency wireless router

Also Published As

Publication number Publication date
CN111988209B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN109917765B (en) Distributed domain controller system based on network architecture of automatic driving system
CN209842367U (en) Distributed domain controller system based on network architecture of automatic driving system
CN107222637B (en) Connection method and device, vehicle-mounted system, terminal and storage medium
CN201174048Y (en) Automobile electronic information integrated platform
CN110036603A (en) Switch, communication control method and communication control program
WO2015156375A1 (en) Vehicle operation management system
WO2014017454A1 (en) On-board information communication apparatus, and on-board information utilizing network system
CN213715751U (en) Domain controller
CN104181911A (en) Remote diagnosis method and device of vehicle
KR20120025229A (en) Method and system for controlling avn and ecu for a vehicle using mobile-terminal
CN115179879B (en) Vehicle self-wake-up method and device, vehicle and storage medium
CN111988209B (en) Vehicle-mounted router Internet of things data processing method, device, equipment and storage medium
CN111988293B (en) Method, device, equipment and storage medium for filtering domain name of vehicle-mounted router
Kenjić et al. Connectivity challenges in automotive solutions
JP2007310733A (en) Traffic information management system and on-vehicle device
Ai et al. OSGi based integrated service platform for automotive telematics
CN111988210B (en) Method, device, equipment and storage medium for uploading vehicle-mounted router physical connection data
CN110576790A (en) Information prompting method and system based on automobile rear window glass display screen and vehicle-mounted terminal
CN219555013U (en) Intelligent networking vehicle integrated hardware platform system
CN109910790B (en) ADAS domain controller
Čabala et al. Wireless real-time vehicle monitoring based on android mobile device
CN114851981A (en) Vehicle control system and vehicle
Nikolov Research of automotive infotainment system and its design with IoT connectivity
US9894629B2 (en) Telematics terminal, control method thereof, data center, control method thereof, and data service system
KR101053503B1 (en) Vehicle database management 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
GR01 Patent grant
GR01 Patent grant