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

RoboBASIC Comms Speeds?

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
4 postsPage 1 of 1
4 postsPage 1 of 1

RoboBASIC Comms Speeds?

Post by NovaOne » Sun Dec 09, 2007 10:26 pm

Post by NovaOne
Sun Dec 09, 2007 10:26 pm

The manual states that ERX/ETX max speed is 230400 baud, this should be fast enough for almost anything, but I realize that Robobasic is a slow interpreted language, so using the highest speed comms setting may not help?
So my question is whats the max reliable and useful speed for ERX/ETX comms ?
The manual states that ERX/ETX max speed is 230400 baud, this should be fast enough for almost anything, but I realize that Robobasic is a slow interpreted language, so using the highest speed comms setting may not help?
So my question is whats the max reliable and useful speed for ERX/ETX comms ?
NovaOne
Savvy Roboteer
Savvy Roboteer
Posts: 405
Joined: Thu Jul 05, 2007 7:30 am

Post by i-Bot » Mon Dec 10, 2007 12:37 am

Post by i-Bot
Mon Dec 10, 2007 12:37 am

I would expect that working at 230.4K is OK, but the problem is that only a single byte is buffered by the interface. Robobasic will only look for a received character when it can. This is every few millisecond, so operation over 19.2K is likely of low return.
I would expect that working at 230.4K is OK, but the problem is that only a single byte is buffered by the interface. Robobasic will only look for a received character when it can. This is every few millisecond, so operation over 19.2K is likely of low return.
i-Bot
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am

Post by JavaRN » Mon Dec 10, 2007 9:24 pm

Post by JavaRN
Mon Dec 10, 2007 9:24 pm

I've been working with Java and my RN through bluetooth for the past three months. Till now I only used 9600 since all I wanted was to transfer and receive byte values. Now I need more speed since I am also transferring simple phrases to the RN so that he can speak through the SP03 module. However it is taking over 7 seconds from the time the program issues the phrase till it is outputted by the SP03 in the robot. When I tried to communicate with speeds faster than 9600 nothing happens. I think that this is something that has to do with what you're discussing here.

Charles
I've been working with Java and my RN through bluetooth for the past three months. Till now I only used 9600 since all I wanted was to transfer and receive byte values. Now I need more speed since I am also transferring simple phrases to the RN so that he can speak through the SP03 module. However it is taking over 7 seconds from the time the program issues the phrase till it is outputted by the SP03 in the robot. When I tried to communicate with speeds faster than 9600 nothing happens. I think that this is something that has to do with what you're discussing here.

Charles
F'dan il-passatemp ghandek bzonn zewg affarijiet - FLUS u HIN. Zewg affarijiet li huma skarsi hafna u li jien minnhom ghandi vera ftit!
JavaRN
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 282
Joined: Fri Mar 02, 2007 11:01 pm

Post by NovaOne » Mon Dec 10, 2007 9:46 pm

Post by NovaOne
Mon Dec 10, 2007 9:46 pm

I thinks this is due to the speed of RoboBasic running bit-banged I2C.

You could speed this up using i-Bots flash upgrade.
I thinks this is due to the speed of RoboBasic running bit-banged I2C.

You could speed this up using i-Bots flash upgrade.
NovaOne
Savvy Roboteer
Savvy Roboteer
Posts: 405
Joined: Thu Jul 05, 2007 7:30 am


4 postsPage 1 of 1
4 postsPage 1 of 1