Shop OBEX P1 Docs P2 Docs Learn Events
Propeller and I-Pad 2 — Parallax Forums

Propeller and I-Pad 2

briank77479briank77479 Posts: 36
edited 2011-06-22 14:21 in Propeller 1
Is it possible to program the Propeller using an I-Pad. Is there a Windows Emulator App for the I-Pad that would allow the propeller development software to be loaded?

Thanks for your input.
Brian

Comments

  • Heater.Heater. Posts: 21,230
    edited 2011-06-20 13:40
    Welcome to the forum.
    I'm pretty sure the answers to your questions are no and no.
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2011-06-20 14:04
    Even if there was you would not be able to connect the propeller to program it.

    The nearest thing would be to use VNC to remotely control a PC using the ipad.

    Graham
  • BaggersBaggers Posts: 3,019
    edited 2011-06-20 15:36
    briank77479, it is possible, but just not at the moment.

    You'd have to wifi out of the iPad to a piece of wifi to serial hardware, ( maybe one of these http://www.serialio.com/products/mobile/wifi/WiSnapAAA.php or something which then goes to pins 30,31 to be able to program it, then you'd need to write be an iOS developer, and be able to write apps to run on iOS, and you'd have to convert propellent.exe to run on iOS and also you'd have to convert a spin/PASM compiler to run on iOS.

    but yeah it's possible, you'd have you're work cut out though, as it's not been done before, although a lot of the hard work has been done, there are various compilers that work, sphinx is done on prop, which will compile also, so you could convert that to run on iOS, which would build a note document file, and convert it to a binary, and send it via wifi to the serial device above ( or similar ) and viola :D

    I may be wrong, but I think it's possible, anyone feel free to correct me.
  • schillschill Posts: 741
    edited 2011-06-20 16:11
    I expect the Parallax Wifi Module (http://forums.parallax.com/showthread.php?128414-Parallax-WiFi-Module) will be able to handle the connection at the Propeller end.

    As Baggers mentioned, someone will still need to develop the software on the Ipad end. A tablet version of 12Blocks might be nice.
  • mindrobotsmindrobots Posts: 6,506
    edited 2011-06-20 18:34
    If you don't mind programming in PropForth, you can do it now with a Telnet App for you iPad and PropForth with the IPServices package running on your Spinneret. It must be true, I have a picture!

    P6202261-sm.jpg


    As everyone else has already mentioned, to program in SPIN and send hex files to the Prop, you need to write an APP which means IOS development. It probably wouldn't get into the App store and would also need a hardware interface (unless the USB adapter for the iPad would work) - still, it's a significant task to get something like this done and approved and into the App store.

    Rick
    1024 x 1365 - 1008K
  • smbakersmbaker Posts: 164
    edited 2011-06-20 18:38
    Aren't there a few environments developed here that allow for compiling propeller code on the propeller itself? If so, then perhaps the ipad2 could telnet in and use such a command-line environment. Probably not as convenient to use as one would like. EDIT: Looks like mindrobots beat me to the idea! :)

    As far as getting serial on the ipad, there is an accessory called the 'ipad camera connection kit' that allows USB accessories to be plugged into the ipad. People have used this to connect devices like USB audio DACs. Would be interesting to plug the prop plug into it and see if it's recognized as a serial port on the ipad (assuming the ipad even recognizes serial ports).
  • mindrobotsmindrobots Posts: 6,506
    edited 2011-06-20 19:14
    The camera connection kit has potential. It powers up my QuickStart when it's plugged in but without a special App, the iPad expects to see a memory card or a camera acting as a memory card there. If it sees that, it takes you into the Photos App. It's great for loading images to edit on your iPad. There are also some power issues with the USB connector - it may power the Prop Plug but probably not a Prop doing any work.

    Still, someone needs to write a serial App that will talk to something connected on the USB port. I haven't found anything in the App Store that sounds like it would do that.

    One more thing to investigate and play with!
  • Adam WieslerAdam Wiesler Posts: 81
    edited 2011-06-20 21:00
    From what ive heard, Apple won't let you talk to a a serial device, without a licence of some sort. On the 30 pin dock connector, there are serial connections, and it technically possible, just not with apple's blessings. However, this looks promising...

    http://hcgilje.wordpress.com/2010/02/15/iphone-serial-communication/

    Another way would be Bluetooth, but apple doesn't like people to talk Bluetooth either. Android would be a lot better for this, especially with the hardware development kits that came out.
  • Mike GreenMike Green Posts: 23,101
    edited 2011-06-20 21:02
    Sphinx is a self-hosting development system for the Propeller. It uses a TV display and PS/2 keyboard and has a simple text editor. It's possible to modify Sphinx to use a serial I/O console instead of the TV and keyboard and I think this has been done already, but it's not packaged up for easy use. You could use Sphinx with a Telnet interface over WiFi this way.
  • AleAle Posts: 2,363
    edited 2011-06-20 22:22
    Even if all the soft&hard are there you have the problem of having to use the on-screen keyboard is awful. Why there are no numbers in it ? and Why do you have to use shifts ? :( I wish you could customize which keys do show up and how many of them are available :(:(
    And the keyboard provided by iSSH is not better, it is just a kludge :(.
  • BaggersBaggers Posts: 3,019
    edited 2011-06-21 01:40
    Is there a specific reason you want to program your prop with an ipad2?
    You could just use the prop alone with Sphinx :)
  • prof_brainoprof_braino Posts: 4,313
    edited 2011-06-21 06:27
    As heater said, there is no "traditional" way yet, but there is an easy way, as mindrobots said, using propforth.

    The propforth over telnet method has the advantage that you are only sending source code text characters to the prop. The interpreter running on prop build the executable image into RAM by itself, without relying on the host. To save the updates image is one command (saveforth); so you don't need to transfer the entire image over the host-target link, this reduces risk of transmission errors.

    Also, your prop could be (almost) anywhere in the world, and your prop could be (almost) anywhere in the world (with an Ethernet connection), and it works pretty much the same as when plugged directly into your PC. A developer in Vancouver debugged a prop in Chicago in under 30 seconds, much of the time was spent was tell him the IP address.

    But if you have have an extra monitor and and extra keyboard, and power, and space; you could use sphinx. But as Mike said, it is not package this way you would have to modify it.
    An alternative would be to use the existing Jupiter ACE propforth, which makes the Demoboard or C3 configurations self hosting programming development station, as works on install. Jupiter ACE has not been brought up to the current release, so does not enjoy SD support for another month or so.
  • briank77479briank77479 Posts: 36
    edited 2011-06-21 11:08
    Guys,
    Thanks for the advice. I was considering an I-Pad for some other applications that my wife and I are interested in as the intent is to replace the old laptop I'm currently using. We have other entertainment devices that have apps that allow the I-pad to sync with them to provide more functionality to the device, but if I can't easily work with my Prop stuff then I'll look at something else.

    Again Thank you so much for all the input!!!

    Brian
  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2011-06-21 12:07
    Here is some info I found earlier this week on getting things to work with your apple devices. It's Apple's release, and it looks like you have to fill out a form and become "certified". Uh.
    http://developer.apple.com/programs/mfi/

    You have to be a licensed app developer to be considered.
  • schillschill Posts: 741
    edited 2011-06-21 13:22
    Here is some info I found earlier this week on getting things to work with your apple devices. It's Apple's release, and it looks like you have to fill out a form and become "certified". Uh.
    http://developer.apple.com/programs/mfi/

    You have to be a licensed app developer to be considered.

    You can't even write and install something on your own personal device without paying them for the privilege. I believe it doesn't cost anything to develop the application but you can't install it without becoming "official."
  • mindrobotsmindrobots Posts: 6,506
    edited 2011-06-21 13:40
    You can register as a developer and download the wonderful tools and write code for iDevices to your heart's content and run them in the SIMULATORS for free.
    If you pay them $100 to become certified, you can register iDevices and load your code on the registerd iDevices.
    When you have your pride and joy working and spotless, you can submit it to the App Store and hopefully get approved to have it available through the store to the general public. (Assuming you've followed all the rules for Apps).

    Becoming a certified HARDWARE developer is similar but the rules are stricter. (plus, I think it's another $100)

    Rick
  • smbakersmbaker Posts: 164
    edited 2011-06-21 13:49
    Guys,
    Thanks for the advice. I was considering an I-Pad for some other applications that my wife and I are interested in as the intent is to replace the old laptop I'm currently using.

    As an ipad-2 owner myself, I find that the device falls much short of a laptop in convenience and capability. I generally wouldn't consider doing any serious work on it. On the other hand, it's fun to play games, websurf from bed, type in short emails, makes an awesome music player, and sports a better interface to my Tivo than the Tivo itself has.
  • HannoHanno Posts: 1,130
    edited 2011-06-21 16:19
    I have an Acer Iconia- it's an Android tablet with a full-size USB host connector. Theoretically it should be easy to read/write data over a wired serial stream- or wireless using either wifi or bluetooth. Nice thing about Android is you can do whatever you want.
    Hanno
  • schillschill Posts: 741
    edited 2011-06-21 17:08
    Hanno wrote: »
    I have an Acer Iconia- it's an Android tablet with a full-size USB host connector. Theoretically it should be easy to read/write data over a wired serial stream- or wireless using either wifi or bluetooth. Nice thing about Android is you can do whatever you want.

    Hanno:

    How about 12Blocks for Android? Lots of drag-and-drop makes sense on the touchscreen (moreso than typing Spin code). USB or wifi connection to the Propeller should work ok. I've never checked to see if there are Android drivers for FTDI USB chips.
  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2011-06-21 17:53
    @schill: I have worked with Android programming. That would be incredibly difficult. Then again, Hanno is a lot better programmer than I am.
  • HannoHanno Posts: 1,130
    edited 2011-06-22 14:04
    schill wrote: »
    Hanno:

    How about 12Blocks for Android? Lots of drag-and-drop makes sense on the touchscreen (moreso than typing Spin code). USB or wifi connection to the Propeller should work ok. I've never checked to see if there are Android drivers for FTDI USB chips.

    That, and PropScope/ViewPort is why I bought it...
    Hanno
  • ZootZoot Posts: 2,227
    edited 2011-06-22 14:21
    Ummm ... Google already offers an ADK for Arduinos that use the FTDI USB chipset, so the basic capability is already there (i.e. you can plug an Arduino board into an Android's USB port and the ADK is ready-to-go with that connection from within an Android app). Generally the ADKs for Android are run from within the free Eclipse IDE.

    Even though I'm pretty much a Mac user, I can't stand Apple's closed, for-pay dev. environment nor the proprietary connectors for their portable devices, so I can't speak to that.

    For wheel-recreators, here is some discussion of driving FTDI USB chips, but you need to root the android platform:
    http://android.serverbox.ch/?p=285
Sign In or Register to comment.