Forum Topic - QNX 4 USB script : (4 Items)
   
QNX 4 USB script  
Hello community,
 
I have some CPU's here with the final build of QNX4 (2011) installed that I am trying to get the USB stack working.

I currently installed the latest one from 20130301 and I have been successful in manually mounting and unmounting a USB 
with the following commands in this order: (I have to give credit to some older posts from Gregor Dreijer and my own 
colleagues at work).

To mount:

io-usb &
Fsys.umass &
mount -p /dev/hd0 (my disk comes up as such, may be different for others)
slay Fatfsys
Fatfsys

To unmount:

slay Fatfsys
umount /dev/hd0
rm /dev/hd0

To recreate the Fsys.umass for an already preloaded disk drive:

Fatfsys

So now that I have this together I would like to know if it's possible to create a script for plug and play so that I do
 not have to have a USB already preloaded.  My understanding was that in earlier iterations of the software Fsys.umass 
did not have this feature.  Has it changed since then?  Any suggestions?

Thank you all.

~Ju
Re: QNX 4 USB script  
Hi Julian,

Current Fsys.umass does not have this feature. As I understand it, Fsys.umass should not have hot plug mounting feature.
 I think this work should do stand-alone manager, that connect to io-usb, listen for plug/unplug events and launch 
script to mount/unmout mass-storage devices. Enum-usb manager provides this feature in QNX6.

Respectfully,
Oleg

22 авг. 2014 г., в 18:23:57, Julian Babel <community-noreply@qnx.com> написал:

> Hello community,
> 
> I have some CPU's here with the final build of QNX4 (2011) installed that I am trying to get the USB stack working.
> 
> I currently installed the latest one from 20130301 and I have been successful in manually mounting and unmounting a 
USB with the following commands in this order: (I have to give credit to some older posts from Gregor Dreijer and my own
 colleagues at work).
> 
> To mount:
> 
> io-usb &
> Fsys.umass &
> mount -p /dev/hd0 (my disk comes up as such, may be different for others)
> slay Fatfsys
> Fatfsys
> 
> To unmount:
> 
> slay Fatfsys
> umount /dev/hd0
> rm /dev/hd0
> 
> To recreate the Fsys.umass for an already preloaded disk drive:
> 
> Fatfsys
> 
> So now that I have this together I would like to know if it's possible to create a script for plug and play so that I 
do not have to have a USB already preloaded.  My understanding was that in earlier iterations of the software Fsys.umass
 did not have this feature.  Has it changed since then?  Any suggestions?
> 
> Thank you all.
> 
> ~Ju
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post111524
> To cancel your subscription to this discussion, please e-mail general-qnx4-unsubscribe@community.qnx.com

Re: QNX 4 USB script  
Good Morning Oleg 
   Thank you for your words.  So sorry to ask to be hand held a little bit but based on your post then am I 
understanding correctly that while Fsys.umass does not have pnp I can modify my script in the previous post to listen 
for when a device is plugged in a usb port?  If so, any idea on how I can enable this?

Thanks again

~Ju
Re: QNX 4 USB script  
Hi Julian,

It is better to use USB SDK 2.0 and write a small manager to launch your scripts. Unfortunately, USB SDK 2.0 is not 
released. Another way is modify your script to parse the output of usb utility in infinite loop. I guess the script will
 been more complex in that case.

Respectfully,
Oleg

25 авг. 2014 г., в 17:13:02, Julian Babel <community-noreply@qnx.com> написал:

> Good Morning Oleg 
>   Thank you for your words.  So sorry to ask to be hand held a little bit but based on your post then am I 
understanding correctly that while Fsys.umass does not have pnp I can modify my script in the previous post to listen 
for when a device is plugged in a usb port?  If so, any idea on how I can enable this?
> 
> Thanks again
> 
> ~Ju
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post111532
> To cancel your subscription to this discussion, please e-mail general-qnx4-unsubscribe@community.qnx.com