battletoad
Expert Member
- Joined
- Mar 10, 2009
- Messages
- 1,461
- Reaction score
- 52
A colleague and I are sending a box out to the bundus where it has to collect data and send back to the lab. The setup is:
1. An HMI system running probably some version of embedded linux (just think dumb pc). Has no network capability, but it dumps data to a usb drive whenever a schedule fires provided said usb drive is attached.
2. Raspberry Pi type A.
What I'd like is to somehow get the data onto the Pi and then send it to a web server.
Problem is, no network and only usb drives. A very ghetto solution which would probably work is to get a 4 port usb hub and connect the HMI, Pi and a flash drive. Procedure would then be:
1. unmount flash drive from Pi
2. Pray hard that HMI picks up flash drive and set it to dumping mode. After time delay/write complete, reset HMI (thereby making flash drive available to Pi)
3. mount flash on Pi, get data and send off.
4. rinse and repeat.
This has to be synchronised perfectly, but that's ok. This is the only solution I can think up apart from requiring additional items. Also, for the most part it is proof of concept.
How dependable is this solution since the flash drive will be arguably unmounted unsafely? Is it even possible?
I've had a look at USB gadget (make file/partition available as flash drive) but the end result is similar.
1. An HMI system running probably some version of embedded linux (just think dumb pc). Has no network capability, but it dumps data to a usb drive whenever a schedule fires provided said usb drive is attached.
2. Raspberry Pi type A.
What I'd like is to somehow get the data onto the Pi and then send it to a web server.
Problem is, no network and only usb drives. A very ghetto solution which would probably work is to get a 4 port usb hub and connect the HMI, Pi and a flash drive. Procedure would then be:
1. unmount flash drive from Pi
2. Pray hard that HMI picks up flash drive and set it to dumping mode. After time delay/write complete, reset HMI (thereby making flash drive available to Pi)
3. mount flash on Pi, get data and send off.
4. rinse and repeat.
This has to be synchronised perfectly, but that's ok. This is the only solution I can think up apart from requiring additional items. Also, for the most part it is proof of concept.
How dependable is this solution since the flash drive will be arguably unmounted unsafely? Is it even possible?
I've had a look at USB gadget (make file/partition available as flash drive) but the end result is similar.