Menu

Process

Lynx ECE

The first test is the one showing the transfer of coordinates from a computer acting as the preceding vehicle to the microcontroller connected to a second PC. The microcontroller will treat these coordinates to send out a distance. Coordinates are generated by the PC simulates the preceding car, and sent to the PC with the car simulating CAN implementation. These data are generated linearly from one side or the other coordinates are generated manually using the JAVA application on the Eclipse software and sent via Ethernet to the second computer that will send these coordinates to calculate microcontroller the distance between the two vehicles and return the remote to the computer that will display the distance on the Eclipse software. Both computers are connected via an Ethernet cable. A network is created between these two units. The second computer retrieves the data, the microcontroller sends a PIC24F Explorer16 mounted on a card. Here, the PIC24F performs a series of operations by passing the coordinate data remotely. It sends output, the distance obtained for further processing.
The second test is the use of CANoe software that simulates a car. The software simulates both the Buscan his vehicle dashboard. The CAN bus is the central artery of a car that centralizes, manages and sends instructions to the various electronic components of the vehicle. Here, the idea was to get the distance information sent by the microcontroller but a format incompatibility prevents this. CANoe has been programmed so that the more the car accelerates, the more it approximates a theoretical vehicle. The test is to demonstrate the use of the software, using the vision panel.

CANoé

CANoe is a modeling software to simulate the vehicle CAN Bus. It simulates nodes, entities can send and receive electronic messages from the bus. These nodes are linked to databases of all the messages and they can emit signals. Each node can only access their messages and signals assigned.
Messages and signals databases are listed in a module to create and manage. It also declares environment variables corresponding to physical data of the vehicle (speed, motor rotation, flashing ...).

JAVA

The use of Java for its appearance was decided multiplatform.
Using the RXTX java library was mandatory because it allows the implementation on x64 Systems in the rain javax.com library. This library allows to realize all type of serial connection.
The use of the library java.socket for connections has been used for its security and stability.

DATA

Following the recovery of the GPS data, it was agreed that the position data will be entered directly into the drive, and then transmitted to the microcontroller who will treat them and send them? The microcontroller performs the transition coordinate distance. The nature of the data is changed.

Final environment

To perform the tests, you should know that they are composed of several parts.
The first is to simulate the vehicle on the CANoe software, simply launch the project CANoe contained in the zip to see the interior appear. So running the simulation and we can control the different vehicle options (key, accelerator, brake, gear lever etc..). The right click is used to activate an item or move a "slap and left click is used to return to a step.
We can see that if we accelerate the distance to the vehicle ahead decreases, if we reach the same speed as the latter, the distance does not change.
The second part is to simulate the sending of data between two vehicles each represented by a computer. Therefore connect the two computers via Ethernet. The suite consists of selecting a client and a server (the client is connected to the microcontroller via a serial port). So running eclipse on both computer, load the program server or client program. Simply power the card 16 to explore using the power supply.
It will then launch the application on the server to connect (not forgetting the ip address of the server to enter the code on the client computer), it is sufficient to send the coordinates and distance will be displayed normally on the PC client.