To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 4012
     
   
Subject: 
RE: brickos 090 problem no program download with CONF_LNP_FAST
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 30 Apr 2008 22:36:52 GMT
Reply-To: 
<DICKSWAN@SBCGLOBAL.NETstopspammers>
Viewed: 
28725 times
  

Somewhere in the bowels of the header files within the RCX SDK is a list of
"IODEVICE control commands" which does include description of messages
required to change baud rate on the USB tower. I am assuming you're not
using the LEGO Windows DLL which has an easier interface to use.

It's quite a while since I "played" with this code. But I did have 4800
working fine with USB tower as long as you had the complimentary version of
the RCX. Once I started using AC adaptor RCX version almost exclusively, I
pretty much stopped using it.

The other thing you'll find if you using "fast" download mode and avoiding
the "double byte" transmission is that messages with a significant inbalance
of ones or zeroes won't work so well. There's not enough transitions bit
transitions for the serial port hardware to recover / sync to a proper
clock. I "solved" that particular problem by dynamically adjusting the size
of the download packet if it looked like the bits were "unbalanced". The
header bytes (0x55, 0xFF and 0x00) were enough to periodically allow the
clock syncing.

-----Original Message-----
From: news-gateway@lugnet.com [mailto:news-gateway@lugnet.com] On Behalf Of
Jochen Hoenicke
Sent: Wednesday, April 30, 2008 7:51 AM
To: lugnet.robotics.rcx.legos@lugnet.com
Subject: Re: brickos 090 problem no program download with CONF_LNP_FAST

<<snip>>

I just checked the source code.  There is no speed setting for usb
tower in the code.  If you look into firmdl3 you also find that fast
mode is disabled for USB, because it doesn't work. I think the USB
tower sends at 2400 baud and there is no known way to change it.
Remember that 4800 baud mode was never used by the official LEGO
firmware or download programs.

I have no idea how you can change baud rate (is this even possible?)
or carrier frequency on the USB tower.  AFAIK the transmit carrier
frequency on the RCX is set by carrier_init in lnp-logical.c to 38
KHz. If I understand Dick Swan's post  right, one should change it to
76 KHz for RCX 2.0.  I think it should be possible by setting T1_CORA
to 0x0D instead of 0x1A.

Best regards,

  Jochen

--
Jochen Hoenicke, http://hoenicke.ath.cx/rcx/

   
         
   
Subject: 
Re: brickos 090 problem no program download with CONF_LNP_FAST
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sat, 3 May 2008 08:01:33 GMT
Viewed: 
28569 times
  

.Sorry for the delay

Now i am in italy , triest. so i just do a short look in the messages.

Thanks for the answers.

In meantime i recogmised too that there is no serial baud rate change in the dll
for the usb.

I think i have something at home what i have downloaded in the past from a
japanese webside called like joybrick. I dont remember now exactlly the name and
the features, but. there are a lot of sw adjustments for the usbtower dll like
carrier frequency and so on..

However i can use the old serial tower, but usally i use the notebook and that
new one has only usb devices . Ok however there is a possibility to use the usb
to serial adapter ( if it is 100% compatible)

Ok in short i am back next week on monday so i will take a look at usb tower dll
driver.

by Bernhard

   
         
   
Subject: 
Re: brickos 090 problem no program download with CONF_LNP_FAST
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sat, 3 May 2008 17:19:02 GMT
Viewed: 
28218 times
  

by Bernhard

I have found the  thread,

its in http://news.lugnet.com/robotics/rcx/?n=1825&t=i&v=a

There is a also a 2 thread in
http://www.line.to/mac/MindStorms/JoyBricx/index-e.html

concernig the usb tower dll.
and a c program called
joybricxsrc.zip

I looked short in the header files
LEGOUSBTowerioctl.h

and there is a posibility to set the
speed

#define LT_CAPS_SPEED_BPS_300 LT_SPEED_BPS_300
#define LT_CAPS_SPEED_BPS_600 LT_SPEED_BPS_600
#define LT_CAPS_SPEED_BPS_1200 LT_SPEED_BPS_1200
#define LT_CAPS_SPEED_BPS_2400 LT_SPEED_BPS_2400
#define LT_CAPS_SPEED_BPS_4800 LT_SPEED_BPS_4800
#define LT_CAPS_SPEED_BPS_9600 LT_SPEED_BPS_9600
#define LT_CAPS_SPEED_BPS_19200 LT_SPEED_BPS_19200
#define LT_CAPS_SPEED_BPS_38400 LT_SPEED_BPS_38400

I will see what i can do.

 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR