Use Xbee in place of USB for programming

Discussion in 'Radian' started by zaxis, Sep 22, 2012.

  1. zaxis

    zaxis New Member

    Joined:
    Sep 13, 2012
    Messages:
    11
    Likes Received:
    1
    Has anyone tried to use an Xbee setup to communicate with a Radian rather than USB as you can with an MK FC, etc? Adjustments can then be made in flight, could be useful.

    andy
     
  2. Josh Lambeth

    Josh Lambeth Well-Known Member

    Joined:
    Jun 29, 2012
    Messages:
    1,313
    Likes Received:
    214
    You would need a seperate Xbee device for each radian though. You have to program each one individually.

    Josh
     
  3. zaxis

    zaxis New Member

    Joined:
    Sep 13, 2012
    Messages:
    11
    Likes Received:
    1
    Agreed but one at a time would be OK for occasional use.
     
  4. John Fox

    John Fox Member

    Joined:
    Nov 10, 2012
    Messages:
    30
    Likes Received:
    0
    It would still beat the snot out of having to land connect the laptop, take off, test, land, connect..........

    John C., What would it take to use an Xbee radio to one module at a time?

    Thanks John F
     
  5. Josh Lambeth

    Josh Lambeth Well-Known Member

    Joined:
    Jun 29, 2012
    Messages:
    1,313
    Likes Received:
    214
    I have an idea for this... Ill test it tonight maybe if I ever get my props all balanced...

    Josh
     
  6. John Cunningham

    Joined:
    Jul 5, 2012
    Messages:
    183
    Likes Received:
    13
    I haven't used an Xbee - but if you can make it act like a serial link which is transparent to the software (ie appears as a COM link on the PC side) then it might work.

    If the PC side puts out TTL level UART logic then it might plug straight into the programming adapter instead of the usual cable.

    It would need to run at the right baud rate (38.4K,1 stop bit, no parity) at the Radian end of course.
     
  7. Josh Lambeth

    Josh Lambeth Well-Known Member

    Joined:
    Jun 29, 2012
    Messages:
    1,313
    Likes Received:
    214
    What is the baud rate that the MKUSB runs on?
     
  8. Andy Johnson-Laird

    Andy Johnson-Laird Administrator
    Staff Member

    Joined:
    Jul 31, 2012
    Messages:
    10,372
    Likes Received:
    1,162
    57600.

    Watch out with using Xbee for firmware updates though -- those seem to require reliable transmission of long data blocks -- and if anything goes wrong you're likely to brick something!

    JohnC can probably comment further on the presumption of a reliable data link for firmware upgrades.

    That said, I don't know how many bytes of data a written to the Radian when you do the Write command -- it may be such a short burst that my worrying is irrelevant.

    Andy.
     
  9. John Cunningham

    Joined:
    Jul 5, 2012
    Messages:
    183
    Likes Received:
    13
    No chance of bricking a radian while programming : the bootloader code is well protected ;)

    Also the normal programming is protected by checksums so you will know if it fails ...
     
  10. SteveWilson

    SteveWilson Member

    Joined:
    Sep 29, 2012
    Messages:
    63
    Likes Received:
    4
    I agree - boy it would be nice to play with the gains in the air.

    The baud rate is set to 57600 for MK purposes, but an Xbee can be set to serial interface at 38.4K,1 stop bit, no parity no problem.
     
  11. John Fox

    John Fox Member

    Joined:
    Nov 10, 2012
    Messages:
    30
    Likes Received:
    0
    Thanks, John

    The xbees are pretty flexible. On the MK I use a usb shield that plugs right in to the computer and becomes a com port. On the flight control side I use a breakout board hardwired to the boards. It is 4 wires: power, ground, DOUT and DIN.

    John could you tell me the pinout on the 5 and 6 top pins please?
     
  12. John Cunningham

    Joined:
    Jul 5, 2012
    Messages:
    183
    Likes Received:
    13
    John,

    Pin 5 is data out from the Radian and Pin 6 is data in.

    If you guys think this is a worthwhile feature, I will look into the possibility of using a channel on the camera operators radio to control the gain. Much easier than rigging up an XBee ....
     
    Nisouck likes this.
  13. John Fox

    John Fox Member

    Joined:
    Nov 10, 2012
    Messages:
    30
    Likes Received:
    0
    I totally agree! That would be the way to go. If each radian had a gain you could (at least on the better radios) assign a channel for each and never even need the laptop at the field. Even if we could assign one gain at a time until you find the sweet spot would be wonderful.

    Can you have that upgrade ready by Saturday, please?!:)


    john
     
  14. John Cunningham

    Joined:
    Jul 5, 2012
    Messages:
    183
    Likes Received:
    13
    John,

    Of course I can. Now lets negotiate which Saturday :)
     
  15. SteveWilson

    SteveWilson Member

    Joined:
    Sep 29, 2012
    Messages:
    63
    Likes Received:
    4
    Great idea John. I think it would be a very helpful feature.
     
  16. Andy Johnson-Laird

    Andy Johnson-Laird Administrator
    Staff Member

    Joined:
    Jul 31, 2012
    Messages:
    10,372
    Likes Received:
    1,162
    I third or fourth the idea, JohnC. That would really, really make life easier for those of us who fly with different cameras on the same shoot. Take off, Position Hold, Altitude Hold, adjust pan gain to taste (that being the one that gives me the most problem)......Brilliant.

    Andy.
     
  17. John Cunningham

    Joined:
    Jul 5, 2012
    Messages:
    183
    Likes Received:
    13
    OK guys, I'm on it.
     
  18. Josh Lambeth

    Josh Lambeth Well-Known Member

    Joined:
    Jun 29, 2012
    Messages:
    1,313
    Likes Received:
    214
    I can say this for everyone...

    We love you! :)

    Josh
     
  19. André Cousin

    André Cousin New Member

    Joined:
    Oct 19, 2012
    Messages:
    20
    Likes Received:
    0
    I just hope you are not joking. That will be too great a such feature. :)
     
  20. zaxis

    zaxis New Member

    Joined:
    Sep 13, 2012
    Messages:
    11
    Likes Received:
    1
    John ...
    as originator of this thread I'll vote for having gains on a Tx channel rather than Xbee.
    Thanks
    andy

    PS can we also have proprtional as an alternative to slew control on tilt ... so much easier for one man operation.
     

Share This Page