View unanswered posts | View active topics It is currently Thu Jan 17, 2019 10:39 am

Reply to topic  [ 3 posts ] 
 Slow fitPC-B Barebone and .rules 
Author Message

Joined: Sun Oct 04, 2015 4:06 pm
Posts: 21
Post Slow fitPC-B Barebone and .rules
Hi All

This is not a question, but information that someone may find usefull.

I have just spent 2 days solving a problem that wouldn't allow me to use SYMLINK in Linux Mint.(and probably other flavours)
Because the USB device could end up on any port, I wanted a persistent name.
Basically the problem was this:
When the system reads the .rules (yours or the system) and the USB device is not ready,
it does not create the folder /dev/serial/by-id/device name... until the device is ready.
Note that the device was plugged in from boot up. In my case it took 40 sec's AFTER the Mint screen was up to create that folder, and thus install system SYMLINK to the device.
Because the system link was a very long name,and included a serial number, I wanted a short symlink name like "Adam4561".
I created 99-local.rules in /etc/udev/rules.d and wrote all the relevant detail such as idVendor & idProduct and SYMLINK+="Adam4561"
Didn't work , then supporter WharfRat on Mint Forum suggested to install a WAIT-FOR in the .rules file.
That didn't work either, as it times out after only 10 sec, and you can't extend it.
I could have created a script that waits for the device to appear, (I am a newbie to Linux and scripts are still Swahili to me) but instead wrote a Search & Delay routine in my software, then issued a statement "echo mypassword | sudo udevadm trigger" and now it all works.

Prior to using the fitPC, I used Advantech cpu boards, and this was never an issue.
I don't know why Mint is taking that long to initiate the usb device, but I can communicate with it immediatly if I use device name ttyUSB0, but I can't guarantee that is where it will be.

Hope this helps others.


Sun Jan 03, 2016 4:49 pm
Post Re: Slow fitPC-B Barebone and .rules
Thanks for sharing your experience about the issue.
It sounds like Linux Mint specific characteristics. I am not sure, but maybe HW or BIOS may somehow impact the delays created in USB detection.

Do you have an option to check similar results on other OS, Windows or Linux? As we are not familiar with any USB init issues with fitlet on Windows for example.

But I will ask our Linux expert to address this point, probably he has another explanation for this.

Wed Jan 06, 2016 11:48 am

Joined: Sun Oct 04, 2015 4:06 pm
Posts: 21
Post Re: Slow fitPC-B Barebone and .rules
Hi All

Have just ordered 5 x Fitlet i, so will see if the same problem exists on those.

I have FreeDos & XPe Compact Flash that I can use to check, but I don't use
usb on either of those.
Will let you know how I go with the Fitlet-i


Mon Jan 18, 2016 7:29 pm
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.