To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.pbforthOpen lugnet.robotics.rcx.pbforth in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / pbFORTH / *628 (-20)
  Getting started; FFT; millisecond timing
 
Hi everyone, my first posting. First off, heartfelt thanks to Ralph for pbForth. Having recently (Jan 2004) got hold of Mindstorms 2.0 I thought I would lay out the way I found to get up and running with pbForth. It took me a week or two to figure (...) (20 years ago, 9-Apr-04, to lugnet.robotics.rcx.pbforth)
 
  RE: Problem with rcxTcl.exe and the USB IR tower
 
I have a tentative solution to this problem. I've written a DLL that will also allow me to change some interesting stuff like baud rate and imeouts on the tower. This may allow us to finally get full control of the RCX USB tower! Hopefully I can (...) (20 years ago, 9-Feb-04, to lugnet.robotics.rcx.pbforth)
 
  Re: LEGO Tower API and Filenames
 
(...) One other thing you could try is to physically disconnect and then reconnect the USB tower from the system. I've found that (on Win98 at least) the driver sometimes freezes up and won't open until after I do that little dance. Also, you could (...) (20 years ago, 6-Feb-04, to lugnet.robotics, lugnet.robotics.rcx.pbforth)
 
  RE: LEGO Tower API and Filenames
 
(...) Yes, I escaped the characters. The identical code works on the Win2K machine and does not work on the win98SE machine with identical LEGO drivers installed. Hmmmm Ralph (20 years ago, 5-Feb-04, to lugnet.robotics, lugnet.robotics.rcx.pbforth)
 
  Re: LEGO Tower API and Filenames
 
(...) Did you escape the backslashes in the C string? CreateFile("\\\\.\\LEGOTOWER1", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0); Just a thought... it's easy to forget sometimes. Mark (20 years ago, 5-Feb-04, to lugnet.robotics, lugnet.robotics.rcx.pbforth)
 
  Re: LEGO Tower API and Filenames
 
(...) Ralph, I retried it with a Delphi-program that I wrote some time ago. This opens "\\.\LEGOTOWER1" without any problem: ... const DEFAULT_PORT_NAME = '\\.\LEGOTOWER1'; ... function USB_Open():Longint;stdcall; var hFh:Longint; begin (...) (20 years ago, 5-Feb-04, to lugnet.robotics, lugnet.robotics.rcx.pbforth)
 
  RE: LEGO Tower API and Filenames
 
(...) Claude, I've written a little C program that tries to open "\\.\LEGOTOWER1" and on otherwise identical computers (except one is running Win98SE and the othre runs Win2K) only the Win2K machine can open the file. Of course, the LEGO tools work (...) (20 years ago, 5-Feb-04, to lugnet.robotics, lugnet.robotics.rcx.pbforth)
 
  Re: LEGO Tower API and Filenames
 
(...) Right with \\.\...., but at least with Win98SE the port is correctly found. Great to here you Ralph. (20 years ago, 5-Feb-04, to lugnet.robotics, lugnet.robotics.rcx.pbforth)
 
  LEGO Tower API and Filenames
 
All, I've been messing with the tower API and have discovered what I think is an error in the docs... Fisrt off, the API help file tells us to open "\.\LEGOTOWERx" In fact, the file name must look like this: "\\.\LEGOTOWERx" Even worse, the filename (...) (20 years ago, 4-Feb-04, to lugnet.robotics, lugnet.robotics.rcx.pbforth)
 
  RE: Problem with rcxTcl.exe and the USB IR tower
 
(...) I fanlly got a spare machine with a fresh Win98 install, and then I installed the LEGO tower driver. Sure enough, rcxTcl.exe does not find the USB tower.... So I have some investigating to do. Ralph (20 years ago, 3-Feb-04, to lugnet.robotics.rcx.pbforth)
 
  Re: WORDLIST
 
(...) Lucky you! We had just some cm's and its all melting away today:( Ok, here's a new version of SEE, WORDS and friends for pbforth 2.x (tested on 2.1.5). First there are some words (Graphic? ... Head) which actually exist in pbforth, but without (...) (20 years ago, 31-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: IR problems
 
(...) I did not explain my problem properly but you got it anyway! I do use EKEY? before EKEY, but sometimes EKEY seems to block. Thanks for taking your time to look into this. As for the new word (wow!), in Forth-79, there was a word called ?KEY (...) (20 years ago, 31-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  RE: WORDLIST
 
I should help with this tooo, maybe this weekend. Sigh. We just got between 60cm and 90 cm of fresh snow, so snowboarding and shovelling will be the primary activities, unless the roads are closed - which does happen frequently... Ralph (...) (20 years ago, 30-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  RE: IR problems
 
(...) EKEY always waits for input. Use EKEY? to see if anything is available... Looking at the source, I see that there is a possiblity that in the time between checking for a character with EKEY? and actually reading it with EKEY, that an error can (...) (20 years ago, 30-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: WORDLIST
 
(...) There used to be:-) My code was written for pbforth 1.x which turned to be incompatible with 2.x (I've been out of contact with pbForth for some time and only recently got my RCX back). My fault for not testing it on the current version. Mea (...) (20 years ago, 30-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: WORDLIST
 
(...) On a plain pbForth system I get errors when trying to load this code. What do you mean by "wordlist extensions required"? Is there source code available somewhere which adds the wordlist extensions to pbForth? My pbForth doesn't know about (...) (20 years ago, 30-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: IR problems
 
(...) Ralph, one more question. Are there conditions where the word EKEY would wait for input (like KEY)? It seems to happen in my program. Thanks (20 years ago, 29-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: WORDLIST
 
(...) Hi I've tried to reproduce your code but Bricx has a limit on its line length. Is there an easy way round this problem or do I have to split the longer word definitions. David Liddell. (20 years ago, 28-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  Re: IR problems
 
(...) Thanks Ralph. I'll try this. I might have followed the wrong track but I got to this 'test program' trying to solve the problem I have in my 'real' program: I'm writing a PbForth version of the Trailerbot (Luis Villa, Extreme Mindstorms). The (...) (20 years ago, 28-Jan-04, to lugnet.robotics.rcx.pbforth)
 
  RE: IR problems
 
Hmmm The blip and LCD clearing, while useful for debugging may be messing things up. The characters are coming in way faster than the blip time, so you may not be reading the buffer fast enough. I would put code at the end of getHeader that (...) (20 years ago, 24-Jan-04, to lugnet.robotics.rcx.pbforth)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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