Slashdot Mirror


Automated Wireless File Transfers?

Maskirovka asks: "I'm in the process of designing a helicopter mounted compact flash reader/transmitter package to upload photos to a fileserver upon landing, probably using 802.11g. It needs to be idiot proof (ie, plug a flashcard into it, and it'll upload automatically as soon as it gets in range of the basestation), and should weigh less than 5 pounds so as not to affect the aircraft weight and balance. It could probably be built around a Via EPIA board using a PCI WiFi card and riser, but that almost seems overkill for the one specific task. Is there a more efficient way to do this with off the shelf hardware?"

39 comments

  1. Let me pop-up an answer by orthogonal · · Score: 4, Funny

    Is there a more efficient way to do this with off the shelf hardware?

    Get a wireless X-10 camera, and mount it on your helicoptor. Then a model-quality blonde who wears nothing other than bikinis will move in next door, digging out a pool in one doesn't yet exist, and spend her entire life lounging by the pool, moving only in order to keep herself centered in the lens of your camera.

    It's all true, I saw it in a pop add. And another pop-up add, and another pop-up add, and then in a pop-up add.

    <script language="ECMAScript"> window.open("http://www.x10.com/annoyingflashingad ", scrolbar='no', closable='no', alwaysontop='yes', believable='no');</script>

  2. I am really curious to know... by TermAnnex · · Score: 2, Funny

    What are you DOING?!

    I can only imagine some sort of cloak and dagger digital image exchange with a gratuitous amount of trenchcoats.

    1. Re: I am really curious to know... by Skyfire · · Score: 1

      You could click on the link that says Maskirova. It looks like he has a aeriel photography biz in Alaska.

      --
      Do not go gentle into that good night. Rage, rage against the dying of the light.
    2. Re: I am really curious to know... by jerde · · Score: 1

      Cloak and dagger is right...

      I first read this as "automated fileless wire transfers", which could only mean some sort of computer bank fraud.

      (Who would'a thunk that the brain could do Spoonerisms while reading?)

      - Peter

      --
      INsigNIFICANT
  3. scripting & openbrick by DA-MAN · · Score: 5, Informative

    Here's a quick suggestion

    1) Get OpenBrick (www.openbrick.org)
    2) Install Linux w/ ftp server
    3) Use heartbeat to monitor your box on board
    4) when available, copy data from OpenBrick with either ftpcopy or mirroring software of your choice
    5) ???
    6) Profit

    --
    Can I get an eye poke?
    Dog House Forum
    1. Re:scripting & openbrick by stonebeat.org · · Score: 3, Informative

      heartbeat and openbrick is a very good idea. However I will suggest RSYNC instead of ftp.
      RSYNC will help you re-start the transmission from where you left if the connection breaks.

    2. Re:scripting & openbrick by DA-MAN · · Score: 1

      Good one, I like the rsync idea as well.

      --
      Can I get an eye poke?
      Dog House Forum
    3. Re:scripting & openbrick by gfilion · · Score: 1

      1) Get OpenBrick (www.openbrick.org)

      Nope, get a Soekris board, save about $100, that's what I call profit.

  4. Hmmm by the_other_one · · Score: 2, Funny

    Try using a charcoal pencil and a sketch pad.
    Just before landing fold the image into the traditional paper aeroplane shape.
    As you approach the base station launch the image.
    The pilot may have to do some tricky flying to direct the rotor wash so that the image reaches the base station.

    --
    134340: I am not a number. I am a free planet!
  5. Some Ideas by MazTaim · · Score: 1

    You could get a Soekris 4501 or other box from www.soekris.com, strip it down to just board, find a way to power the board. All the specs for the boards are located on Soekris' site.

    From there, you could create a script that listens for when you put a CF card in. Don't ask me how to do that, I don't know a lick of any type of program language, scritping language, or just plain language.

    1. Re:Some Ideas by questionlp · · Score: 1

      Couldn't one use an automount daemon and an entry in one's fstab to automatically mount the memory card to a drive and at that point launch a script that does an rsync, scp or CIFS file transfer to the destination server?

      There is an article on Daemon News that can help with running a script using the pccard support in FreeBSD to initiate a script to copy files from a Compact Flash card to the system... but it doesn't cover using an automount daemon.

  6. Terapan Mine by HughsOnFirst · · Score: 3, Informative

    I was going to do almost exactly this except without the airplane part.

    My plan was to use a Terapan
    Mine tethered to a digital SLR with the Terapan set up as the USB master
    and the SLR as the slave.

    Then I would stick a wifi card in the mine and program it to continuously
    download the files from the DSLR and ftp them to my server when it could.

  7. like this? by sethgecko · · Score: 3, Informative

    #!/usr/local/bin/ksh
    while true
    do
    if [[ -x /CFmountpoint/imagedir ]];then
    server=$(nslookup <serverName>)
    if [[ $server = *<serverIP>* ]];then
    rsync -e ssh -az /CFmountpoint/imagedir/ <server>:imagedir/
    fi
    fi
    sleep 60
    done

    anything else?

    --
    Be ot or bot ne ot, taht is the nestquoi.
  8. That's kinda cool... by Anonvmous+Coward · · Score: 3, Informative

    ... it could be uploading photos the moment a radio signal is established, as opposed to waiting for a grunt to hook up a cable.

    Pretty slick!

    Kinda curious if you've considered using a PocketPC for that. Just plug the CF card into the PocketPc that already has 802.11 going, then write a simple little app that handles the transfer bit. That'll get you into the 5lb mark, and there's no moving parts to break. The downside is that may be a little pricier than you have in mind. The plus side is that it turns on instantly and has its own display etc.

    1. Re:That's kinda cool... by HughsOnFirst · · Score: 1

      Yes I considered using a PocketPC for that.
      I can't find one that will act as a usb master.

      Feel free to point one out to me.

    2. Re:That's kinda cool... by Anonymous Coward · · Score: 0

      what do you need USB for? Use a CF card jacket or something.

    3. Re:That's kinda cool... by Anonvmous+Coward · · Score: 1

      May I ask what the USB master is for?

      *curious*

      Funny that this topic came up, the company I work for has a spherical video camera that'd be of interest to helicopter pilots who want to see what's underneath the ship, i.e. power lines nad antennae.

    4. Re:That's kinda cool... by EuroBryce · · Score: 1

      IIRC, the NEC MobilePro and all of the recent Toshiba Pocket PCs have USB Master support.

  9. Rendezvous by Anonymous Coward · · Score: 0

    Use Rendezvous. Rendezvous can fire a callback when a service becomes available. The POSIX implementation of Rendezvous is free for download from Apple.

    1. Re:Rendezvous by DA-MAN · · Score: 0

      You are in serious need of a dhcp server!

      --
      Can I get an eye poke?
      Dog House Forum
  10. ipaq by Hadlock · · Score: 4, Informative

    iPaq + linux + CF reader + 802.11g card + 20 minutes persuading the compsci major to write you an app + cron job for this = success!

    i'm sure you could have equal luck with a palm pilot of sorts if you worked at it hard enough.

    --
    moox. for a new generation.
    1. Re:ipaq by RevAaron · · Score: 1

      I really wouldn't use a PalmOS device- you woukd have to do a lot more work. Most likely you'd end up writing a app in C, not just scripting something. That C app will take a lot longer to write and even longer to test. There are scripting options for POS, but not with all of the extensibility and support as on InCE and Linux.

      Also, you'd run into a lot of reliability problems- you'd have to make some external box that would reboot the POS device whenever it wasn't responding, over serial most likely; it'd have to be with the Palm in your 'copter.

      However, in addition to a Linux PDA, you should consider a WinCE PDA. A few reasons:

      1. Reliability. WinCE (3.0 and 4.0) is a pretty robust OS, although if you automatically associate WinCE with desktop Windows experience you may snicker at that. But really, it is quite stable.

      2. Better drivers (often, not always!) than you could get for a Linux PDA, also support for more cards and slots.

      3. Depending on size, something like a Dell Axim may be better than an iPAQ (plus a big ass dual-slot sleeve). That is, a lot of WinCE and Linux PDAs are coming with one CF and one SD slot these days- you could put the memory card and wifi card in either. However, if you are hell bent on using a CF card rather than SD for memory, you are left with a SD card slot for the wifi. There are SD wifi cards- but they require SDIO support, support you can't get on Linux PDAs, even when the hardware supports it.

      4. Like on a Linux PDA, you have a lot of good options for rapid app development options. Go ahead, write a script in Python, perl, Ruby or lots of other things.

      --

      Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
  11. use a pda by aminorex · · Score: 1

    you can get a PDA with a CF wifi card for $200.
    Remove unnecessary parts and it should be under
    200 grams. Trick is: Your video cam is recording
    to flash, and you want the flash connected to the
    pda's flash adapter when it comes in range.
    To do this, control SCRs from the serial port
    of the PDA, to switch connections. uCLinux might
    be helpful if you dislike PalmOS code.

    --
    -I like my women like I like my tea: green-
  12. The Business Model by E_elven · · Score: 1, Funny

    1. Have some obscure technical business idea.
    2. Ask gullible/nice slashd^H^H^H^H^H^H free consultants to do the hard part for you.
    3. Profit!!!!!

    --
    Marxist evolution is just N generations away!
  13. Wireless Fund Transfer by Anonymous Coward · · Score: 0

    I will give you the answer after you make a wireless fund transfer to my swiss bank account.

  14. Create A script. by dcstimm · · Score: 1

    #!/bin/bash
    mount -t vfat /dev/sda1 /mnt/complactflash
    cp -R ~/whateverdata /mnt/complactflash
    scp /mnt/compactflash/* userid@whatever:~/filesfromhelicopter

    Then you can make it executable, chmod +x script.sh
    then just get some gui to launch it by makeing a icon for it, so you can just double click it. And just make sure you save everything to ~/whateverdata

  15. Nikon D2H and WT1-1 by iammichael · · Score: 1

    Assuming you are taking photos while in the air, why bother removing the compact flash card at all or mounting anything inside the helicoptor? Use the Nikon D2H for taking your pictures and add on the WT-1A wireless transmitter. You'll need to be patient though, as the products have been announced, but not yet released. It uses FTP over 802.11b to transfer the images.

  16. For those who don't seem to understand by bildstorm · · Score: 1

    The key part about this is that it seems like a kind of surveillance ops situation in which the person is taking pictures that shouldn't be transmitted to others except when they land in a secured area.

    I think in order to do this you're going to need to switches, one on the base of the helicopter (which becomes depressed upon landing) and the other inside for verification. That way you aren't trying to transmit in an emergency landing situation. While I'm not a programmer, you should be able to use those as I/O triggers for a piece of software running resident on the system to attempt to transmit as soon as you land.

    Then you may want a verification piece in the software to confirm receipt before erasing what's on your camera.

    --
    The power of accurate observation is commonly called cynicism by those who have not got it. - G.B. Shaw
  17. why i need this by The+Clockwork+Troll · · Score: 1
    I live in Kauai and make my living piloting helicopter tours over the Napali coast.

    I give my passengers a digital camera to use during the 90 minute flight.

    Upon disembarking, it is nice to have them be able to pick up the photos that they took or better yet take a CD home.

    --

    There are no karma whores, only moderation johns
    1. Re:why i need this by Anonymous Coward · · Score: 0

      I live in Kauai and make my living piloting helicopter tours over the Napali coast

      How nice. BASTARD!

    2. Re:why i need this by Matthew+Weigel · · Score: 2, Interesting

      It might be better, then, to make it hop online whenever a CF card is inserted (that is, at the end of the trip), rather than "as soon as it gets in range". A light laptop with a PCMCIA slot running Linux should be able to run arbitrary commands at insertion just fine.

      The alternative seems to be playing with war-driving tools to initiate an action when it sees the right WiFi network...

      --
      --Matthew
    3. Re:why i need this by sethgecko · · Score: 1
      The alternative seems to be playing with war-driving tools to initiate an action when it sees the right WiFi network...

      why? rsync over ssh (or scp) verifies that you're talking to the right server. who cares about determining if you're on the right wifi network? find out if your server is there, start syncing. If the ssh keys don't match, it just won't go.

      --
      Be ot or bot ne ot, taht is the nestquoi.
    4. Re:why i need this by 45um4 · · Score: 1

      It might be easier and cheaper just to take a laptop with cdburner on the helicopter. Then you could either burn the cd after you have landed, or get the customers to burn the cd.

  18. Several possible solutions... by Myself · · Score: 1

    Your project sounds very similar in needs to another application I'd discussed with a friend some time ago. When the Civil Air Patrol gets called out on a search-and-rescue mission, they frequently fly over the suspected area with a video camera, sending frames down to the ground with slow-scan TV so that an expert on the ground can identify likely spots to search. The image quality sucks and the data rate is worse.

    It'd be nice if these folks could carry a multi-megapixel digicam on the plane, snap pics of anything interesting, and have the images sent to the ground for viewing/zooming on a laptop. The only trouble is, the search area is usually several miles on a side, well over the range of normal 802.11a/b. The solution we came up with involves a cadet on the ground with a high-gain dish antenna being told "keep this pointed at that plane". Cheaper and more reliable than an automatic antenna tracker, for sure. :)

    So what we need here is a way to interface with the digital camera. As soon as a photo is taken, we should suck it of the camera's memory and buffer it for transmission to the ground station as soon as possible. Point to ponder: Assume that wireless connectivity is intermittent. Do you transmit the most recent pictures first, or the oldest pictures first, to make sure the base station has the most useful data possible? (LIFO or FIFO?)

    Some time ago, I proposed a bluetooth CF module which would appear as a large FAT filesystem. It would have a limited amount of "cache" memory, where images would immediately be written, and then it would then link to a large hard drive sitting in the user's pocket and free the cache for more images. An 802.11b version would suck more battery than bluetooth, but allow longer range operation. The trick isto emulate a filesystem, so firmware hacks aren't needed. (If you could mess with the camera's firmware, you could use an existing CF wireless card and let the camera handle the protocol, right?) Nikon seems to have released a similar product but it's vaporware and only works with one particular camera.

    In lieu of sitting straight in the camera's media slot, there's always software that controls the camera via serial or USB. The problem is, most of it seems designed for interactive use. I don't know whether the protocols support lurking in the background to just suck files off the flash card, without interfering with the camera's normal operation. Several of the packages are based on a common code base with a protocol that's fairly well documented, so rolling your own isn't out of the question. Let's assume for the sake of discussion that your camera supports this and suitable software can be found or written.

    If you can get by on RS232's peak speed of 115200bps, and if the software can be worked out, there are several hardware options. Several other posters have suggested PDAs with wireless cards. That's a great idea, especially if you can strip off the screen and case to save weight. Some suggested the Soekris net4511 or similar. It's got a low-power 486 chip, serial ports, ethernet ports, and a PCMCIA slot for your wireless card. Or, you could hack up an existing 802.11b accesspoint to run linux and use its console port to connect to the camera. (Note: The Eumitcom-based APs are getting hard to find now. Not a platform with future potential.) There's a similar project for the Apple Airport base station, but it's limited to etherbooting, probably not suitable for this application.

    You could use a pair of Ricochet modems dialed to each other (auto-answer on the chopper, and dial from the ground), in which case they simp

  19. A few questions. by LWATCDR · · Score: 1

    Is this just a way to send the data or does the helicopter take the pictures?
    You are not very clear beacause you are talking about a reader.
    You could build a system with say an ez80 or AVR chip that has a memory card reader, memory card emulator and network connection.
    You would plug the memory card into your device. Then your device into your camera. The network connection goes to a small AP. Then add the software.
    You would have to have an electronc way to swap the memory card but that would not be too dificult to do.
    No need to carry a Linux system on the chopper just to download pics.

    --
    See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.