Find Jobs
Hire Freelancers

C/C++ App for serial port communication

$10-30 USD

Cancelled
Posted over 6 years ago

$10-30 USD

Paid on delivery
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 }; [login to view URL] = [login to view URL]; [login to view URL](GenPoll, 0, 1); // sends 0x80 gen pol to all machines they wake up and listen for their address OR'ed with 0x80 [login to view URL](20); gives the machine time to clear responses from its buffer (prevents duplicate responses) [login to view URL](GenPoll, 1, 1); // sends out poll to mahne with address of 1 [login to view URL] = [login to view URL]; } private void sendcommand (Byte[] commandbyte) // no delay needed if sending specific bytes to machine as a command, long poll, etc. { [login to view URL] = [login to view URL]; [login to view URL](commandbyte, 0, 1); [login to view URL] = [login to view URL]; [login to view URL](commandbyte, 1, commandbyte.Length-1) }
Project ID: 15213913

About the project

4 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $55 USD for this job
User Avatar
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 environment. I used c++ to make many great projects, for example, I made the tools which can convert java files into c++ scripts, of course garbage collection included, this job is very similar to a compiler, and is very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$80 USD in 1 day
4.9 (88 reviews)
6.6
6.6
User Avatar
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 and Experience c programming, raspberry pi, web app Proposed Milestones $70 USD - Project Milestone BTW, I have been working with Raspberry pi/Arduino for the past 4+ years.
$70 USD in 5 days
4.9 (25 reviews)
5.4
5.4
User Avatar
I can implement for you
$40 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
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 in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
WATFORD, United Kingdom
5.0
16
Payment method verified
Member since Aug 3, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.