Skip to main content

Questions tagged [serial-port]

A serial port is a physical interface through which data is transferred (uni- or bidirectionally) one bit at a time. Largely superseded in the consumer market by USB, serial connections are still commonly used in many other specialist applications. Typical applications include scientific/medical instruments, industrial controllers and server diagnostics...

5 votes
1 answer
221 views

I started an Arduino project that could execute instructions from an SD card file on the screen. I managed to do it, but another problem appeared: I can't print all the files from the SD card to the ...
ArtyomTop1gg's user avatar
3 votes
0 answers
197 views

I am currently implementing the EZSP and the underlying ASHv2 protocols in Rust with the intention to use them on an embedded smart home gateway to control ZigBee devices. In this review I present you ...
user avatar
1 vote
1 answer
286 views

I've been reviewing some code that I maintain recently, and I came across this wrapper object for the serial port class. I'm trying to understand the advantage of this seemingly redundant object: <...
Pslice's user avatar
  • 162
3 votes
0 answers
8k views

I'm having an implementation using SerialPort in C# using Visual Studio 2019. I'm using it in a Windows Application, using .NET Framework 4.7.2. When I open and ...
Hans Billiet's user avatar
1 vote
1 answer
694 views

The longest example program in my PicoBlaze Simulator in JavaScript is this decimal-to-binary converter: ...
FlatAssembler's user avatar
2 votes
1 answer
207 views

Assignment description I'd like to receive feedback on an assignment which I'm currently working on. I have to make two traffic lights which allow traffic to run smoothly. I'm using a master Arduino ...
Stefan2000's user avatar
2 votes
0 answers
108 views

This is a USB related question, but the problem is not USB specific. When reading data from a USB endpoint, there are two patterns I am concerned with. Request/Response like HTTP (done over the Bulk ...
Christian Findlay's user avatar
1 vote
1 answer
1k views

I wrote a blocking serial port library, Blocking serial port C library, but prefer non-blocking so wrote this library where user can specify callbacks. So it is event driven. The code assumes C99 or ...
arcomber's user avatar
  • 2,551
2 votes
0 answers
226 views

I am planning to write a reasonably feature rich serial library but wanted to cut my teeth on something fairly basic. This serial library is fairly simple. It is a thin wrapper on the UNIX open, ...
arcomber's user avatar
  • 2,551
1 vote
1 answer
181 views

I have a function which contains two switches, which check for Command Code and Response Code after that updating UI elements. The code is working fine. How I can reduce or improve those switch cases?...
Prashant Pimpale's user avatar
15 votes
2 answers
7k views

Please review my serial port class written in C++. It is completely asynchronous, ie event driven. My idea for later is to inherit from this a sync_serial, where timeouts can be specified and it ...
arcomber's user avatar
  • 2,551
4 votes
3 answers
232 views

I have a message coming in and I need to match it against the expected messages. The program will eventually do something as a result of receiving those messages. I am not very experienced at ...
Tryb Ghost's user avatar
4 votes
2 answers
774 views

This code is for a ROS (http://www.ros.org/) node that controls a pair of servo motors (referred to in the code as grippers) that can be controlled individually or together. When they are controlled ...
Ben H's user avatar
  • 181
2 votes
2 answers
3k views

I'm reading range/distance sensor data from one Serial Port, decoding it and then transmitting it to a secondary device in ASCII format. The sensor uses a 2-byte header with each byte containing the ...
Thabiso Mofokeng's user avatar
4 votes
1 answer
4k views

I made a simple C# library which detects incoming data from 1 or 2 scales plugged into a computer's usb. My main concerns: I feel like I should potentially be using events/delegates to process the ...
Bassie's user avatar
  • 559

15 30 50 per page
1
2 3 4 5