Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Help needed - Bioloid and Bluesmirf send weird characters.

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
4 postsPage 1 of 1
4 postsPage 1 of 1

Help needed - Bioloid and Bluesmirf send weird characters.

Post by BillB » Wed Jun 13, 2007 11:07 pm

Post by BillB
Wed Jun 13, 2007 11:07 pm

Hi,

I have recently bought 2 bluesmirf modules and installed one on a Robonova and another on a Bioloid. In both cases I followed PEV's excellent hack instructions. The Robonova install went great and works wonderfully well.

However the Bioloid install is another story. I can connect to the Bluesmirf using the Hyperterminal and send AT commands to the Bluesmif to configure the Baudrate, and that means that I can connect to the Buesmirf at least. However strange things happen when I try to send data to the CM5 or recive data.

When I send any data from the CM5 to via the Bluesmirf (by putting the CM5 in manage/play mode). I receive absolute garbage. See screenshot below:

Image

I was expecting something along the lines of:
[CM-5 Version 1.14]
<->PC:57142 BPS, <->Dynamixel:1000000 BPS
ID:001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017
018 100
019(0X13) Dynamixels Found.

I have tried PEV's BioBlue software but it does not seem to work properly. It connects and initialises the link OK but nothing else works - the RX LED flickers so I assume that he signal has been successfully routed through the Bluesmirf to the CM5.

So then I did a little debugging and it turns out that although the RX LED flickers the Remocon BCP command simply does not detect that a message/command has arrived - perhaps because it too has arrived as obscure ANSI characters and any checksum invalidates the incomming message.

I have concluded that the somewhere along the line CM5 message has been scrambled/corrupted - I am fast running out of ideas on how to sove this problem.

Has anyone else had this problem? I have fiddled with all the options (changing character sets, baud rates etc.) but with no luck.

Help!

BillB
Hi,

I have recently bought 2 bluesmirf modules and installed one on a Robonova and another on a Bioloid. In both cases I followed PEV's excellent hack instructions. The Robonova install went great and works wonderfully well.

However the Bioloid install is another story. I can connect to the Bluesmirf using the Hyperterminal and send AT commands to the Bluesmif to configure the Baudrate, and that means that I can connect to the Buesmirf at least. However strange things happen when I try to send data to the CM5 or recive data.

When I send any data from the CM5 to via the Bluesmirf (by putting the CM5 in manage/play mode). I receive absolute garbage. See screenshot below:

Image

I was expecting something along the lines of:
[CM-5 Version 1.14]
<->PC:57142 BPS, <->Dynamixel:1000000 BPS
ID:001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017
018 100
019(0X13) Dynamixels Found.

I have tried PEV's BioBlue software but it does not seem to work properly. It connects and initialises the link OK but nothing else works - the RX LED flickers so I assume that he signal has been successfully routed through the Bluesmirf to the CM5.

So then I did a little debugging and it turns out that although the RX LED flickers the Remocon BCP command simply does not detect that a message/command has arrived - perhaps because it too has arrived as obscure ANSI characters and any checksum invalidates the incomming message.

I have concluded that the somewhere along the line CM5 message has been scrambled/corrupted - I am fast running out of ideas on how to sove this problem.

Has anyone else had this problem? I have fiddled with all the options (changing character sets, baud rates etc.) but with no luck.

Help!

BillB
BillB
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 232
Joined: Sun Aug 06, 2006 1:00 am
Location: Hampshire, UK

Post by Pev » Thu Jun 14, 2007 8:15 am

Post by Pev
Thu Jun 14, 2007 8:15 am

Hi Bill,

That certainly is a weird set of characters you get. I am going to ask the obvious things that I am sure you have already done but just incase:

1. The com port on your host PC is set to 57600, 8, 1, none?

2. You have set the bluesmirf to 57600 baud?
the Bluesmirf process for this is: connect to the bluesmirf : send +++ get ok back then the command is ATSW20,236,0,0,1

3. Have you checked the rx and tx lines are the correct way round on the bluesmirf?

Let me know how you get on with the above and I'll keep thinking

Pev
Hi Bill,

That certainly is a weird set of characters you get. I am going to ask the obvious things that I am sure you have already done but just incase:

1. The com port on your host PC is set to 57600, 8, 1, none?

2. You have set the bluesmirf to 57600 baud?
the Bluesmirf process for this is: connect to the bluesmirf : send +++ get ok back then the command is ATSW20,236,0,0,1

3. Have you checked the rx and tx lines are the correct way round on the bluesmirf?

Let me know how you get on with the above and I'll keep thinking

Pev
Carl
-------------------------
www.alt-view.co.uk
Pev
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 547
Joined: Sun Feb 26, 2006 1:00 am
Location: UK

Post by Orac » Thu Jun 14, 2007 10:58 am

Post by Orac
Thu Jun 14, 2007 10:58 am

Looks like you may have made first contact with Aliens.

Tell them to stay clear as we have a robotic army standing by :)
Looks like you may have made first contact with Aliens.

Tell them to stay clear as we have a robotic army standing by :)
Orac
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 299
Joined: Wed Feb 21, 2007 12:46 am
Location: UK, Near Aylesbury

Post by BillB » Thu Jun 14, 2007 9:47 pm

Post by BillB
Thu Jun 14, 2007 9:47 pm

Problem Solved! - the Aliens have gone :lol:

The problem appears to have been that the when I tried to set the Bluesmirf baud rate using the "+++" mode - the changes were not being saved to the BlueSmirf module. I solved the problem by twisting the RX and TX wires togther when I set the baud. And that did the trick!

According to the sparkfun forums some commands are only recognized if they originate from the wired side of the device, not the wireless so wrapping TX and RX together fed those commands back into the wired side even though they originated via bluetooth.

For more information see http://forum.sparkfun.com/viewtopic.php?t=5399&highlight=smirf

Thanks the tip Pev - it got me thinking whether the baud rate had actually been changed.

BillB
Problem Solved! - the Aliens have gone :lol:

The problem appears to have been that the when I tried to set the Bluesmirf baud rate using the "+++" mode - the changes were not being saved to the BlueSmirf module. I solved the problem by twisting the RX and TX wires togther when I set the baud. And that did the trick!

According to the sparkfun forums some commands are only recognized if they originate from the wired side of the device, not the wireless so wrapping TX and RX together fed those commands back into the wired side even though they originated via bluetooth.

For more information see http://forum.sparkfun.com/viewtopic.php?t=5399&highlight=smirf

Thanks the tip Pev - it got me thinking whether the baud rate had actually been changed.

BillB
BillB
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 232
Joined: Sun Aug 06, 2006 1:00 am
Location: Hampshire, UK


4 postsPage 1 of 1
4 postsPage 1 of 1