Shop OBEX P1 Docs P2 Docs Learn Events
Making Prop2 accessible to the world — Parallax Forums

Making Prop2 accessible to the world

cgraceycgracey Posts: 14,133
edited 2013-07-29 11:31 in Propeller 2
What do you guys think we need to develop in order for Prop2 to become something that can be easily interfaced to the world these days, and by "world" I mean smartphones, tablets, web, and so on.

And I believe this would tend to be wireless in nature, as it is getting to be passe to connect cables to everything. Is Bluetooth still the short-haul protocol of choice, or is their something better?

I'm imagining two kinds of things:

1) short-haul radio/infra-red for interfacing to common hand-held devices for the purpose of data viewing and control
2) internet/LAN access for making a Prop2 system into a web-accessible device

Is this too big of a fish to fry? Are their certain finite developments that could get us into the ball park?
«13456

Comments

  • Bill HenningBill Henning Posts: 6,445
    edited 2013-04-20 09:27
    For wireless, Bluetooth and WiFi - but at as low a cost as possible. Which leads me to the wired options below, which also help with low cost wireless...

    For wired (I know, you were asking about wireless, but wires will be with us for a long time)

    1) software-only low and full speed USB (1.5Mbps & 12Mbps) in one cog, with just a few resistors and USB sockets

    This gets us access to keyboards, mice, HID devices, CHEAP wifi sticks and CHEAP bluetooth sticks at an extremely low cost due to volume Asian production.

    I think Bluetooth USB adapters are <$2 in volume - cheaper than the chips in moderate volume - and WiFi sticks can be had for <$9.

    Not to mention it totally avoids FCC issues for Parallax customers - those would be handled by the USB Bluetooth and USB WiFi adapter manufacturers.

    2) software-only 10Mbps ethernet, just add a MagJack

    This gets us onto the internet for a far lower cost than a Wiznet / Encj chip, and for most industrial and home uses 10Mbps is plenty. Just add a MagJack and have fun.

    I think if Parallax had very low cost USB and Ethernet (via just connector, no extra chips) at launch people would sit up and notice, and Parallax would likely get more design wins - after all, it would allow for very cheap USB and Ethernet.

    The downside: Parallax would have to spend resources developing soft USB and soft Ethernet ... but I think it would be a huge benefit for Parallax.
    cgracey wrote: »
    What do you guys think we need to develop in order for Prop2 to become something that can be easily interfaced to the world these days, and by "world" I mean smartphones, tablets, web, and so on.

    And I believe this would tend to be wireless in nature, as it is getting to be passe to connect cables to everything. Is Bluetooth still the short-haul protocol of choice, or is their something better?

    I'm imagining two kinds of things:

    1) short-haul radio/infra-red for interfacing to common hand-held devices for the purpose of data viewing and control
    2) internet/LAN access for making a Prop2 system into a web-accessible device

    Is this too big of a fish to fry? Are their certain finite developments that could get us into the ball park?
  • SapiehaSapieha Posts: 2,964
    edited 2013-04-20 09:27
    Hi Chip.

    3). Bluetooth
  • KyeKye Posts: 2,200
    edited 2013-04-20 09:31
    WiFi and Bluetooth

    Bluetooth will be cheaper to do with the propeller. Cheap Bluetooth support would be great. $50 dollars for wireless is too much however.
  • jazzedjazzed Posts: 11,803
    edited 2013-04-20 09:52
    Wires like handcuffs bad; freedom good.

    Parallax seriously needs WiFi in the product portfolio. WiFi is everywhere.
    If it wasn't for WiFi I'd have to rip out the walls in my house.

    Bluetooth, yes absolutely, but $50 ?
  • User NameUser Name Posts: 1,451
    edited 2013-04-20 10:52
    Bluetooth success in our home has meant spending $10 per dongle. Wish there were something fun and handy that could be done with a $1 dongle.
  • kwinnkwinn Posts: 8,697
    edited 2013-04-20 11:11
    I agree with what Bill Henning posted 100%.

    The USB provides a connection to a wide range of hardware and wireless options, and the ethernet connects us to the internet and local networks.

    Wired is also important in many areas, and will be needed for the foreseeable future.
  • John AbshierJohn Abshier Posts: 1,116
    edited 2013-04-20 11:18
    Physically, I also recommend Wi-Fi, Bluetooth, and USB. That's probably the easy part. Software may be harder. It is needed on both the Propeller end and the "other" end. "Other" end would be PC, Android, and iOS. It would be great if Simple IDE could connect to a Propeller over Wi-Fi and Bluetooth as well as USB. Since I buy in volume of 1 or 2 at a time the added cost of an FTDI chip is not a concern. I don't own any Apple products. I do have Android. I would probably use Prop development on Android only for minor fixes in the field. Main development would be on my PC. Connecting a Prop to a terminal on the Android device would be great. The next step would be other protocols between Propeller and other end. Perhaps a Web interface.

    John Abshier
  • jazzedjazzed Posts: 11,803
    edited 2013-04-20 12:11
    It would be great if Simple IDE could connect to a Propeller over Wi-Fi and Bluetooth as well as USB.

    A Bluetooth serial port can be used with SimpleIDE for communications. Programming will require connecting DTR or RTS to the reset circuit. I've done both of these successfully YMMV. WiFi access is another issue. A WiFi virtual serial port using TCP may have potential.

    If P2 can do some USB host mode (USB OTG?) we're set for doing lots of good things.

    This looks interesting at about $40 for a P2 soft-wired-ethernet 10Mbps solution.


    resource-7f3177d7-4f02-4ce2-b5ad-03b866b2ad1f.jpg.web.v1.jpg
  • KC_RobKC_Rob Posts: 465
    edited 2013-04-20 12:20
    kwinn wrote: »
    I agree with what Bill Henning posted 100%.
    I concur. He pretty much nailed it, considering what might work best for the Prop platform specifically.
  • ColeyColey Posts: 1,108
    edited 2013-04-20 12:32
    KC_Rob wrote: »
    I concur. He pretty much nailed it, considering what might work best for the Prop platform specifically.

    I agree too, with wired ports you always have the option of wireless.

    This has been a huge success and it has a plug in Bluetooth dongle. https://www.sparkfun.com/products/11343
  • rod1963rod1963 Posts: 752
    edited 2013-04-20 12:42
    Just make wireless a option. USB 2.0 is fine with me.
  • BaggersBaggers Posts: 3,019
    edited 2013-04-20 12:53
    Spot on Bill :)
  • Heater.Heater. Posts: 21,230
    edited 2013-04-20 13:17
    Just get me a serial line or other link to my ultra-cheap RaspberryPi and I'll take all the rest of my communication issues from there.

    Oh yeah, A PII dev board in a Raspi form factor that piggybacks on top and mates with the GPIO connector would be heaven. Then I have the whole PII and it's dev environment in a cigarette packet sized unit.

    As I just said to Andy Lindsay, "There are a million Raspberry Pi users out there who need a Propeller". There might be another million in a years time
  • cgraceycgracey Posts: 14,133
    edited 2013-04-20 13:40
    Here is a USB Bluetooth dongle that a lot of people seem to like and it costs only$1.80:

    http://dx.com/p/super-mini-bluetooth-2-0-adapter-dongle-vista-compatible-11866

    I wonder how hidden the driver know-how is, as Windows seems to have built-in support for these things.
  • ColeyColey Posts: 1,108
    edited 2013-04-20 14:04
    cgracey wrote: »
    Here is a USB Bluetooth dongle that a lot of people seem to like and it costs only$1.80:

    http://dx.com/p/super-mini-bluetooth-2-0-adapter-dongle-vista-compatible-11866

    I wonder how hidden the driver know-how is, as Windows seems to have built-in support for these things.

    Chip,

    That's the exact one I have (well two actually) that I use with my IOIO board and PC.
    The IOIO has a USB Host mode and with the two Bluetooth dongles creates a virtual comport from my PC or Smartphone to the IOIO board.

    I know they have used these with MBED (ARM) boards. http://mbed.org/users/peterbarrett1967/code/BlueUSB/

    and Propeller too http://scanlime.org/2010/07/propeller-bluetooth-stack-demo/
  • cgraceycgracey Posts: 14,133
    edited 2013-04-20 14:08
    Coley wrote: »
    Chip,

    That's the exact one I have (well two actually) that I use with my IOIO board and PC.
    The IOIO has a USB Host mode and with the two Bluetooth dongles creates a virtual comport from my PC or Smartphone to the IOIO board.

    I know they have used these with MBED (ARM) boards. http://mbed.org/users/peterbarrett1967/code/BlueUSB/

    a
    nd Propeller too http://scanlime.org/2010/07/propeller-bluetooth-stack-demo/

    I believe I read a review for the $1.80 dongle where someone said that it works with USB 1.1. That would be 12.5 MBPS, right? We ought to be able to do that in the Prop2. How do we find the USB-side protocol, though? Is this something that Microsoft publishes a standard for? I see your links answer that question.
  • Bill HenningBill Henning Posts: 6,445
    edited 2013-04-20 15:55
    Close...

    USB low speed = 1.5Mbps ... should be easy even as a task (for the transport layer, higher layers in LMM code)

    USB full speed = 12Mbps ... should be quite doable even on the FPGA, may be possible as a task on the real chip (for the transport layer, higher layers in LMM code)

    USB high speed = 480Mbps (Propeller 3 with SERDES?) or external PHY - too expensive for P2 production boards. MUCH better to do "free" low/full speed (jack+resistors+software).. forget about this for now

    10Mbps ethernet ... should also be "easy" in software only; tcp/ip stack could be in LMM, lots of free C stacks... (for the transport layer, higher layers in LMM code)
    cgracey wrote: »
    I believe I read a review for the $1.80 dongle where someone said that it works with USB 1.1. That would be 12.5 MBPS, right? We ought to be able to do that in the Prop2. How do we find the USB-side protocol, though? Is this something that Microsoft publishes a standard for? I see your links answer that question.
  • Cluso99Cluso99 Posts: 18,069
    edited 2013-04-20 16:42
    For wireless, Bluetooth and WiFi - but at as low a cost as possible. Which leads me to the wired options below, which also help with low cost wireless...

    For wired (I know, you were asking about wireless, but wires will be with us for a long time)

    1) software-only low and full speed USB (1.5Mbps & 12Mbps) in one cog, with just a few resistors and USB sockets

    This gets us access to keyboards, mice, HID devices, CHEAP wifi sticks and CHEAP bluetooth sticks at an extremely low cost due to volume Asian production.

    I think Bluetooth USB adapters are <$2 in volume - cheaper than the chips in moderate volume - and WiFi sticks can be had for <$9.

    Not to mention it totally avoids FCC issues for Parallax customers - those would be handled by the USB Bluetooth and USB WiFi adapter manufacturers.
    I totally agree. However, my current thoughts are that WiFi is overtaking the usefulness of Bluetooth.
    IMHO RaspberryPi should have had WiFi instead of Ethernet. Just look at the MK802 versions with WiFi.
    IIRC Texas Instruments have jsut release a cheap WiFi chip solution and some companies are currently putting them on pcb modules that will have FCC approval.
    2) software-only 10Mbps ethernet, just add a MagJack

    This gets us onto the internet for a far lower cost than a Wiznet / Encj chip, and for most industrial and home uses 10Mbps is plenty. Just add a MagJack and have fun.

    I think if Parallax had very low cost USB and Ethernet (via just connector, no extra chips) at launch people would sit up and notice, and Parallax would likely get more design wins - after all, it would allow for very cheap USB and Ethernet.

    The downside: Parallax would have to spend resources developing soft USB and soft Ethernet ... but I think it would be a huge benefit for Parallax.
    USB Full Speed should be easily achieved with the P2. IMHO this is really important for the P2 these days. I am not so sure about Ethernet.
  • Bill HenningBill Henning Posts: 6,445
    edited 2013-04-20 16:51
    Thanks

    Bluetooth is great due to how cheap it is, and how easy it is to talk to smart phones with it.

    The advantage to Ethernet is cheaply plugging in to any switch or router, at home, in the office, or in an industrial plant.

    Heck, a MagJack is about $2 in fairly low quantities

    It is easy to buy access points, routers, etc. to turn that cheap Ethernet jack wireless, and in many cases, a switch/hub/router will be nearby. Wire is a lot more reliable than Wifi, and less susceptible to interference. I have 1Gbit ethernet everywhere, sometimes going to a 100mbps/10mbps hub for slow devices - including some propeller boards.

    And by using USB to go Bluetooth and WiFi, we avoid the FCC mess (testing, certification etc) - and also avoid having to buy MAC addresses.
  • Mike GreenMike Green Posts: 23,101
    edited 2013-04-20 17:01
    Despite the barriers that Apple places in the way, I think it's important that there be some relatively easy access to iPhones and iPads. There is no support in iOS for Bluetooth SPP. It does support Bluetooth 4.0 LE (Low Energy) like TI's development kits like the CC2540, but I don't think there's an easy way to use that to transfer significant amounts of information. You can use Telnet and other Ethernet protocols for that over WiFi. Having USB Host support very cheaply and using Bluetooth and WiFi dongles sounds like a winning proposition.
  • Cluso99Cluso99 Posts: 18,069
    edited 2013-04-20 17:04
    cgracey wrote: »
    What do you guys think we need to develop in order for Prop2 to become something that can be easily interfaced to the world these days, and by "world" I mean smartphones, tablets, web, and so on.

    And I believe this would tend to be wireless in nature, as it is getting to be passe to connect cables to everything. Is Bluetooth still the short-haul protocol of choice, or is their something better?

    I'm imagining two kinds of things:

    1) short-haul radio/infra-red for interfacing to common hand-held devices for the purpose of data viewing and control
    2) internet/LAN access for making a Prop2 system into a web-accessible device

    Is this too big of a fish to fry? Are their certain finite developments that could get us into the ball park?
    IMHO WiFi is the way to go.
    In Australia we are currently rolling out NBN (National Broadband Network) which is fiber to each home and office. However, I see this as a waste because wireless is taking over. IMHO it should only be to the end of the street, and wireless from there. Companies (Intel?) are working on much faster wireless for local community comms which would serve the local street(s) perfectly.
    I no longer have a phone line as I use 3G/4G for my web access and my Xoom Tablet is the hotspot, although I can make my (or my wife's) iPhones hotspots too. While this has restrictions on upload/download limits, it is currently faster than can be achieved over our copper phone network.
    Why have I said this... Because I believe that WiFi is the solution now for the home/office. I no longer want wires. Most items are now coming with WiFi including TVs. The price of WiFi is becoming so cheap that to put it into anything is quite easy. Even cars are starting to add WiFi.

    So, a WiFi solution (module) for the P2 would be a good addition to the P2.

    What should/will the P2 have for launch...
    • PropGCC
    • PASM compiler
    • SPIN compiler?
    • USB
    • WiFi option/module
    • HDMI/VGA/Composite
    • Stereo (reasonable quality only)
    • PASM Drivers for a number of general purpose peripherals (SPI, I2C, UART(s), USB (low and full speed))
    • PASM Drivers - specific (Flash, SD/FAT, RTC (choose one), Serial)
    • A basic OS (it's available for the P1 so it should be available for the P2)
  • Cluso99Cluso99 Posts: 18,069
    edited 2013-04-20 17:12
    Those Bluetooth $1.80 dongles are the same as the $1 inc post on eBay.
    But I would expect to see WiFi FCC approved modules <$10 in the next 6 months.
  • Bill HenningBill Henning Posts: 6,445
    edited 2013-04-20 17:17
    I agree with your list - with three exceptions:

    - it needs USB Bluetooth support :)
    - adding 10Mbps Ethernet at a very low cost (ie software based, magjack only) opens many more opportunities and is cheaper than USB ethernet modules
    - HDMI support is too expensive, use an external VGA/component to HDMI converter

    I agree that technically WiFi is superior, and as Mike says, its the only game in town for iPads/iPods, but there are MANY extremely price sensitive applications where the price difference between a $1/$2 Bluetooth module and a $10/$15 WiFi module would be the difference between using a P2 - and not using it.

    Basically, in this day and age, the market is extremely price sensitive, so it is paramount to keep that in mind.
    Cluso99 wrote: »
    IMHO WiFi is the way to go.
    In Australia we are currently rolling out NBN (National Broadband Network) which is fiber to each home and office. However, I see this as a waste because wireless is taking over. IMHO it should only be to the end of the street, and wireless from there. Companies (Intel?) are working on much faster wireless for local community comms which would serve the local street(s) perfectly.
    I no longer have a phone line as I use 3G/4G for my web access and my Xoom Tablet is the hotspot, although I can make my (or my wife's) iPhones hotspots too. While this has restrictions on upload/download limits, it is currently faster than can be achieved over our copper phone network.
    Why have I said this... Because I believe that WiFi is the solution now for the home/office. I no longer want wires. Most items are now coming with WiFi including TVs. The price of WiFi is becoming so cheap that to put it into anything is quite easy. Even cars are starting to add WiFi.

    So, a WiFi solution (module) for the P2 would be a good addition to the P2.

    What should/will the P2 have for launch...
    • PropGCC
    • PASM compiler
    • SPIN compiler?
    • USB
    • WiFi option/module
    • HDMI/VGA/Composite
    • Stereo (reasonable quality only)
    • PASM Drivers for a number of general purpose peripherals (SPI, I2C, UART(s), USB (low and full speed))
    • PASM Drivers - specific (Flash, SD/FAT, RTC (choose one), Serial)
    • A basic OS (it's available for the P1 so it should be available for the P2)
  • User NameUser Name Posts: 1,451
    edited 2013-04-20 18:04
    Coley wrote: »

    This is a great blog. (Must have been too busy in 2010 and missed all this.) If I weren't already a Propeller fan, Beth's video would have sold me.
  • Bob Lawrence (VE1RLL)Bob Lawrence (VE1RLL) Posts: 1,720
    edited 2013-04-20 18:19
    Web socket support. Wireless and wired.

    http://www.websocket.org/

    [h=1]What is WebSocket?[/h]The WebSocket specification—developed as part of the HTML5 initiative—introduced the WebSocket JavaScript interface, which defines a full-duplex single socket connection over which messages can be sent between client and server. The WebSocket standard simplifies much of the complexity around bi-directional web communication and connection management.
    WebSocket represents the next evolutionary step in web communication compared to Comet and Ajax. However, each technology has its own unique capabilities. Learn how these technologies vary so you can make the right choice.

  • KC_RobKC_Rob Posts: 465
    edited 2013-04-20 19:07
    User Name wrote: »
    This is a great blog. (Must have been too busy in 2010 and missed all this.) If I weren't already a Propeller fan, Beth's video would have sold me.
    Yes, it is. Really shows the Propeller's unique strengths; the Bluetooth stuff in particular. Another post I stumbled across while looking around,.. well, that I found somewhat distracting. =D
  • User NameUser Name Posts: 1,451
    edited 2013-04-20 20:21
    Wow, um, ah, awkward. At least she used an Arduino.
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2013-04-20 23:48
    WiFi.

    As Cluso said in post 22, our government is rolling out a very expensive fibre optic network, but this is being built by older people, for older people. My kids won't use it. They go to Grandma's and ask "what is your WiFi password?" Ditto their friends. They seem to know everyone's password. Everything is portable nowadays.

    I've got a device called a PocketWifi. It looks like a small mobile phone, and converts 3G to Wifi with up to 5 users. Saves money compared with giving all the kids smartphones. So Wifi can be portable too.

    For years though we have been hearing about the "internet of things", and it hasn't happened much yet, because the interface to the internet is too expensive and uses too much power. The connection needs to be only a few dollars and this is where the Prop2 could really shine.

    Take the Prop I philosophy that most things that can be done in hardware can be emulated in software. At the end of the day, WiFi is just a radio signal. Ok, there is lots of packet encoding and decoding, but if the hardware can be simplified as much as possible, the more that can be done in software, the cheaper it will be.
  • TorTor Posts: 2,010
    edited 2013-04-21 00:55
    On the other hand, wi-fi (as in the 2.4GHz variant) was never designed with today's usage pattern in mind. There are only 11 channels (13 in Europe and 14 in Japan), and unless you stay 3 channels away there'll be interference. The biggest problem I run into with wi-fi is interference. It used to be that I could connect to a particular access point from a bench outside my regular cafeteria, very nice. Now I see 22 access points at last count (some months ago, so there are probably more now, I haven't bothered to check). The result is that unless I'm in almost touch-range of the AP I won't be able to access it.

    Even at work it's a problem. Another company in a nearby building has put up wi-fi for everything, including voice-IP, and now _we_ have to massively multiply the number of access points to overshout them so that we can (again) have coverage. And then there's those Apple boxes which add another wi-fi network just for doing backups for some iMac's owner. With 30cm to cover, but visible everywhere else. What a complete overkill, and the wrong way to do it. Radio signals are a limited resource, just look at the 802.11 channels.. there's room for only three or four interference-free channels!

    Way back we covered the whole company with only three access points. Now we need one literally in view to get a reasonably working connection. Sometimes two per corridor! It's ridiculous. My Android wi-fi scanner is a lightshow of SSIDs and signal curves. 802.11 wasn't designed for this.
    And the free wi-fi at the airport? A colleague said that it's just a scheme to let people having something to do while they wait for the airplane.. specifically, a game of trying to get through the free-wi-fi authorization. It can take a couple of hours.

    -Tor
  • Bill HenningBill Henning Posts: 6,445
    edited 2013-04-21 08:20
    Gentlemen,

    WiFi is great - I use it all the time.

    BUT

    It is MUCH cheaper to add USB sockets, and a MagJack than have WiFi on every board.

    The educational and hobbyist markets are incredibly price sensitive.

    Let's say a nice minimal P2 board will retail for $79, with a couple of USB ports.

    - A magjack would add about $8 to the retail cost, but having a "magjack ready" pcb with a footprint would add $0 to the cost.

    - On-board wifi (currently) would add about $40-$50 to the end user cost.

    - On-board Bluetooth would currently add about $40 to the end user cost (using a module), somewhat less with raw chips (but more testing, certification etc).

    Leveraging off mass market USB add-ons is a HUGE win for us, and Parallax.

    - The end user could buy a WiFi dongle for $9-$15.

    - The end user could buy a Bluetooth dongle for $2.

    I am working on some P2 products... and there is no way I'll put WiFi or Bluetooth on board, as I'd price myself out of most markets.
Sign In or Register to comment.