Completed

Serial Daemon with UDP Sender

Serial Client in C with UDP Sender

Brief description :

Linux daeomn to communicate via RS232 protocol

Baud Rate : 9600

DataBits : 8

StopBit : 1

The com port should be a passable parameter via command line eg: -/ttyUSB0

UDP sender on Port :45454

Overview of the general workings of the programm

1. Read a text file called [login to view URL] determine which Live values should be requested

the file contains which adresses should be read seperated by , for example :

0x00,0x01,0x0b

Construct the Live request message by prepending 0x5a before each value and appending 0xf0 at

the end

so in this case the the live request message would look like

0x5a 0x00 0x5a 0x01 0x5a 0x0b 0xf0

2. Initialize the ECU by Sending the following command via serial :

0xFF 0xFF 0xEF

3. The ECU will respond

0x10

4. If response is 0x10 continue to step 5. else initizialize again with step 2.

5. Request Live Data with the message we constructed in step 1

6. Parse Live Data and apply calculations to make the format human readable (see [login to view URL]) for details

7. Send each value as a string via UDP port 45454

The UDP message contains 1 string with 2 values that are comma seperated .

The first value is a identifier , the second value is the calculated live data .

Example for RPM : “179,3600”

Example we request the live stream for CAS Position (RPM) & Vehicle speed by sending :

0x5a 0x00 0x5a 0x01 0x5a 0x0b 0xf0

The Reply will look like this :

(Once off the Header will be sent from the ECU ,to tell us in which structure the data will be)

(0xa5 means the data type is Live data followed by the adress 0x00 RPMMSB 0x01 RPM LSB 0x0b vehicle speed )

0xa5 0x00 0xa5 0x01 0xa5 0x0b

(continuous live stream of the data)

(beginn of message is always byte 0xff, second byte tells us how many bytes will follow in this example 3 Bytes 0x03 then the actual values are received )

0xff 0x03 0x00 0x3e 0x00

0xff 0x03 0x00 0x41 0x00

0xff 0x03 0x00 0x3f 0x00

0xff 0x03 0x00 0x3f 0x00

0xff 0x03 0x00 0x41 0x00

0xff 0x03 0x00 0x3e 0x00

0xff 0x03 0x00 0x41 0x00

0xff 0x03 0x00 0x3f 0x00

0xff 0x03 0x00 0x41 0x00

0xff 0x03 0x03 0xf0 0x00

0xff 0x03 0x00 0x3f 0x00

……………

Kemahiran: Pengaturcaraan C, Linux

Lihat lagi: udp example server client send file java, udp nat client server, simple udp server client android, socat serial to tcp, netcat serial port, perl udp broadcast client, html5 udp sip client, android udp server client, udp bot client, udp chat client java, write letter client send software project requirement write letter, make email sender client php, java udp p2p client, google voice client send sms, client send commands server, smpp client send message smpp simulator, simple tcp udp server client windows, udp sender windows, udp sender, udp sender software

Tentang Majikan:
( 5 ulasan ) Pretoria, South Africa

ID Projek: #17052364

Dianugerahkan kepada:

prashantawde

Experience in C, Socket Programming. I will complete this project in 3 days. Milestones are as follows: 1. Configuration for UDP, Serial port. Daemon creation. 2. Parser Logic

$100 USD dalam 3 hari
(1 Ulasan)
2.0

6 pekerja bebas membida secara purata $186 untuk pekerjaan ini

hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Lagi

$200 USD dalam 3 hari
(98 Ulasan)
6.7
$250 USD dalam 3 hari
(24 Ulasan)
4.4
LinuxSecurity

Hey, I'm interested in your project. Please send me a message so that we can discuss more. Serial Daemon with UDP Sender Thanks & Regards, Tanzil [login to view URL]

$150 USD dalam 3 hari
(2 Ulasan)
2.4
$166 USD dalam 5 hari
(1 Ulasan)
2.4
julian4c

When is you deadline? I have been writing CAN/LIN communication modules for several cars: GM, Ford, Tesla, Toyota. Using several devices: dearborn gryphon, or writing tools from de scratch (using arduino). So, you Lagi

$250 USD dalam 5 hari
(0 Ulasan)
0.0