PDA

View Full Version : transferring the source code



yngjng
05-11-2006, 04:27 PM
i m developing a software for telerobot. but i have a problem with transferring the source code. Is that any other methods to transfer the source code from pc to controller instead of using the software provided?

allanlane5
05-11-2006, 09:15 PM
If you're using the Parallax Basic Stamp 2 (BS2), then the easiest way is to use the Parallax IDE.

There are other ways. The 'stache' module allows you to load the module, carry it into the field, and use it to program another BS2 in the field. Parallax has also made available their compiler engine as a DLL, so you could write your own downloader.

Chris Savage
05-11-2006, 11:01 PM
What problems are you having? Perhaps there is a solution.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com (mailto:csavage@parallax.com)

yngjng
05-12-2006, 10:41 PM
ok...let me describe my problem.
my project is built a telerobot system. so, i had choosen a BoeBot mobile robot as the robot to be control over the internet.
now, i have a client-server system. a client is communicate with the server via internet. a client can upload a sourcecode file to the server placed in the lab. normally, we can transfer the sourcecode to Parallax Basic Stamp 2 (BS2) using Parallax IDE. But the problem is i dont know how to control the Parallax IDE across the internet. so, i trying other method of transferring the sourcecode.

allanlane5
"The 'stache' module allows you to load the module, carry it into the field, and use it to program another BS2 in the field. Parallax has also made available their compiler engine as a DLL, so you could write your own downloader."

would u mind to describe more on it. Do u have any relevant resources for this? I think u get my question.

thank you.

Chris Savage
05-12-2006, 10:53 PM
Yes, you would definately need to look into the Tokenizer Library, or you could use the function from the menu for generating object code. You can create a stand-alone program. This may or may not help you.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com (mailto:csavage@parallax.com)

Forrest
05-13-2006, 12:41 AM
In you description of your problem, you seem to use the words control and program interchangably - but they're not. Control of your BoeBOT over the internet is not difficult. Assuming you've got a client PC (or a Parallax PINK), then you can just write your PBASIC BoeBOT program to wait for commands on the serial port and perform the command. ie to turn left and go forward 5 steps, your client PC would issue the commands L F F F F F and your robot would execute each command in sequence.

yngjng
06-15-2006, 12:27 PM
Chris Savage (Parallax) said...
Yes, you would definately need to look into the Tokenizer Library, or you could use the function from the menu for generating object code. You can create a stand-alone program. This may or may not help you.


thank you for your reply. i think generating object code will be easier fo me. what is object code? is that the source code being converted? if generating the object code, i have to use the StampLoader to load the object code to the microcontroller which i think is impossible to do it from client machine to execute the Stamploader. if the StampLoader just performing the transferring task, can i write a program to do the transferring process? i think the protocol is given in the Pbasic tokenizer notes.

Tristan T
06-15-2006, 11:20 PM
Yngjng,
Do you need to add functionality every time you remotely program the robot, or do you just need to give it remote commands?

If you only need to remotely issue commands or sequences of already programmed events, like turn left, go forward, turn right, then you might only need to have the robot listen for a serial in, parse a command string, and go to the required preprogrammed subroutine. i.e.



DO
SERIN 16, 14, [control, comma]

SELECT control
CASE $4D
GOSUB turnLeft
CASE $56
GOSUB goStraight
ENDSELECT

turnLeft:
some events here
return


etc etc