Shop OBEX P1 Docs P2 Docs Learn Events
[Contest Entry] Spinneret Embedded BASIC (PE-BASIC) — Parallax Forums

[Contest Entry] Spinneret Embedded BASIC (PE-BASIC)

BeanBean Posts: 8,129
edited 2011-08-08 04:49 in Accessories
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:
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.
«1

Comments

  • BeanBean Posts: 8,129
    edited 2011-02-09 09:56
    Oh, and I discovered you can use the old Ascii escape sequences.
    Try this:
    10 CLS
    20 FOR a=31 TO 37
    30 DISPLAY 27:PRINT "[";a;"m";
    40 PRINT "Testing..."
    50 NEXT a
    
    674 x 339 - 16K
  • BeanBean Posts: 8,129
    edited 2011-02-09 12:39
    If anyone would like to try it I have it online now.

    Telnet to 173.67.187.91

    Please let me know if you try it.

    Bean
  • BocephusBocephus Posts: 58
    edited 2011-02-09 14:52
    Bean, I tried it and it works great. Took me a minute to remember the telnet commands, but the basic was easy enough to figure out. Good job!
  • TumblerTumbler Posts: 323
    edited 2011-02-09 19:48
    Works fine at the other side of the pool :)
    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)
  • BeanBean Posts: 8,129
    edited 2011-02-10 04:28
    @Tumbler, Thanks. I'll look into the LOAD SAVE issue.

    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
  • $WMc%$WMc% Posts: 1,884
    edited 2011-02-10 20:08
    Bean:
    '
    You are the Man.
  • BeanBean Posts: 8,129
    edited 2011-02-11 06:37
    $WMc% wrote: »
    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
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2011-02-13 12:57
    If you type ... telnet 173.67.187.91

    ...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.
  • $WMc%$WMc% Posts: 1,884
    edited 2011-02-13 16:14
    If you type ... telnet 173.67.187.91

    ...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.
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2011-02-13 19:13
    This is really amazing!

    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?
  • TumblerTumbler Posts: 323
    edited 2011-02-13 21:08
    And i hacked his spinneret again :)
    Untitled-2.gif
    747 x 378 - 9K
  • BeanBean Posts: 8,129
    edited 2011-02-14 04:33
    Tumber,
    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
  • icepuckicepuck Posts: 466
    edited 2011-02-14 13:45
    @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
  • BeanBean Posts: 8,129
    edited 2011-04-25 14:53
    I just updated the first in the first post to version 0.15

    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
  • TumblerTumbler Posts: 323
    edited 2011-04-26 12:03
    "Could not open connection to the host"
    Maybe offline?
  • Dave HeinDave Hein Posts: 6,347
    edited 2011-04-26 12:35
    It worked fine for me. I would suggest that you print something on login, such as "Welcome to PE-BASIC 1.xxx". You may also want to implement an exit command. I had to use ctrl+] to get out.

    Dave
  • BeanBean Posts: 8,129
    edited 2011-04-26 13:41
    Tumbler,
    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
  • BeanBean Posts: 8,129
    edited 2011-07-11 14:58
    I have the latest version of PE-Basic on my spinneret.

    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
  • mindrobotsmindrobots Posts: 6,506
    edited 2011-07-11 19:28
    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!
  • TumblerTumbler Posts: 323
    edited 2011-07-11 19:45
    Very nice work Bean.

    Looks very stable.
    P.S. Dave do you know what I need to do to terminate the connection ?
    Try hit the 'X' :)
  • BeanBean Posts: 8,129
    edited 2011-07-12 04:13
    Tumbler,
    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
  • Dave HeinDave Hein Posts: 6,347
    edited 2011-07-12 08:00
    Bean wrote: »
    P.S. Dave do you know what I need to do to terminate the connection ?
    I think you just need to close the TCP connection.
  • BeanBean Posts: 8,129
    edited 2011-07-12 14:06
    Dave, Thanks.
    I have loaded version 0.17 which has a QUIT command.

    Bean
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2011-07-14 13:09
    @Bean,

    Do you mind if I include a section on this in my in progress Spinneret publication?

    OBC
  • BeanBean Posts: 8,129
    edited 2011-07-14 14:27
    Jeff,
    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
  • BeanBean Posts: 8,129
    edited 2011-07-14 18:41
    I took some good advice from another thead and went ahead an got the domain name pebasic.com for this project.
    So now you can just use: TELNET pebasic.com

    Bean
  • BeanBean Posts: 8,129
    edited 2011-07-18 16:44
    I have uploaded a video showing Spinneret PE-Basic in action (this is for the contest).

    http://www.youtube.com/watch?v=8-Ag90VWJHA

    Comments welcome,

    Bean
  • BeanBean Posts: 8,129
    edited 2011-07-24 14:54
    Judges, I have attached my entry files to the first post in this thread.

    Thanks, Bean
  • BeanBean Posts: 8,129
    edited 2011-07-29 09:41
    Sorry to bump this, but I'll be away all weekend camping with no internet access.
    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
  • mindrobotsmindrobots Posts: 6,506
    edited 2011-07-29 15:18
    I have loaded it and played. I'm going to load it up on one of my two and expose it - at least expose it to the home network. I may still be having port forwarding issues. It's great having a propr on a network that you can log into and program. This goes for the PropFORTH IPServer version also. I can see both of these used in remote configurations.

    Great job, Bean!!! Happy camping!!
Sign In or Register to comment.