Mailing list archives : pcb-rnd

ID:5126
From:rn...@igor2.repo.hu
Date:Thu, 16 Sep 2021 15:18:45 +0200 (CEST)
Subject:[pcb-rnd] femtocom: another electronics-related microproject
replies: 5129 from Stef <st...@gmail.com>
Hi all,
 
this is not pcb-rnd related but may be useful for anyone doing electronics 
with serial lines from *NIX, so it is on-topic.
 
I very often need a serial terminal program to communicate with the 
command line of my circuits. It is slighlty more than just a pair of 
cat(1)'s, but over the years I've learned it's much less than what even 
the smallest software, such as minicom or picocom offer.
 
Particularly: I typically set up the serial line once, when I plug in the 
device, using stty(8) and I do not want the terminal program to change 
baud rate, parity or anything alike. I constantly had to work this around 
with the usual *com programs. My other problem was the control character 
that is typicall ctrl+a by default which collides with screen(1). Then 
picocom used some sleep() at exit for some reason, probably something 
related to flushing, and it was real annoying. 
 
I know defaults can be changed and programs can be convinced not to change 
the baud rate, but I don't like the idea to have unnecessary code in my 
programs just so that I can spend more time on working them around.
 
So I took picocom, forked it as femtocom and removed a lot of code, making 
it even smaller. The result is:
 
http://www.repo.hu/projects/femtocom/
 
Best regards,
 
Igor2
 
 

Reply subtree:
5126 [pcb-rnd] femtocom: another electronics-related microproject from rn...@igor2.repo.hu
  5129 Re: [pcb-rnd] femtocom: another electronics-related microproject from Stef <st...@gmail.com>