Results 1 to 8 of 8

Thread: Debugging phoenix code

  1. Debugging phoenix code

    Is it possible to use serial debugging while controlling a robot with the arbotix controller (or any other method of controlling it) running a version of the phoenix code?

    If yes, how do I get this to work?

  2. #2

    Re: Debugging phoenix code

    Yes, Arbotix has two UARTs, one of which goes to the Dynamixel bus, and one of which goes to the Xbee socket.

    You can hook up only the "Rx" part of a USB serial adapter to the "Tx" pin that goes to the Xbee socket on the Arbotix. Then run a terminal emulator, and look at what you're printing out.

    Warning, though: The Xbees are really slow about sending data both ways. As long as you only send data one way, they are nice and fast, but bidirectional ends up creating really long command latency.
    You may want to cut off the "Tx" pin going to the Xbee, so that the Xbee doesn't get the data that you serial print, and only tap that out to a serial adapter, to work around this problem.

  3. #3

    Re: Debugging phoenix code

    There are a couple ways I have done it in the past:

    a) Use a different board. That is why earlier I made a version of the bioloid library that could take use different serial ports and ran the code on an Arduino Mega such that I had more Serial ports available. Also used with Teensy...

    b) As @jwatte mentioned, the robot commander code is only one way communications, so it does not do anything with stuff sent back to it if the code does Serial.print... So I created a quick and dirty VB app, that allows me to configure two Comm ports. One that logically connects to the commander and the other logically to the Arbotix board. All inputs from the commander are routed to go to the Arbotix board, and all inputs from the Arbotix board are displayed in a listbox as part of the program. I was going to add additional capabilities to send debug messages back, but never bothered.

    I then connected it up a couple of different ways. Example I used USB XBee adapter and took XBee out of Commander for it, and then plugged the commander in to USB cable... That way no cables to Robot. But could also bypass xbees and use FTDI cable to arbotix board as well.

    I believe I posted this VB app up here in some other threads, but...

  4. Re: Debugging phoenix code

    Thanks! Works fine. Why didn't I think of it myself....

    Very useful this!

  5. Re: Debugging phoenix code

    Can't find the app either unfortunately, sounds very practical.

  6. #6

    Re: Debugging phoenix code

    I have the VB code up as part of my Phantom_Arm code base...

    Warning it has been awhile since I tried it out, but it worked the last time I tried it.

  7. Re: Debugging phoenix code

    Nice! Thanks! I'll try and keep my finger on the powerbutton.

  8. Re: Debugging phoenix code

    @KurtEck, works flawless. Very, very pratical.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Phoenix Code not working
    By minimalfra in forum Humanoids, Walkers & Crawlers
    Replies: 2
    Last Post: 06-23-2017, 07:15 PM
  2. Mark II running Phoenix code, first go
    By KingPin in forum Humanoids, Walkers & Crawlers
    Replies: 53
    Last Post: 07-04-2013, 09:14 AM
  3. Stock vs. Phoenix code?
    By TXBDan in forum Humanoids, Walkers & Crawlers
    Replies: 7
    Last Post: 05-15-2013, 09:43 PM
  4. Phoenix code...strange effect...
    By KingPin in forum Humanoids, Walkers & Crawlers
    Replies: 13
    Last Post: 03-04-2013, 04:30 PM
  5. Question(s) Xan's Phoenix Code Clarification
    By parallax in forum Software and Programming
    Replies: 5
    Last Post: 08-15-2010, 10:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts