Open2300 - Serial Port Lock File Patch
You are here: Foswiki>Open2300 Web>SerialPortLockFilePatch (04 May 2015, JohnBerry)Edit Attach

Serial Port Lock File Patch

Introduction

Patch from Sourceforge tracker from anonymous user.

Tries to address the problem of blocked serial port.

Description of Patch

Text posted at Sourceforge

If I am start in same time two open2300 programs, new hangs indefinitely, and the next too.

it's because on my computer ( redhat 9 uptodate, with 64 Mo of RAM ), the simple fact to open the serial port, even if you don't send any data, modify serial parameters. And the lock function of linux.c, wait indefinitely.

solution: open ( and create if not ever exist), a constant file, check if is locking in no blocking mode, and if not, continue normal operation or if locked then exist immediately.

see proposal patch for linux.c program

Installation of Patch

copy the patch to the open2300 directory to apply, go to the open2300 source directory

patch -p0 < ./open2300-1.10-patch-linux_c.txt

Change History of Patch

1.0 Initial version

Discussion and Comments

For now I have chosen to include another proposal for handling blocked serial port.

I would like to avoid starting having new files being written and and people having problems with access right etc.

-- KennethLavrsen - 19 Jul 2006


Thanks a lot. This seems to work fine.

I also tried the other solution (http://www.lavrsen.dk/foswiki/bin/view/Open2300/NonBlockingOpen), but this doesn't seem to work for me.

Thanks for the help, and for the very useful software,

JP

-- JohnBerry - 04 May 2015
Topic revision: r3 - 04 May 2015, JohnBerry
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.