Peruttu

C/C++ App for serial port communication

I need a C/C++ app to receive/forward commands to serial port (rs232) in 9 data bit mode. The project was tested in node.js and works fine by switching parity mark/space for the 9th data bit (works with windows only). There are two main problems with node.js serial port communication that we want to solve in C.

1. high CPU load

2. missing parity mark/space on linux

3. closing the port in middle of data transmission to switch parity.

The data structure is:

for the first byte

start bit - 8 data bits - wake bit (1) - stop bit

for the remaining part of the message/data

start bit - 8 data bits - clear wake bit (0) - stop bit

I need the C app to receive/forward all data to/from node.js. To function like proxy for the serial port communication. It has to be compiled on raspberry pi. Teamviewer access to connected device will be provided.

sample code:

private void generalpoll()

{

Byte[] GenPoll = { 0x80, 0x81 };

[url removed, login to view] = [url removed, login to view];

[url removed, login to view](GenPoll, 0, 1); // sends 0x80 gen pol to all machines they wake up and listen for their address OR'ed with 0x80

[url removed, login to view](20); gives the machine time to clear responses from its buffer (prevents duplicate responses)

[url removed, login to view](GenPoll, 1, 1); // sends out poll to mahne with address of 1

[url removed, login to view] = [url removed, login to view];

}

private void sendcommand (Byte[] commandbyte) // no delay needed if sending specific bytes to machine as a command, long poll, etc.

{

[url removed, login to view] = [url removed, login to view];

[url removed, login to view](commandbyte, 0, 1);

[url removed, login to view] = [url removed, login to view];

[url removed, login to view](commandbyte, 1, commandbyte.Length-1)

}

Taidot: C-ohjelmointi, node.js

Näytä lisää: i need app templates, i need app developer, i need app designs, i have an app idea well worked out i need a programmer greenfield park jobs it, vba serial port communication, net serial port communication project, net serial port communication, serial port communication project, serial port communication via bluetooth java, visual basic serial port communication microcontroller, serial port communication testing dos, serial port communication java projects netbeans, serial port communication j2me, program response smart card reader serial port communication java, j2me serial port communication sample, j2me bluetooth serial port communication, serial port communication java wieghing machine, serial port communication agreement, perl program serial port communication usb

About the Employer:
( 16 reviews ) WATFORD, United Kingdom

Projektin tunnus: #15213913

5 freelanceria on tarjonnut keskimäärin 49 $ tähän työhön

hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on client side, using c++ under windows envir Lisää

80 $ USD 1 päivässä
(82 arvostelua)
6.6
hainraja

Hi, I have worked on similar project on Raspberry pi to communicate with a vending machine (I couldn't recall it is 8 bit or 9 bit communication). I wrote a native app on PI to communicate with serial Relevant Skills Lisää

70 $ USD 5 päivässä
(25 arvostelua)
5.5
evontech4

Hi, i am a full stack mobile & web dev having similar technical skills & experience & have already worked on a similar project before so can do this Ref : [url removed, login to view] Relevant Skills a Lisää

25 $ USD 1 päivässä
(0 arvostelua)
0.0
congbang2709

I can implement for you

40 $ USD 1 päivässä
(0 arvostelua)
0.0
nkannan89

As worked on automation industry having good knowledge in serial communication Relevant Skills and Experience strong in c++ serial communication Proposed Milestones $30 USD - complete

30 $ USD 1 päivässä
(0 arvostelua)
0.0