Jump to content

Photo

TIPI - TI-99/4A to Raspberry PI interface development


456 replies to this topic

#451 jedimatt42 OFFLINE  

jedimatt42

    Stargunner

  • Topic Starter
  • 1,570 posts
  • Location:Beaverton, OR

Posted Mon Apr 30, 2018 12:42 AM

This comes up in conversation on other channels everytime TIPI comes up.

It is a great idea. Go for it.

I was influenced by GR8NET's CALL NETBLOAD command and this application someone wrote in basic for the MSX: https://www.msx.org/...sx-rom-database

Keep in mind, most EA5 loaders work with PI.http or URIx paths. Tursi's website has an xb scratchpad loader that works. Most of the CALL TIPI code comes from there.

You can also load BASIC and XB PROGRAM format files through URIx or PI.http...

You can kindof read ascii data this way. Fixed record length works best right now. There are bugs in this.

You can do REST queries over http with PI.TCP=hostname:port... See get.bas in examples/tests/basic

I think the primary requirements will come from how someone curates the files and metadata to navigate them.

The GR8NET for MSX also has a browser that can read apache generated directory listings, and load roms from that. That could be a cool approach as well.

TIPI won't load roms of course. It doesn't replace cartridge software. But if the cartridge has already been hacked to run from memory expansion, then you can probably load it off TIPI.

-M@
  • RXB likes this

#452 jedimatt42 OFFLINE  

jedimatt42

    Stargunner

  • Topic Starter
  • 1,570 posts
  • Location:Beaverton, OR

Posted Tue May 1, 2018 10:22 PM

We've noticed that the assembler from good old TI doesn't work with TIPI. It seems that programs writing to FIXED record files, don't always bother to set the character count byte in the PAB.

writing to a DF80 file works fine from basic, which sets the outgoing character count, and fails in EA which does not.

---

I don't see any confirmation of this in the various relevant specifications. But I observe this under the debugger in classic99 as well. That is, I observe that only one byte in the PAB is >50. Where during a write operation I would expect 2, the record length, and the character count.

My plan is to amend the DSR ROM to use the record length as the character count when writing FIXED length records regardless of the PAB's character count value.

---

Please tell me if you believe I'm interpreting this wrong..

-M@

#453 jedimatt42 OFFLINE  

jedimatt42

    Stargunner

  • Topic Starter
  • 1,570 posts
  • Location:Beaverton, OR

Posted Tue May 1, 2018 11:08 PM

Seems to work.

-M@

#454 HOME AUTOMATION OFFLINE  

HOME AUTOMATION

    Space Invader

  • 17 posts

Posted Tue May 1, 2018 11:44 PM

We've noticed that the assembler from good old TI doesn't work with TIPI. It seems that programs writing to FIXED record files, don't always bother to set the character count byte in the PAB.

writing to a DF80 file works fine from basic, which sets the outgoing character count, and fails in EA which does not.

---

I don't see any confirmation of this in the various relevant specifications. But I observe this under the debugger in classic99 as well. That is, I observe that only one byte in the PAB is >50. Where during a write operation I would expect 2, the record length, and the character count.

My plan is to amend the DSR ROM to use the record length as the character count when writing FIXED length records regardless of the PAB's character count value.

---

Please tell me if you believe I'm interpreting this wrong..

-M@

Sounds good, why didn't I think of that! I am someone who ran into this issue. TIPI and I are getting along better now that I've had a little sleep. Now I assemble in MAME, extract with Ti99Dir.exe, tranfer with TIPI, actually quite painless. Plus better keyboard.

 If I failed to mention it before...
...TIPI is W-O-N-D-E-R-F-U-L !!!    -Looking forward-


Edited by HOME AUTOMATION, Wed May 2, 2018 12:14 AM.


#455 BJGuillot OFFLINE  

BJGuillot

    Star Raider

  • 55 posts

Posted Sun May 6, 2018 6:59 PM

I'm trying to use TI BASIC to play with the PI.TCP capabilities as demonstrated in the https://github.com/j...s/basic/get.bassample, but I'm running into a problem in which the TI/TIPI seems to hang and I am never able to receive any INPUT.  Even if I type the INPUT statements and loop out the program and just do the PRINT #1 statements, TI BASIC end the program with "** DONE **" but the screen stays green in color but never returns to the ">" prompt.

 

My PI-Version is "1.0betav018" but I had tried using the 016 version before upgrading and ran into the same problem.

 

The TIPI in general seems to have network connectivity, i.e., I can fire up and use CHATTI by doing call tipi("PI.http://myti99.com/CHATTI") from TI BASIC.

 

Is there an easy way to transfer the get.bas sample from GitHub directly into a usable file on my TIPI?



#456 ElectricLab OFFLINE  

ElectricLab

    Chopper Commander

  • 222 posts
  • Location:Hillsboro, Oregon

Posted Sun May 6, 2018 7:44 PM

BJ I also have. BASIC example that uses TIPI on myti99.com, for what its worth. Its the Rock Paper Scissors game that was mentioned at FestWest.

#457 jedimatt42 OFFLINE  

jedimatt42

    Stargunner

  • Topic Starter
  • 1,570 posts
  • Location:Beaverton, OR

Posted Sun May 6, 2018 9:10 PM

...
Is there an easy way to transfer the get.bas sample from GitHub directly into a usable file on my TIPI?


There are two very easy ways...

If you go to http://tipi:9900or http://<your-tipi-ip>:9900 you will find a browser UI to navigate and manage the TIPI filesystem.

 

Attached File  tipi-toolbar.png   14.89KB   4 downloads

One of the functions in the upper right hand icon set is 'new BASIC file', looks like a document with the classic basic color scheme.

 

Attached File  new-basic.png   17.02KB   4 downloads

enter the name GET.BAS, click create, and then paste in the code:
 

100 INPUT "Hostname: ":HOST$
110 INPUT "Port: ":PORT$
115 INPUT "Path: ":PATH$
120 CR$ = CHR$(13)
130 LF$ = CHR$(10)
140 OPEN #1:"PI.TCP="&HOST$&":"&PORT$,DISPLAY,VARIABLE
150 PRINT #1:"GET ";PATH$;" HTTP/1.0";CR$;LF$;
160 PRINT #1:"Accept: text/plain, text/html, text/*";CR$;LF$;
170 PRINT #1:CR$;LF$;
180 INPUT #1:L$
190 PRINT L$;
200 GOTO 180

Press save, and from BASIC you should be able to then OLD TIPI.GET/BAS  to load it as a program.   Why did I name it GET.BAS ?  That leaves it as a text file on the tipi filesystem.   

 

 

Which leads to the other easy way:

 

Tipi has a windows share named 'tipi'  mac or linux:  smb://tipi/tipi    or on windows \\tipi\tipi    Here you can just use your favorite tools to put files on the tipi.  You can save GET.BAS to the windows share in your favorite text editor, and load it from BASIC as above. 

 

If the name from the WebUI is not ending in .BAS then the file will be saved as a PROGRAM IMAGE and you will not be able to edit it through the windows share without special TI oriented tools. 

 

-M@






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users