meshprog failure on Fedora 13/14

While using meshprog on recent distributions of Fedora (13 or 14), I found two issues:

1. One issue is related to gpsd daemon trying to grab the device based on USB-UART converter (e.g. FT232 or cp210x). This is discussed in my earlier post at

Meshprog – USB device opening failure on Fedora 11/12

2. Second issue is related to blocking read used in meshprog code. I found that by making the USB device read non-blocking, it starts to work fine. I am not sure if this is the right way to do it. Here are the specific details:

Go near line 115 in meshprog.c file and change the line to open USB device in non-blocking mode:
// f = open(devicename,O_RDWR);
f = open(devicename,O_RDWR|O_NONBLOCK);

After recompilation, it seems to work fine. I have informed the author of the code.

Print Friendly, PDF & Email
Prabhat Ranjan

Author: Prabhat Ranjan

Prof. Prabhat Ranjan is Vice Chancellor, D Y Patil International University, Akurdi, Pune. He was heading India's Technology Think Tank, TIFAC( as its Executive Director since April 2013 to April 2018. Earlier he was Professor at Dhirubhai Ambani Institute for Information and Communication Technology, Gandhinagar (DA-IICT) since 2002. He was educated in Netarhat School(near Ranchi), IIT Kharagpur and Delhi University. He received his Ph D from University of California, Berkeley where he carried our research on “Nuclear Fusion” at Lawrence Berkeley Laboratory during 1983-86. He immediately returned to India after this and carried out research in Nuclear Fusion area at Saha Institute of Nuclear Physics, Calcutta and Institute for Plasma Research(IPR), Gandhinagar. He played a major role in India’s Nuclear Fusion program and was Project Leader of the largest operational Indian Fusion Reactor, ADITYA, at Institute for Plasma Research from 1996-2002. His current interests include applications of Wireless Sensor Network to Wildlife, Planetary Exploration (Chandrayaan mission), Nuclear Fusion, Healthcare, Agriculture etc. He has received National Science Talent Search Award, IBM Faculty Innovation Grant and HP Innovate 2009 award, NPEDP-Mphasis Universal Design Award 2012, Bihar Gaurav Samman 2012 etc.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments