Making some wireless magic work

I’m working on building a terrorist threat level alert light for my apartment, so that I can make the proper decisions about what to wear, whether I should be talking to my neighbors or not, etc. The device mounts on the wall, and has a colored lamp for each threat level. Now, to make this effective, it obviously has to be able to update itself automatically. For example if there was a cataclysmic event that happened when I was in the shower, I would really want to know about it without the hassle of turning on a computer and loading the webpage. So, to accomplish this, I decided to use a pair of xBee modules, one of them to control the device, and the other to connect to a computer and broadcast updates.

So this is all and good, but I didn’t spring for the actual development kit, so I had to figure out how to use the modules on my own. The first task was to upgrade the firmware- the version that came preloaded was rather old, and didn’t support the digital i/o pins that I want to use to control the lights. Connecting the serial inputs and outputs using a MAX3232 (like the MAX232 except it runs at 3.3V) let me talk to the device, but the provided firmware upgrade software X-CTU refused to upgrade the firmware, giving the helpful error message ‘lost communication with modem Write Parameters… Failed’. A google search turned up only some German sites, but no one there had solved the problem either. Now, I had read in the manual that I had to connect DIN, DOUT, RTS and DTR to be able to update the firmware, but it wasn’t clear what direction the signals would be headed. Finally, I found someone who had upgraded firmware using their own hardware, and they were kind enough to post the schematics on their website. It turns out that both RTS and DTR are outputs from the PC, which is fine except that the MAX3232 only has two channels in each direction, so I ended up using a LM7404 hex inverter on those channels (technically, this isn’t the correct way to do serial but it works). With much anticipation, I clicked the write button, and… same error! What the heck! So I looked everything over again, but there didn’t seem to be any problems. Well, I figured I would try hooking up the status LED (pin 13 on the xBee module). Then, it works! I don’t really know why this is the case; I thought maybe my voltage regulator was weak or something, but it was rock solid. Anyway, the LED makes it work so it gets to stay. I’ll post some better pictures and a schematic once I get two of them talking to each other.

This entry was posted in Journal, tech. Bookmark the permalink.

6 Responses to Making some wireless magic work

  1. dad says:

    when are you going to market these things Bush only has two more years?

  2. mahto says:

    dang, you are right. Well… perhaps they could be placed for sale on eBay? I can’t make them for very cheap though.

  3. Becky says:

    Hey mista – Here I had thought you had dissapeared off the face of the earth, but you have the audacity to be alive and well and working on some sort of gizmo that you’re going to sell to every hillbilly in the country for millions!

    holla!

  4. C-mroll says:

    [Canibus]
    Yo, sometimes the road to the truth is, so elusive it’s confusin
    And reality becomes illusion
    If I showed the masses where we was at or where we was goin
    I’d shatter the social balance of the world as we know it
    I’m talkin bout the grand deception, of 1947
    When our souls were sold to the heavens
    for technologically advanced weapons
    Crystal enhanced, brain implants, and mind control methods
    MJ-12 is not majestic
    And the focal point of our problems on this planet are not domestic
    You can accept it or be stupid and be a skeptic
    and fail to recognize the secret society’s deathwish
    Ninety-seven percent of our Presidents were Masons
    Responsible for launderin trillions of dollars from the nation
    for the construction of underground military installations
    Abductions and cattle mutilations
    Experiments on human patients
    can take place in several subterranean bases
    A hundred and fifty stories below a basement
    With knowledge of genetic information, you need to fear science not Satan
    Cause through the manipulation of certain biological agents
    they create strange creations
    Top secret special operations
    Low frequency sounds and lasers, people like Carl Sagan
    that didn’t believe in the Drake equation
    were tryin to keep Western civilization on the need-to-know basis
    Well you need to know that this is a game
    and we’re bein betrayed and played in the worst way

    Peace out! – C-mroll

  5. icis says:

    Thanks for the xbee upgrade help. I was stuck on the same problem and your solution worked like a charm.

  6. mahto says:

    You’re welcome! :-)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>