Low-cost internet communication device for mixed traffic flow
Technical Field
The invention relates to the technical field of automobiles, traffic and electronics, in particular to a low-cost internet communication device for mixed traffic flow.
Background
A new generation of intelligent traffic represented by a 5G-based internet technology provides a new choice for solving traffic jam, but a process is needed from traditional traffic to internet automatic driving traffic, and the road traffic flow is a mixed traffic flow consisting of internet vehicles (vehicles with internet communication function), automatic driving vehicles and traditional vehicles for a long time in the future. However, due to the 5G coverage rate, the absence of 5G vehicle-mounted equipment and the like, the vehicle has difficulty in performing 5G-based internet communication in some areas.
Unlike V2X (vehicle to advertising) communication based on 5G technology, the invention provides a low-cost internet communication device for mixed traffic flow, which realizes vehicle-vehicle communication with lower cost, conveniently and quickly transforms common vehicles into internet vehicles and carries out mixed traffic flow V2X communication.
Different from the traditional communication device based on the Zigbee module, the network communication device can collect and store the own vehicle information, set the vehicle ID and the time, form an array with the received information of other vehicles, broadcast the array to other vehicles through the Zigbee module, realize the network communication of V2X at lower cost, and is suitable for low-cost mixed traffic flow experiments.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a low-cost internet communication device for mixed traffic flow, which realizes vehicle-vehicle communication at lower cost and is suitable for low-cost mixed traffic flow experiments.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
a low-cost internet communication device for mixed traffic flow, comprising: the system comprises a Zigbee module, an antenna, a GPS module, a singlechip development board, a vehicle communication interface and a battery;
the Zigbee module, the GPS module, the singlechip development board, the vehicle communication interface and the battery are packaged into a whole and are arranged in the automobile, the antenna is arranged on the roof of the automobile, and a mesh topology structure is adopted among the automobiles provided with the network communication device;
the battery is respectively connected with the GPS module, the singlechip development board and the Zigbee module, the singlechip development board is respectively connected with the GPS module, the Zigbee module and the vehicle communication interface, and the Zigbee module is connected with the antenna;
the battery is used for supplying power to the GPS module, the singlechip development board and the Zigbee module,
the Zigbee module is used for receiving other vehicle information through the antenna and sending the received other vehicle information to the singlechip development board,
the GPS module is used for measuring the self-vehicle information and sending the self-vehicle information to the singlechip development board,
the singlechip development board is the core of the whole internet communication device and is used for setting vehicle ID, receiving the vehicle information sent by the GPS module and other vehicle information sent by the Zigbee module, recombining the received vehicle information and other vehicle information to obtain a plurality of data, and sending the plurality of data to the Zigbee module and the vehicle communication interface,
the Zigbee module is used for receiving the array data sent by the singlechip development board and sending the array data to other vehicles through the antenna,
the vehicle communication interface is used for receiving the array data sent by the single chip microcomputer development board and sending the array data to the automobile.
On the basis of the scheme, the automobiles in the mesh topology structure are interconnected through the internet communication device, and array data are mutually transmitted between any two automobiles.
On the basis of the scheme, the vehicle communication interface is a USB interface, a network interface or a CAN interface.
On the basis of the above scheme, the own vehicle information includes: the method comprises the following steps of establishing a geodetic coordinate system by taking positive north as a positive direction of a y axis, and setting x position, y position, speed in an x direction and speed in a y direction, wherein x represents the x axis of the geodetic coordinate system, y represents the y axis of the geodetic coordinate system, and y represents the positive direction of the y axis.
On the basis of the above scheme, the other vehicle information includes a vehicle ID, time, an x position, a y position, a speed in an x direction, and a speed in a y direction, each row in the array data includes the vehicle ID, the time, the x position, the y position, the speed in the x direction, and the speed in the y direction, the first behavior is information of the own vehicle, and the other behaviors are information of the other vehicles.
On the basis of the scheme, the singlechip development board is provided with the following program flow, and specifically comprises the following steps:
step 1, initialization: initializing a clock of a singlechip development board, simultaneously setting the own vehicle information as 0, setting the vehicle ID as the number of the automobile license plate, and setting the time as the Beijing time;
step 2, triggering a timer: triggering a clock every 0.1s, and sleeping after completing a single cycle;
step 3, receiving and storing the own vehicle information: the singlechip development board receives the self-vehicle information sent by the GPS module and stores the self-vehicle information on a storage chip of the singlechip development board;
and step 4, receiving information of other vehicles: the single chip microcomputer development board receives other vehicle information sent by the Zigbee module;
and 5, editing information: the single chip microcomputer development board recombines the information received in the steps 3-4 to obtain array data, information of each row in the array data cannot be repeated, and each vehicle ID only comprises N different time;
step 6, sending information: the single chip microcomputer development board sends the array data to the automobile through the vehicle communication interface, and simultaneously sends the array data to other automobiles through the Zigbee module; then enter sleep mode and wait for the timer trigger to start a new cycle.
On the basis of the scheme, N is an integer of 1-100.
The invention has the beneficial effects that:
compared with the V2X communication based on the 5G technology which needs higher cost, the internet communication device can realize vehicle-vehicle communication with lower cost, conveniently and quickly transform common vehicles into internet vehicles to carry out mixed traffic flow V2X communication.
Drawings
The invention has the following drawings:
fig. 1 is a block diagram of a low-cost internet communication device for mixed traffic flow according to the present invention.
Fig. 2 is a program flow chart of the single chip microcomputer development board.
Detailed Description
The present invention is described in further detail below with reference to FIGS. 1-2.
The invention relates to a low-cost internet communication device for mixed traffic flow, as shown in figure 1, comprising: the system comprises a Zigbee module, an antenna, a GPS module, a singlechip development board, a vehicle communication interface and a battery;
the Zigbee module, the GPS module, the singlechip development board, the vehicle communication interface and the battery are packaged into a whole and are arranged in the automobile, the antenna is arranged on the roof of the automobile, and a mesh topology structure is adopted among the automobiles provided with the network communication device;
the battery is respectively connected with the GPS module, the singlechip development board and the Zigbee module, the singlechip development board is respectively connected with the GPS module, the Zigbee module and the vehicle communication interface, and the Zigbee module is connected with the antenna;
the battery is used for supplying power to the GPS module, the singlechip development board and the Zigbee module,
the Zigbee module is used for receiving other vehicle information through the antenna and sending the received other vehicle information to the singlechip development board,
the GPS module is used for measuring the self-vehicle information and sending the self-vehicle information to the singlechip development board,
the singlechip development board is the core of the whole internet communication device and is used for setting vehicle ID, receiving the vehicle information sent by the GPS module and other vehicle information sent by the Zigbee module, recombining the received vehicle information and other vehicle information to obtain a plurality of data, and sending the plurality of data to the Zigbee module and the vehicle communication interface,
the Zigbee module is used for receiving the array data sent by the singlechip development board and sending the array data to other vehicles through the antenna,
the vehicle communication interface is used for receiving the array data sent by the single chip microcomputer development board and sending the array data to the automobile.
On the basis of the scheme, the automobiles in the mesh topology structure are interconnected through the internet communication device, and array data are mutually transmitted between any two automobiles.
On the basis of the scheme, the vehicle communication interface is a USB interface, a network interface or a CAN interface.
On the basis of the above scheme, the own vehicle information includes: the method comprises the following steps of establishing a geodetic coordinate system by taking positive north as a positive direction of a y axis, and setting x position, y position, speed in an x direction and speed in a y direction, wherein x represents the x axis of the geodetic coordinate system, y represents the y axis of the geodetic coordinate system, and y represents the positive direction of the y axis.
On the basis of the above scheme, the other vehicle information includes a vehicle ID, time, an x position, a y position, a speed in an x direction, and a speed in a y direction, each row in the array data includes the vehicle ID, the time, the x position, the y position, the speed in the x direction, and the speed in the y direction, the first behavior is information of the own vehicle, and the other behaviors are information of the other vehicles.
On the basis of the above scheme, the single chip microcomputer development board is provided with the following program flow, as shown in fig. 2, specifically including the following steps:
step 1, initialization: initializing a clock of a singlechip development board, simultaneously setting the own vehicle information as 0, setting the vehicle ID as the number of the automobile license plate, and setting the time as the Beijing time;
step 2, triggering a timer: triggering a clock every 0.1s, and sleeping after completing a single cycle;
step 3, receiving and storing the own vehicle information: the singlechip development board receives the self-vehicle information sent by the GPS module and stores the self-vehicle information on a storage chip of the singlechip development board;
and step 4, receiving information of other vehicles: the single chip microcomputer development board receives other vehicle information sent by the Zigbee module;
and 5, editing information: the single chip microcomputer development board recombines the information received in the steps 3-4 to obtain array data, information of each row in the array data cannot be repeated, and each vehicle ID only comprises N different time;
step 6, sending information: the single chip microcomputer development board sends the array data to the automobile through the vehicle communication interface, and simultaneously sends the array data to other automobiles through the Zigbee module; then enter sleep mode and wait for the timer trigger to start a new cycle.
On the basis of the scheme, N is an integer of 1-100.
The internet communication device can conveniently and quickly transform a common vehicle into an internet vehicle, and realizes V2X communication between two or more vehicles in a 5G uncovered area or without 5G vehicle-mounted equipment, thereby providing low-cost internet communication support for relieving traffic jam.
Those not described in detail in this specification are within the skill of the art.