[Contest Entry] Spinneret Embedded BASIC (PE-BASIC)
Bean
Posts: 8,129
JUDGES: I have attached my entry to this post.
I have made my embedded BASIC work on the spinneret thru TELNET.
You will have to open this .pbas file in BST and go to about line 366 to change the spinneret settings (MAC, GATEWAY, Etc).
To get telnet on a windows computer, go to the control panel, then "Add/Remove Programs" or "Programs and features" then look for a link that says "Turn Windows Features On/Off" and click on it. In there you will see "Telnet Client" check the box beside it. After it installs go to a command prompt and run TELNET then at the "Microsoft Telnet>" prompt type in the letter o a space and the IP address of your spinneret. After connection press ENTER to ge the OK prompt.
If you want to try it on my Spinneret Telnet to pebasic.com
Original Embedded BASIC thread http://forums.parallax.com/showthread.php?123678-Embedded-BASIC-interpreter
Here is a demo program to flash the orange LED:
This is a contest entry so comments and suggestions are more than welcome...
Bean
P.S. Press the ESC key to stop any program.
I have made my embedded BASIC work on the spinneret thru TELNET.
You will have to open this .pbas file in BST and go to about line 366 to change the spinneret settings (MAC, GATEWAY, Etc).
To get telnet on a windows computer, go to the control panel, then "Add/Remove Programs" or "Programs and features" then look for a link that says "Turn Windows Features On/Off" and click on it. In there you will see "Telnet Client" check the box beside it. After it installs go to a command prompt and run TELNET then at the "Microsoft Telnet>" prompt type in the letter o a space and the IP address of your spinneret. After connection press ENTER to ge the OK prompt.
If you want to try it on my Spinneret Telnet to pebasic.com
Original Embedded BASIC thread http://forums.parallax.com/showthread.php?123678-Embedded-BASIC-interpreter
Here is a demo program to flash the orange LED:
10 HIGH 23 20 PAUSE 100 30 LOW 23 40 PAUSE 100 50 GOTO 10
This is a contest entry so comments and suggestions are more than welcome...
Bean
P.S. Press the ESC key to stop any program.
Comments
Try this:
Telnet to 173.67.187.91
Please let me know if you try it.
Bean
Nice job Bean!
Edit
saved a programm to 4: save 4
when i do load 1, load 2, or load 3 it loads the same programm (4)
The module has been running without problems for over 24-hours. If you can't connect it's because someone else if already connected. This has happened to me several times now.
Bean
'
You are the Man.
Thanks.
BTW I fixed the LOAD / SAVE issue, so it should be working properly now.
If you connect, please feel free to change the program or even write a new one if you want.
Bean
...you should be in and able to get right to Bean's BASIC.
type ... list
... for example to see the program that someone left before you.
Enter a simple line numbered basic program and type RUN to see it execute.
FYI) opening Putty.exe in telnet or even Raw mode also works.
Don't forget the Lil "o" and space before the IP address.
'
'
I installed/enabled Telnet on my laptop(Vista w/ WiFi) Worked great.
'
I have a test bed set up to see if I can get to the Spinneret from work across the www. Can't wait to try it out.
'
'
P.S. the Banker-Fox.A Trojan has morphed, pretty much a "formate C; /u" recovery for older machines.
Just be careful of what you post.
Run telnet, help for the menu, then "o 173.67.187.91"
Works from here in Australia. You can edit the program, run it etc. And I gather this is just a little board with a spider on it, sitting on a cat5 cable?
Hmmm. I not sure what is going on that causes this...
I'll have to wait until I get home from work to reboot it.
Bean
I left an example that I remembered from my Timex Sinclair days.
Is there a way to list saved progs?
All I could get was the last one I saved.
I did that with ubuntu10.10. Kind of cool to run something like that remotely.
-dan
If you want to try it on my Spinneret use "TELNET 173.67.187.91".
' Version 0.15
'
' Added ">" and "<" as seperators
' Functions must use parens: PEEK(), PEEKW(), PEEKL(), ABS(), RND(), SHIFTIN(), I2CREAD()
' RND(x) now returns values 0 to (x-1) like standard BASIC
' Added ELSE "IF cond THEN commands ELSE commands"
' Allow comma as print seperator
' Fixed I2CStart issue with PropBasic
' Enabled FCOLOR, BCOLOR with spinneret (telnet)
'
' Version 0.14
' Added: Support for SpinSim
' Fixed: REV, SAR, ROL, ROR, //
'
' Version 0.13
' Changed POKEB and PEEKB to POKE and PEEK
' Added FREE function (free memory)
' Added SCREEN function (screen address NTSC ONLY)
' Fixed autostart keyboard
' Fixed REM and ' tokenizing text
'
' Version 0.12
' Fixed colors
' Fixed SAVE and LOAD going beyond program area
' Enhanced DISPLAY command (multi parameters, 10 moves to next line)
'
' Version 0.11
' Incorporated Potatohead's TV_Text
'
' Version 0.10
' Fixed NOT, AND, OR
' Fixed OUTPUT value
' Fixed SAVE value / LOAD value (NEEDS TESTED)
Bean
Maybe offline?
Dave
I'm not sure why...But sometimes you need to try it twice. It usually connects right away the second time. I'll look into the issue.
Bean
You can use: TELNET 173.67.187.91
to use it.
Please let me know how it work. My entry needs to be in by the end of this month.
Questions and comment are welcome...
P.S. Dave do you know what I need to do to terminate the connection ?
Bean
Made a quick visit. Listing, running, etc was very responsive. I need to read up more on PE-BASIC syntax and commands before I can do more. My BASIC is rusty!
Looks very stable. Try hit the 'X'
It does it stuck sometimes (the parser stops working) and I just haven't been able to figure out what causes it.
I end up having to reset the spinneret.
Bean
I have loaded version 0.17 which has a QUIT command.
Bean
Do you mind if I include a section on this in my in progress Spinneret publication?
OBC
Not at all. Please include it.
P.S. I just loaded a new version of PE-BASIC on the spinneret that includes a HELP command. It's not much, but it should help.
Bean
So now you can just use: TELNET pebasic.com
Bean
http://www.youtube.com/watch?v=8-Ag90VWJHA
Comments welcome,
Bean
Thanks, Bean
I didn't want my entry to get pushed too far down that the judges wouldn't find it.
Has anyone tried PEBasic on their spinneret ? Just wondering...
Bean
Great job, Bean!!! Happy camping!!