very newbie question

Started by naimead February 5, 2005

I have managed recently to compile and download a program in a BX-
24,but nothing seems to happen.Do i have to do something extra?Can
it work with the USB programming cable on it or not?

I have downloaded the BX-24+LCD example from the example section of
totalrobots but no message appears in my screen except the welcome
message from the lcd itself.




very newbie question
Re: very newbie question
Re: very newbie question

I have managed recently to compile and download a program in a BX-
24,but nothing seems to happen.Do i have to do something extra?Can
it work with the USB programming cable on it or not?

I have downloaded the BX-24+LCD example from the example section of
totalrobots but no message appears in my screen except the welcome
message from the lcd itself.




Re: very newbie question
You may want to provide some more information to aid in this help process. You state that nothing happens... does your computer connect to the BX-24? Do you connect and get an error? Do you complete your download, but don't get the response that you expect?

Have you tried "hard" resetting the BX-24? Holding down the reset button until you begin downloading, then release.

If you aren't sure if your program is running, add a line where the red LED turns on and off to make sure that your program is running. Throw in a few Debug.Print statements. The USB programming cable works as long as you have selected the proper "COM" port. Change it from COM1, COM2, etc until you connect. Hard reset to be certain.

If I am off the mark, throw in some more details of what you wanted, what you did, and the results that you saw.

Thad

naimead <> wrote:

I have managed recently to compile and download a program in a BX-24,but nothing seems to happen.Do i have to do something extra?Can it work with the USB programming cable on it or not?

I have downloaded the BX-24+LCD example from the example section of totalrobots but no message appears in my screen except the welcome message from the lcd itself.
__________________________________________________




Hi Naimead,

Exactly what does "the welcome message from the lcd" say? Does it scroll off to the right?

Best Regards, Eric
----- Original Message -----
From: naimead
To:
Sent: Friday, February 04, 2005 7:37 PM
Subject: [BasicX] very newbie question

I have managed recently to compile and download a program in a BX-
24,but nothing seems to happen.Do i have to do something extra?Can
it work with the USB programming cable on it or not?

I have downloaded the BX-24+LCD example from the example section of
totalrobots but no message appears in my screen except the welcome
message from the lcd itself.



This is what I download:

dim icom3(1 to 50) as byte 'inwards buffer (not used)
dim ocom3(1 to 50) as byte 'outwards buffer
dim line1 as string*20 '20 character string text
dim line2 as string*20 '20 character string text
dim count as byte 'byte used for count loop
sub main()
Do
line1 = "BX-24, GPM & Serial " 'First line of text.
line2 = " Application " 'Second line of text.

call openqueue(icom3,50) 'create input queue
call openqueue(ocom3,50) 'create output queue
call definecom3 (0,5,bx1000_1000) 'define coms port on pin 0 and 5
'defining 0 as a pin means it is not used.
call opencom(3,9600,icom3,ocom3) 'initialise coms port3
call putqueuestr(ocom3,chr(254) & chr(1)) 'clear the screen
delay (1.0)
call putqueuestr(ocom3,chr(254) & chr(128)) 'Command byte sent
call putqueuestr(ocom3, line1) 'send first line
call putqueuestr(ocom3,chr(254) & chr(192)) 'command byte
call putqueuestr(ocom3, line2) 'send second line
Delay (2.0) '2 second delay
count = 0 'Set count byte to 0
Do 'Start of a do-loop-until construct
count = count +1 'increment count file by 1 on each loop.
call putqueuestr(ocom3,chr(254) & chr(28)) 'command byte and scroll
right
delay (0.5) '0.5 second delay
loop until (count = 20) 'loop 20 times

Loop 'loop main program
end sub 'End of main sub and program
'********************************************************************
******* And this is what I get:

*** Opening file: C:\Program Files\BasicX\Project3.bxb

*** Downloading File

Writing internal EEPROM
Verifying internal EEPROM
Verify OK
Writing external EEPROM
Verifying external EEPROM
Verify OK

*** Finished Downloading
Sometimes it takes too long to verify external EEPROM and i have an
error message
serial communication timed out.

Any way,when i tried to download the following code i had the
desired results: ***********************************
Public Sub Main()
Do
Debug.Print "Hello, world"
Call Delay(1.0)
Loop
End Sub
**********************************

Also the welcome message i mentioned is this:

DS-LCDD2
VERSION 1.00

and no,it doesn't scroll.




Could it be a hardware problem?Also the original code uses pin
17,but i have used port 5 but i do not think it matters though.