Shop OBEX P1 Docs P2 Docs Learn Events
Article: Parallax Propeller on DEF CON 20 Badge Start Here! - Page 3 — Parallax Forums

Article: Parallax Propeller on DEF CON 20 Badge Start Here!

13

Comments

  • Sub5pac3Sub5pac3 Posts: 5
    edited 2012-07-31 02:15
    jazzed wrote: »
    Please set Loader Delay to 1 in SimpleIDE Properties (wrench button) -> General Tab.

    Plug in to the USB port - after a moment you should see the LED blink. Press the "port refresh" button to the right of the drop-down box. You should see a /dev/cu entry if the driver is working.

    In SimpleIDE v0-8-1, the terminal has a baud rate drop-down box (v0-8-0 does not). Set it to 57600 for the badge.

    BST is another Mac program you can try if you don't have any luck with SimpleIDE.

    This did not work for me. I tried two different human badges. I'm running Lion on a late 2011 mbp (usb 2) with the newest simple IDE as of this writing. I ran through the entire list of boards -- which one should we select anyway?
  • jazzedjazzed Posts: 11,803
    edited 2012-07-31 06:57
    Sub5pac3 wrote: »
    This did not work for me. I tried two different human badges. I'm running Lion on a late 2011 mbp (usb 2) with the newest simple IDE as of this writing. I ran through the entire list of boards -- which one should we select anyway?

    If you get a serial port in the port list, click the little monitor button on the far right of the tool bar and it will show the serial terminal. Set the serial terminal baud-rate to 57600. Board types are only used with C/C++ programs - use HUB board type.

    The SimpleIDE user guide is here.
  • TheDoubleDTheDoubleD Posts: 2
    edited 2012-07-31 08:10
    Once I installed the drivers for the serial interface on Mac OS X; Simple IDE is able to see the badge. Thanks!

    http://www.ftdichip.com/Drivers/VCP.htm

  • Don MDon M Posts: 1,652
    edited 2012-07-31 15:01
    David Betz wrote: »
    Now that the conference is over will these badges be available for sale? I'm wondering how we can support badge owners who want to use Propeller GCC if we are unable to get badges for testing. I guess Steve probably has one but are more available?

    This question seems to get ignored. I am wondering myself if they are available....
  • fisherfisher Posts: 1
    edited 2012-07-31 18:30
    wrote:
    Whopis, where can I get your tool to dump the eeprom? I have "bricked" one of my badges by accidentally hitting F11 instead of F10 in the Propeller Tool while writing my first program. I still have a virgin badge and want to dump the eeprom myself and play with it. I tried some other tools but they don't seem to work quite right.
  • mstcmstc Posts: 4
    edited 2012-07-31 18:53
    Does anyone know why some human badges have an extra chip. Unfortunately I don't have a picture, but I can confirm that some of the human badges had an extra chip in the upper left corner. Any clue as to why that was??
  • mstcmstc Posts: 4
    edited 2012-07-31 18:58
    fisher wrote: »
    Whopis, where can I get your tool to dump the eeprom? I have "bricked" one of my badges by accidentally hitting F11 instead of F10 in the Propeller Tool while writing my first program. I still have a virgin badge and want to dump the eeprom myself and play with it. I tried some other tools but they don't seem to work quite right.

    start here: https://gist.github.com/3191267 download the badge utils and follow the instructions. use the virgin.eeprom.

    PS. A little feedback, you might want to make the ROM and EPROM flashing buttons farther away from each other. Most of the people who came in with bricked badges made the same mistake!
  • jazzedjazzed Posts: 11,803
    edited 2012-08-01 10:51
    mstc wrote: »
    start here: https://gist.github.com/3191267 download the badge utils and follow the instructions. use the virgin.eeprom.

    PS. A little feedback, you might want to make the ROM and EPROM flashing buttons farther away from each other. Most of the people who came in with bricked badges made the same mistake!

    You mean F10 & F11. Of course!

    Yes, this got me several times over the years. Maybe the eeprom burn should be F12.
    Having toolbar buttons really helps this kind of thing for programming in the dark.
  • Sub5pac3Sub5pac3 Posts: 5
    edited 2012-08-01 14:38
    jazzed wrote: »
    If you get a serial port in the port list, click the little monitor button on the far right of the tool bar and it will show the serial terminal. Set the serial terminal baud-rate to 57600. Board types are only used with C/C++ programs - use HUB board type.

    The SimpleIDE user guide is here.

    I get no serial port in the port list. I didn't yet try the 3rd party driver suggested (http://www.ftdichip.com/Drivers/VCP.htm), but if something like this is required it would be nice to have that in the install procedure. Are there other consequences to installing this generic serial com port driver that I should be at all worried about? Seems like it might be helpful here, but why was this functionality not part of the OS in the first place? Thanks!
  • jazzedjazzed Posts: 11,803
    edited 2012-08-01 17:51
    Sub5pac3 wrote: »
    I get no serial port in the port list. I didn't yet try the 3rd party driver suggested (http://www.ftdichip.com/Drivers/VCP.htm), but if something like this is required it would be nice to have that in the install procedure. Are there other consequences to installing this generic serial com port driver that I should be at all worried about? Seems like it might be helpful here, but why was this functionality not part of the OS in the first place? Thanks!

    The user guide describes driver installation on page 14 - looks like a little re-org is in order. Sorry about that. Someone suggested doing the controls over-view first; that pushed getting started out a little .... There is a general download/install page here, but it doesn't mention the driver - we need to fix that.

    As far as consequences, I've never heard of any. Just remember to set the delay mentioned elsewhere.

    It seems my Mac Mini came with the FTDI driver pre-installed on OSX Lion - I could be wrong. Linux Debian, Fedora, Mint, Ubuntu all had the driver pre-installed. Even Windows XP SP2 on my VM "just worked" ... not sure about Windows 7.
  • INT20hINT20h Posts: 1
    edited 2012-08-01 20:52
    JeffAvery wrote: »
    If you go to the first link about the badge (below) there are links to the Parallax IDE, a simple, open source IDE and some source files for it. Happy Hacking!
    http://forums.parallax.com/showthread.php?141494-Article-Parallax-Propeller-on-DEF-CON-20-Badge-Start-Here!&

    Getting Started with the DEF CON 20 Badge
    (Specific links to resources to follow today and tomorrow)

    So you’ve picked up a DEF CON 20 Badge and you’d like to start programming it for another purpose. These forums are among the most valuable of all of our resources. Take a look and download some of these before you get started.
    • Propeller Tool (Windows) – includes many example codes
    • Learn.parallax.com and the Propeller BOE – two useful tools to get you started
    • Simple IDE - Open-source Alternative Propeller Tool (Windows, Linux, Mac) - our future programming interface for Propellers
    • Badge Schematic (to follow after contest is finished)
    • DEF CON 20 Badge Code Objects (download below)
    • Top Propeller Spin File (to be posted at end of DEF CON 20)
    • DEF CON 20 Badge LED Example (download below)
    • DEF CON 20 Badge VGA and PS2 Example (download below)
    paperclip.png Attached Files

    Perhaps I missed it, but did the top propeller spin file ever get posted? I'm pretty sure I didn't see it after I read all the way through to the end of the thread (70 comments at the time).
  • CwazyWabbitCwazyWabbit Posts: 1
    edited 2012-08-02 18:39
    mstc wrote: »
    Does anyone know why some human badges have an extra chip. Unfortunately I don't have a picture, but I can confirm that some of the human badges had an extra chip in the upper left corner. Any clue as to why that was??

    Looks to be Y114BB1 written on the chip, there are also a few other extra components in that area of the board. I have also seen a human badge that had extra components in that area but no chip, so that's at least 3 different layouts.

    chip.jpg


    EDIT: Apologies for the poor quality of the attached picture.

    EDIT2: It's a dc-dc converter chip that I assume was to cope with the battery voltage dropping as the batteries went flat. Guess they decided it wasn't really needed.
    578 x 628 - 84K
  • dleachdleach Posts: 1
    edited 2012-08-02 21:52
    Hi Chudel,

    Welcome to the forums, and the Propeller :). I may be a little biased, but IMHO, the Propeller is a darn cool chip.

    I looked at the original Def Con source code - there is no code in there to drive the VGA port so it will be blank until you load in the example software, or something derived from it.

    So can you point us to some code/examples on how to drive the VGA on these boards?
  • Sub5pac3Sub5pac3 Posts: 5
    edited 2012-08-02 23:21
    jazzed wrote: »
    The user guide describes driver installation on page 14 - looks like a little re-org is in order. Sorry about that. Someone suggested doing the controls over-view first; that pushed getting started out a little .... There is a general download/install page here, but it doesn't mention the driver - we need to fix that.

    As far as consequences, I've never heard of any. Just remember to set the delay mentioned elsewhere.

    It seems my Mac Mini came with the FTDI driver pre-installed on OSX Lion - I could be wrong. Linux Debian, Fedora, Mint, Ubuntu all had the driver pre-installed. Even Windows XP SP2 on my VM "just worked" ... not sure about Windows 7.

    Thanks! I installed the driver and now I see a port there, but when I go to the terminal and hit the reset button on the badge I just get `fxf~`fffx~fffff`f seemingly independent of the board type I select. Is this to be expected or is it supposed to look like the one on a Windows PC as pictured on this site? Also, I didn't yet read through the whole manual carefully yet, but before I get started messing with things I would like to make a backup of the existing badge if possible -- can this be done? Thanks again for the help getting started. I'm really looking forward to learning this and we may have many applications in our physics lab for these kinds of boards that have faster/easier code.

    Edit: For those DEFCON badge people (like me) who are here because they are new to the Propeller and would like a good intro to the subject, I found this book "Programming and Customizing the Multicore Propeller Microcontroller : The Official Guide" that looks like it will be a great reference. Thumbing through it and just starting to read it, I can say that it seems well worth it. I got the Kindle version here: http://www.amazon.com/gp/product/B003BZVIZC I have no affiliation with the authors or with Parallax, this is just my recommendation based on personal experience.
  • JlRdJlRd Posts: 1
    edited 2012-08-03 01:12
    Is anyone aware of the pin outs at the top of the badges? I have the "cryptic" schematic that was included with the initial Defcon CD and data on the badges. Consequently I can see what the pins do but I can not map them to the physical solder pad pin outs on the badge itself.

    DC20_Human_PinOut.png


    There are 14 holes on the left (looking at the chip side of the badge) and 14 holes on the right with the lanyard hole (ground) in the middle. Are P1 - P7 are the top row on the left, and P8 - P14 second row on the left? What about the right? Any ideas?

    DC20_top_pinouts.jpg
    758 x 665 - 332K
    713 x 480 - 114K
  • Martin HodgeMartin Hodge Posts: 1,246
    edited 2012-08-03 07:57
    Time to get out your multimeter and start checking continuity. The Propeller pinouts are in it's datasheet. ("QFP-44 package")
  • yakpimpyakpimp Posts: 6
    edited 2012-08-03 12:09
    Sub5pac3 wrote: »
    Thanks! I installed the driver and now I see a port there, but when I go to the terminal and hit the reset button on the badge I just get `fxf~`fffx~fffff`f seemingly independent of the board type I select. Is this to be expected or is it supposed to look like the one on a Windows PC as pictured on this site? Also, I didn't yet read through the whole manual carefully yet, but before I get started messing with things I would like to make a backup of the existing badge if possible -- can this be done? Thanks again for the help getting started. I'm really looking forward to learning this and we may have many applications in our physics lab for these kinds of boards that have faster/easier code.

    Edit: For those DEFCON badge people (like me) who are here because they are new to the Propeller and would like a good intro to the subject, I found this book "Programming and Customizing the Multicore Propeller Microcontroller : The Official Guide" that looks like it will be a great reference. Thumbing through it and just starting to read it, I can say that it seems well worth it. I got the Kindle version here: http://www.amazon.com/gp/product/B003BZVIZC I have no affiliation with the authors or with Parallax, this is just my recommendation based on personal experience.

    Did you try setting the speed to 57600? I saw similar output when my speed was incorrect.
    JlRd wrote: »
    Is anyone aware of the pin outs at the top of the badges? I have the "cryptic" schematic that was included with the initial Defcon CD and data on the badges. Consequently I can see what the pins do but I can not map them to the physical solder pad pin outs on the badge itself.

    DC20_Human_PinOut.png


    There are 14 holes on the left (looking at the chip side of the badge) and 14 holes on the right with the lanyard hole (ground) in the middle. Are P1 - P7 are the top row on the left, and P8 - P14 second row on the left? What about the right? Any ideas?

    DC20_top_pinouts.jpg

    I got most of the ones on the top left mapped to GPIO pins. http://yakhack.wordpress.com/2012/08/01/adding-an-accelerometer/

    bagepins.png


    I wasn't able to get the analog accelerometer to work, but I have never worked with one before and really have no idea what I'm doing :) I'll wait for my second one to arrive.
    316 x 173 - 2K
  • Sub5pac3Sub5pac3 Posts: 5
    edited 2012-08-03 12:41
    yakpimp wrote: »
    Did you try setting the speed to 57600? I saw similar output when my speed was incorrect.

    I didn't see any speed setting in Simple IDE -- where can I find that?
  • yakpimpyakpimp Posts: 6
    edited 2012-08-03 12:56
    Sub5pac3 wrote: »
    I didn't see any speed setting in Simple IDE -- where can I find that?

    oh, i'm not sure. I thought you were using the parallax serial terminal that comes with the propeller tool. I'm not sure how to change that in the Simple IDE. You might have to go into your system settings for that com port and set it there. I'm guessing though.
  • jazzedjazzed Posts: 11,803
    edited 2012-08-03 13:21
    Sub5pac3 wrote: »
    I didn't see any speed setting in Simple IDE -- where can I find that?

    It is on the terminal with version 0-8-1 + which was linked on the top post when this first started ....

    We're up to version 0-8-3 for Chinese, Finnish, German, and Portuguese users, but a package is pending more enhancements.
  • Ken GraceyKen Gracey Posts: 7,395
    edited 2012-08-03 14:07
    dleach wrote: »
    So can you point us to some code/examples on how to drive the VGA on these boards?

    dleach - the very first post includes some sample VGA code for use with the badge. - Ken
  • Ken GraceyKen Gracey Posts: 7,395
    edited 2012-08-03 14:10
    JlRd wrote: »
    There are 14 holes on the left (looking at the chip side of the badge) and 14 holes on the right with the lanyard hole (ground) in the middle. Are P1 - P7 are the top row on the left, and P8 - P14 second row on the left? What about the right? Any ideas?

    Yes, I've attached a diagram that shows the pinout on the badge.

    I've also uploaded a schematic of the badge on the very first post.

    - Ken
  • Sub5pac3Sub5pac3 Posts: 5
    edited 2012-08-03 14:26
    jazzed wrote: »
    It is on the terminal with version 0-8-1 + which was linked on the top post when this first started ....

    We're up to version 0-8-3 for Chinese, Finnish, German, and Portuguese users, but a package is pending more enhancements.

    I only get a windows executable out of that zip -- is there one for Mac or Linux yet? Thanks.
  • Ken GraceyKen Gracey Posts: 7,395
    edited 2012-08-03 15:02
    INT20h wrote: »
    Perhaps I missed it, but did the top propeller spin file ever get posted? I'm pretty sure I didn't see it after I read all the way through to the end of the thread (70 comments at the time).

    No TOP file yet, but I'm in communication with the DEF CON organizers to post it. Should be any minute now - sorry it's taking so long but it's outta my control since they're our customer. - Ken
  • jazzedjazzed Posts: 11,803
    edited 2012-08-03 15:12
    Sub5pac3 wrote: »
    I only get a windows executable out of that zip -- is there one for Mac or Linux yet? Thanks.

    Oops. Sorry. Here's the Mac OSX 64 Version and here's a Debian/Mint/Ubuntu Linux Version.
    Please follow the install instrucitons here: https://sites.google.com/site/propellergcc/downloads
  • cavehamstercavehamster Posts: 5
    edited 2012-08-06 14:19
    Ken Gracey wrote: »
    No TOP file yet, but I'm in communication with the DEF CON organizers to post it. Should be any minute now - sorry it's taking so long but it's outta my control since they're our customer. - Ken

    How's that coming along? :)
  • Ken GraceyKen Gracey Posts: 7,395
    edited 2012-08-07 21:42
    How's that coming along? :)

    As soon as they give us permission. I spoke to a DEF CON organizer yesterday and he said "as soon as possible". If we have to wait much longer I'll just post it.
  • wishbonewishbone Posts: 2
    edited 2012-08-08 21:03
    This was without a doubt my favorite defcon badge yet. The social aspect combined with the easiest development environment yet made it very compelling to mess with. Here's what a couple buddies and I did at the con:

    I programmed three modes into it:

    Send mode:
    We figured out early on what the IR was sending to represent each badge (used the badges to figure this out by capturing info and displaying it on the serial). This mode will let me send any badge type (including uber and 1057) or a random badge. There is different led animations for each mode so I can easily determine which mode I was in. Early in the convention we setup a table and had some fun locking up some badges (uber/1057) and helping others get things they were missing. Each badge was easily selectable, more on how later.

    Receive mode:
    This mode would display what badge it was receiving so we could tell what others were sending. It was based on the known badge types but would display something different if we picked up something we hadn't seen before.

    Brightness mode:
    Man those blue LEDs can be BRIGHT. So I put in a brightness mode that is represented by the leds (like a meter) to set the brightness.

    The modes were selected by watching for a certain free pin go hi. The boards were sensitive enough and there was 3.3v near to an open pen that you could just tap it with you figure and change modes. I tried to solder a couple of switches on but they weren't very reliable. In fact the badge would switch modes on it's own just with wires soldered in. My solder work was fine so nothing was crossed and after I snipped the wires it was fine. I'm not sure what the issue was there, but simply touching the board seemed ot be more reliable anyway. Probably needed some bounce and timed press or something. Didn't mess with it much.

    Since then I wrote an extremely simple python script to watch CPU utilization and display that on the LEDs through the serial to sit at my desk at work. I hope to mess with the VGA and keyboard stuff soon, just haven't taken the time to do much with it.

    I'd LOVE to hear what others have done with their badge. We saw some people win the crypto challenge part but I didn't really hear anything about what others had done to their badges. Thanks again for an incredible addition to defcon this year, we appreciate your support! I loved it so much I bought a second at the con. I collect the con badges and would love any badges people don't want that are something other than human.
  • jazzedjazzed Posts: 11,803
    edited 2012-08-10 14:46
    wishbone wrote: »
    This was without a doubt my favorite defcon badge yet. The social aspect combined with the easiest development environment yet made it very compelling to mess with. Here's what a couple buddies and I did at the con: ....

    I've noticed this post for the last couple of days. It seems like you have totally grasped many concepts in a short time. Congrats for that! Glad you enjoyed it so much. Looking forward to your VGA efforts.
  • Ken GraceyKen Gracey Posts: 7,395
    edited 2012-08-10 19:44
    Hey all,

    Just spoke to Jeff Moss (Dark Tangent) and he tells me they have over a thousand badges left over which will be for sale at $40 each in the next couple of days. I'll post the link here so our customers can also buy them.

    And I'm really close to posting the source code. Sorry this took so long - this code was developed by JonnyMac and under the control of Lost boY so I have to respect the wishes of these two friends and customers of ours. It's just a matter of making contact with Lost at this stage.

    - Ken
Sign In or Register to comment.