I'm using my c-program that creates files. It uses the the USB-mass storage 
device that comes with the BBB which is created by 
/opt/scripts/boot/am335x_evm.sh (so, in that sense, you could say I use a 
script).
I've mounted the disc-image-file it uses, so my application simply writes 
its files to that device, for the host PC to copy.

The BBB with my application is a measuring device which produces result 
files (in the same way as a digital camera).
It would nice to be able to upload these files to a PC via USB. 

Scp could be a solution but I don't have control over the host PC, in the 
sence that I don't want to install programs on it. The PC usually belongs 
to somebody else. Simply put, I want to the ability to connect to any PC, 
have my application to create files on the BBB and then letting the owner 
of the PC to upload them to his domain.

Another solution is to unplug-reinsert the cable after every measurement. 
That's where I stand today  ...but it's not pretty. 
I feel I'm so close: I only need my application to toggle the USB device 
off/on, so the host will behave as if it was unplugged/reinserted, and 
update its file info.

But I don't know how. I have difficulties understanding the 
am335x_evm-script and it seems to be run once, at startup. Isn't there an 
easy way of turning the USB-mass- storage-device on and off from an 
application?

Yes, I have been thinking of buying a mechanical relay, controlled by a 
gpio, to unplug the cable from my application. That would probably do the 
job, but it feels awkward.





Den måndag 14 maj 2018 kl. 03:42:17 UTC+2 skrev Mala Dies:
>
> Hello,
>
> Are you using software to perform this action or a shell script?
>
> Seth
>
> P.S. I found that there are particular software, WinSCP, that transfers 
> files from bbb to host easily and vice versa. This may be something to look 
> into. 
>
> On Thursday, April 26, 2018 at 3:43:15 AM UTC-5, Jon Lundstrom wrote:
>>
>> Yes,
>>
>> But I haven't found the refresh option. Double-checking right now on 
>> Windows7 and Kubuntu... nope, no refresh available. However, I tried <F5>, 
>> but with no effect. I tried Windows10 before writing my question and no 
>> success there either. 
>>
>> Unplugging/reinserting the USB cable was the only remedy. 
>> It would be nice if I could do that from the SW that adds the files to 
>> the gadget.
>>
>>
>> 2018-04-25 14:49 GMT+02:00 Dennis Lee Bieber <wlf...@ix.netcom.com>:
>>
>>> On Wed, 25 Apr 2018 02:25:37 -0700 (PDT), Jon Lundstrom
>>> <j.b.lu...@gmail.com> declaimed the
>>> following:
>>>
>>> >I share files created on the BBB with a USB host (e.g. Windows PC) 
>>> using 
>>> >the USB mass storage device (almost like a digital camera). It works 
>>> fine 
>>> >except for one point: Whenever a new file is created by BBB, I need to 
>>> >unplug-reinsert the USB cable in order for the file to become visible 
>>> in 
>>> >the host (master).
>>>
>>>         Just out of curiosity -- have you tried a <right-click>Refresh 
>>> in the
>>> Windows FileExplorer that is opened on the "USB mass storage".
>>>
>>>
>>> -- 
>>>         Wulfraed                 Dennis Lee Bieber         AF6VN
>>>         wlf...@ix.netcom.com    HTTP://wlfraed.home.netcom.com/ 
>>>
>>> -- 
>>> For more options, visit http://beagleboard.org/discuss
>>> --- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "BeagleBoard" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/beagleboard/ppkuhZB0Z0M/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> beagleboard...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/beagleboard/dft0ed9qt6kdq2jgq7aums02guboro78qt%404ax.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/4e6f345a-f7b6-410c-9b0f-f0fde83562a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to