Re: [M100] Serial IO from BASIC
okay some responses now that i'm in front of this setup: Peter Vollan: - The laserdisc player docs are online, which includes wiring pinouts for the DB15 on the back. For this one, It's got TTL and "standard 12v" serial pins on it. I've not gotten the TTL interface to work, but the RS-232 12v level works great. The pins you need to care about are: 1. GND, 2: TX (output from LD Player) 3: RX (input to LD Player). It talks at 4800 baud, 8N1. Check the docs for your 4200 to make sure the pinout is the same. The protocol is simple ascii text terminated with a , as are responses. - Pioneer Laserdisc players all use the same IR protocol, so you can buy just about any remote to use for it. I've seen them on ebay this past week for $10 shipped. You can get a wired remote or barcode reader (probably), but it's not necessary. Brian White: Awesome! I've got a few extra Pro Micros kicking around (32u4/Leonardo)... I'll have to try that! Thanks! Bob Pigford: MAXFILES is already set at 10 BUT!! not in the program runtime! I didn't know there was a difference.. John Hogerhuis: Understand about the buffer size concern, but the most this is ever receiving is about 16 bytes per response, so it's not really an issue for me. :) Greg Swallow: I tried that, I get BN Error on the line where I try to open it.. wait a sec... Josh Malone: Understood, but OK! I think I got it! Thank you all for the help! :D It was a combination of a few issues. - I forgot how INPUT works (the correct usage) - I didn't know about the LINE INPUT command - I didn't know i'd need to open INPUT and OUTPUT as two files - MAXFILES is a thing. For the record, the working program is here: (Note: transcribed) 10 REM Send some commands to a Pioneer LD Player 20 GOSUB 300 30 TX$="255RB":GOSUB 200 : REM disable squelch 40 TX$="PL":GOSUB 200 : REM Play 50 TX$="FR1000SE":GOSUB 200 : REM Seek to frame 1000 60 PRINT "Done." 99 END 100 REM RX a line serial data 110 LINE INPUT #2, RX$ 120 PRINT "RX: "; RX$ 130 RXOK=1 140 RETURN 200 REM TX a line and wait for response 210 PRINT "TX: "; TX$ 220 RXOK=0 230 PRINT #1, TX$ 240 IF RXOK = 0 GOTO 240 250 PRINT "RX!" 260 RETURN 300 REM Initialize serial IO 310 MAXFILES=2 320 OPEN "COM:78N1DI" FOR OUTPUT AS #1 330 OPEN "COM:78N1DI" FOR INPUT AS #2 340 ON COM GOSUB 100 350 COM ON 360 RETURN Also, DANG! This is some of the most usage I've gotten out of this computer ever... Aside from the display contrast being really poor (needs new power caps?) I LOVE the keyboard, I LOVE that I can drop in to edit the program in a screen text editor just everything on this thing is awesome! On Mon, Oct 29, 2018 at 7:16 PM Brian White wrote: > Original SD2TPDD > https://github.com/TangentDelta/SD2TPDD > > My 2 modified versions (neither is a finished product exactly, just to be > clear. I got them basically working a few weeks ago, and haven't worked on > them since then.) > > Teensy 3.5/3.6: > https://github.com/aljex/SD2TPDD/tree/bkw_teensy36 > > Adafruit Feather 32u4 Adalogger > https://github.com/aljex/SD2TPDD/tree/bkw_al32u4 > > There is also a more powerful version of Adalogger which is M0 instead of > 32u4. It's all the same board but with the more powerful M0 > microcontroller. I have not yet used that one, but I'm sure it works > practically out of the box too. > > The 32u4 version is the last one I worked on, and has a little cosmetic > feature that the top-right corner of TS-DOS on the M100 shows the name of > whatever directory you are in. > > But it IS working at least this well: > https://photos.app.goo.gl/N2v6iB45pePNFQNA8 > https://youtu.be/_lFqsHAlLyg > > > > On Mon, Oct 29, 2018 at 12:14 PM Scott Lawrence wrote: > >> And i see now (because i forgot to even look this route, assuming i could >> do full COM io through basic, but I could always do IN/OUT calls from BASIC >> to just work on the serial port directly... >> >> Would OPEN "COM:" FOR APPEND AS 1 work? >> >> I can't seem to find the Arduino-based tpdd project you're referring to... >> >> >> I've had a Pioneer CDP-S201 player since the 90s, which is just a >> standard LD+CD consumer player. No serial port. However after the recent >> project that Kevin Savetz did, restoring the Apple IIc + Rollercoaster >> text/video adventure game, I got back into LD stuff... and found a $60 >> Pioneer CDV-S2400 industrial player with a serial port on it, and have been >> messing around a lot with commanding it,. etc >> >> Anyway, I thought i'd create a new version... i've been considering >> various host computers, from code running exclusively on an Arduino, using >> the LD player's on-screen text for the interface, to having a wifi-serial >> adapter (made using an ESP-32) on the player, and then commanding it from >> python, perl, emulated amiga, etc... but i've settled on a BASIC program >> on a Tandy 200, directly connected. >> >> On Mon, Oct 29, 2018 at 12:03 PM Brian White wrote: >> >>> You can do tpdd to a pc or mac or pi etc
Re: [M100] NEC 8201 rechargeable battery packs and BERG jacks
You might also want to check out a set of NiZn batteries; I've mentioned them here before but don't know if anyone ever tried them. They have a nominal voltage of 1.6V and solve the early shutdown problem, usually with a capacity of 2500 to 2800 mWh (equivalent to approx. 1500 to 1700 mAh). They do require a special charger though, and trickle-charging is not recommended. m - Original Message - From: Kurt McCullum To: m100@lists.bitchin100.com Sent: Monday, October 29, 2018 10:04 AM Subject: Re: [M100] NEC 8201 rechargeable battery packs and BERG jacks I purchased them through eBay. But I went back this morning to see if the seller was still selling them and they are no longer listed. They are 480 ma cells so two banks gives 960ma. There are other sellers. Most from China but you are looking 1/3AA batteries with tabs. Sometimes you can find them stacked as 3 in one like I did and that saves some time. Kurt On Sun, Oct 28, 2018, at 4:53 PM, Anthony Coghlan wrote: Thanks, everyone. Kurt, that looks really good. I’m not familiar with those smaller batteries. How or where do you get them? Is there any simple mod (such as the added resistor near the batteries for the M100) that allows the 8201 to charge rechargeable batteries in a standard battery pack when plugged in? Best wishes, Anthony
Re: [M100] Serial IO from BASIC
Original SD2TPDD https://github.com/TangentDelta/SD2TPDD My 2 modified versions (neither is a finished product exactly, just to be clear. I got them basically working a few weeks ago, and haven't worked on them since then.) Teensy 3.5/3.6: https://github.com/aljex/SD2TPDD/tree/bkw_teensy36 Adafruit Feather 32u4 Adalogger https://github.com/aljex/SD2TPDD/tree/bkw_al32u4 There is also a more powerful version of Adalogger which is M0 instead of 32u4. It's all the same board but with the more powerful M0 microcontroller. I have not yet used that one, but I'm sure it works practically out of the box too. The 32u4 version is the last one I worked on, and has a little cosmetic feature that the top-right corner of TS-DOS on the M100 shows the name of whatever directory you are in. But it IS working at least this well: https://photos.app.goo.gl/N2v6iB45pePNFQNA8 https://youtu.be/_lFqsHAlLyg On Mon, Oct 29, 2018 at 12:14 PM Scott Lawrence wrote: > And i see now (because i forgot to even look this route, assuming i could > do full COM io through basic, but I could always do IN/OUT calls from BASIC > to just work on the serial port directly... > > Would OPEN "COM:" FOR APPEND AS 1 work? > > I can't seem to find the Arduino-based tpdd project you're referring to... > > > I've had a Pioneer CDP-S201 player since the 90s, which is just a standard > LD+CD consumer player. No serial port. However after the recent project > that Kevin Savetz did, restoring the Apple IIc + Rollercoaster text/video > adventure game, I got back into LD stuff... and found a $60 Pioneer > CDV-S2400 industrial player with a serial port on it, and have been messing > around a lot with commanding it,. etc > > Anyway, I thought i'd create a new version... i've been considering > various host computers, from code running exclusively on an Arduino, using > the LD player's on-screen text for the interface, to having a wifi-serial > adapter (made using an ESP-32) on the player, and then commanding it from > python, perl, emulated amiga, etc... but i've settled on a BASIC program > on a Tandy 200, directly connected. > > On Mon, Oct 29, 2018 at 12:03 PM Brian White wrote: > >> You can do tpdd to a pc or mac or pi etc for free. Just need a usb-serial >> adapter and serial cable. >> >> There is also an initial arduino implimentation that works on at least a >> few boards that have sd readers and usb interfaces already built-in, if >> you're up for that. Jimmy Petit wrote it and I have gotten it working on >> both Teensy and Adafruit Feather boards where you don't need anything else >> besides the board, an rs232-ttl module, and power. The Adafruit even has a >> lipo charger/manager and standard lipo connector already built in, so >> "power" means just plug in a lipo, and it's automatically charged by the >> same usb port used for programming. So there is no circuit designing, just >> connecting a couple legos to each other. >> >> I too collect laserdiscs and have a few players, though I don't think any >> of mine have rs232 interfaces. >> >> I have played around with the rs232 interfaces on a few different video >> processors. Especially a Faroudja where I don't have the remote and neither >> does Logitec harmony have the codes for it. >> >> I have a stack of strange discs that were obviously part of some internal >> teaching system at some company (I forget who it was). You can physically >> play the discs in a normal player, but they are really meant to be played >> in some kind of special rig that shows only 1/2 of the video and plays only >> one channel of audio at a time, and jumps to specific frames, presumably in >> response to user input, or I guess it could have been scripted. >> >> -- >> bkw >> >> On Mon, Oct 29, 2018, 11:27 AM Scott Lawrence wrote: >> >>> Hi all. >>> >>> So I'm working on a project; a BASIC program that talks at 4800 baud to >>> a LaserDisc player. The commands are sent as ascii text, with a carriage >>> return at the end, and responses are similarly a text string terminating in >>> a CR. >>> >>> On my Tandy 200, I'm able to configure the port in TERM via: >>>STAT 78N1DNI >>> >>> And then i can type out commands and the player works and responds with >>> the correct responses... so I know the serial line is working in both >>> directions as designed. >>> >>> In BASIC, i know i need to open the connection for INPUT and OUTPUT so >>> that I can write stuff and read back the responses. The following code >>> works to send out the commands, but it gets errors no matter what I try for >>> reading in the response >>> >>> 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 >>> 20 ON COM GOSUB 100 >>> 30 COM ON >>> 40 REM Send seek to frame 1000 >>> 50 PRINT #1, "FR1000SE" >>> 60 REM when the player gets there, it responds "R" via serial >>> 70 GOTO 70 >>> 100 REM Got serial response >>> 110 A$=INPUT #1 >>> 120 PRINT "Got ", A$ >>> 130 RETURN >>> >>> I looked around in a few online T books, but couldn't really find >>>
Re: [M100] Serial IO from BASIC
This is very interesting. I have a Pioneer LD-4200; it has a serial port but it is a non standard one that uses a 15 pin connector. And it uses a wired remote that I don't have. On Mon, 29 Oct 2018 at 09:28, Kevin Becker wrote: > > Here is the arduino TPDD project. I believe this is actually Brian's fork of > the original code. > > https://github.com/TangentDelta/SD2TPDD > > On Mon, Oct 29, 2018 at 12:15 PM Scott Lawrence wrote: >> >> I thought I had tried that, but it was giving me an EF error ... I'll try >> again tonight. maybe i was tired when I wrote it... the contrast on my '200 >> screen is pretty low. :( >> >> -s >> >> On Mon, Oct 29, 2018 at 12:10 PM Greg Swallow wrote: >>> >>> You will have to open COM for input as well: >>> >>> 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 >>> 15 OPEN "COM:78N1DNI" FOR INPUT AS 2 >>> 20 ON COM GOSUB 100 >>> 30 COM ON >>> 40 REM Send seek to frame 1000 >>> 50 PRINT #1, "FR1000SE" >>> 60 REM when the player gets there, it responds "R" via serial >>> 70 GOTO 70 >>> 100 REM Got serial response >>> 110 A$=INPUT #2 >>> 120 PRINT "Got ", A$ >>> 130 RETURN >>> >>> Or, something along those lines. >>> >>> Gpd Bless, >>> >>> GregS <>< >>> >>> >>> - Original Message - >>> From: "Scott Lawrence" >>> To: "Model 100 Discussion" >>> Sent: Monday, October 29, 2018 8:27:32 AM >>> Subject: [M100] Serial IO from BASIC >>> >>> Hi all. >>> >>> So I'm working on a project; a BASIC program that talks at 4800 baud to a >>> LaserDisc player. The commands are sent as ascii text, with a carriage >>> return at the end, and responses are similarly a text string terminating in >>> a CR. >>> >>> On my Tandy 200, I'm able to configure the port in TERM via: >>>STAT 78N1DNI >>> >>> And then i can type out commands and the player works and responds with the >>> correct responses... so I know the serial line is working in both >>> directions as designed. >>> >>> In BASIC, i know i need to open the connection for INPUT and OUTPUT so that >>> I can write stuff and read back the responses. The following code works to >>> send out the commands, but it gets errors no matter what I try for reading >>> in the response >>> >>> 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 >>> 20 ON COM GOSUB 100 >>> 30 COM ON >>> 40 REM Send seek to frame 1000 >>> 50 PRINT #1, "FR1000SE" >>> 60 REM when the player gets there, it responds "R" via serial >>> 70 GOTO 70 >>> 100 REM Got serial response >>> 110 A$=INPUT #1 >>> 120 PRINT "Got ", A$ >>> 130 RETURN >>> >>> I looked around in a few online T books, but couldn't really find anything >>> that could help me out on this one, and I'm feeling pretty stupid that me, >>> a web applications and embedded systems engineer can't figure out a BASIC >>> program It's been YEARS since I messed around with BASIC, and even then >>> I never really did much with opening files... >>> >>> sidenote, "ON COM GOSUB " ?!?! That's an awesome feature! I love that >>> we can have interrupt-driven serial in BASIC! >>> >>> Side-sidenote; I also don't really have a good solution yet for saving and >>> restoring the files but i'll probably just do serial port dumps or >>> somesuch. ;D I know i can buy NADS or REX or something, for file offloading >>> but this is a short-term project for Maker Faire next month, and I don't >>> have the cash to drop on fancy stuff right now. I'll probably just throw >>> together a serial-terminal based SD card shell using a spare arduino or >>> something... Although I'd gladly trade my Booster Pak which i never >>> really got working for one of those... ;D >>> >>> -s >>> >>> -- >>> Scott Lawrence >>> yor...@gmail.com >> >> >> >> -- >> Scott Lawrence >> yor...@gmail.com
Re: [M100] Serial IO from BASIC
I think the Greg is right you have to open for input and output. I havent done bidirectional serial from basic. Just assembly. Is flow control at play here? Remember the receive queue is 64 bytes. If responses are longer than that you're going to lose data unless flow control is engaged. -- John. On Mon, Oct 29, 2018, 8:27 AM Scott Lawrence wrote: > Hi all. > > So I'm working on a project; a BASIC program that talks at 4800 baud to a > LaserDisc player. The commands are sent as ascii text, with a carriage > return at the end, and responses are similarly a text string terminating in > a CR. > > On my Tandy 200, I'm able to configure the port in TERM via: >STAT 78N1DNI > > And then i can type out commands and the player works and responds with > the correct responses... so I know the serial line is working in both > directions as designed. > > In BASIC, i know i need to open the connection for INPUT and OUTPUT so > that I can write stuff and read back the responses. The following code > works to send out the commands, but it gets errors no matter what I try for > reading in the response > > 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 > 20 ON COM GOSUB 100 > 30 COM ON > 40 REM Send seek to frame 1000 > 50 PRINT #1, "FR1000SE" > 60 REM when the player gets there, it responds "R" via serial > 70 GOTO 70 > 100 REM Got serial response > 110 A$=INPUT #1 > 120 PRINT "Got ", A$ > 130 RETURN > > I looked around in a few online T books, but couldn't really find anything > that could help me out on this one, and I'm feeling pretty stupid that me, > a web applications and embedded systems engineer can't figure out a BASIC > program It's been YEARS since I messed around with BASIC, and even then > I never really did much with opening files... > > sidenote, "ON COM GOSUB " ?!?! That's an awesome feature! I love > that we can have interrupt-driven serial in BASIC! > > Side-sidenote; I also don't really have a good solution yet for saving and > restoring the files but i'll probably just do serial port dumps or > somesuch. ;D I know i can buy NADS or REX or something, for file offloading > but this is a short-term project for Maker Faire next month, and I don't > have the cash to drop on fancy stuff right now. I'll probably just throw > together a serial-terminal based SD card shell using a spare arduino or > something... Although I'd gladly trade my Booster Pak which i never > really got working for one of those... ;D > > -s > > -- > Scott Lawrence > yor...@gmail.com >
Re: [M100] Serial IO from BASIC
Here is the arduino TPDD project. I believe this is actually Brian's fork of the original code. https://github.com/TangentDelta/SD2TPDD On Mon, Oct 29, 2018 at 12:15 PM Scott Lawrence wrote: > I thought I had tried that, but it was giving me an EF error ... I'll try > again tonight. maybe i was tired when I wrote it... the contrast on my '200 > screen is pretty low. :( > > -s > > On Mon, Oct 29, 2018 at 12:10 PM Greg Swallow wrote: > >> You will have to open COM for input as well: >> >> 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 >> 15 OPEN "COM:78N1DNI" FOR INPUT AS 2 >> 20 ON COM GOSUB 100 >> 30 COM ON >> 40 REM Send seek to frame 1000 >> 50 PRINT #1, "FR1000SE" >> 60 REM when the player gets there, it responds "R" via serial >> 70 GOTO 70 >> 100 REM Got serial response >> 110 A$=INPUT #2 >> 120 PRINT "Got ", A$ >> 130 RETURN >> >> Or, something along those lines. >> >> Gpd Bless, >> >> GregS <>< >> >> >> - Original Message - >> From: "Scott Lawrence" >> To: "Model 100 Discussion" >> Sent: Monday, October 29, 2018 8:27:32 AM >> Subject: [M100] Serial IO from BASIC >> >> Hi all. >> >> So I'm working on a project; a BASIC program that talks at 4800 baud to a >> LaserDisc player. The commands are sent as ascii text, with a carriage >> return at the end, and responses are similarly a text string terminating >> in >> a CR. >> >> On my Tandy 200, I'm able to configure the port in TERM via: >>STAT 78N1DNI >> >> And then i can type out commands and the player works and responds with >> the >> correct responses... so I know the serial line is working in both >> directions as designed. >> >> In BASIC, i know i need to open the connection for INPUT and OUTPUT so >> that >> I can write stuff and read back the responses. The following code works >> to >> send out the commands, but it gets errors no matter what I try for reading >> in the response >> >> 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 >> 20 ON COM GOSUB 100 >> 30 COM ON >> 40 REM Send seek to frame 1000 >> 50 PRINT #1, "FR1000SE" >> 60 REM when the player gets there, it responds "R" via serial >> 70 GOTO 70 >> 100 REM Got serial response >> 110 A$=INPUT #1 >> 120 PRINT "Got ", A$ >> 130 RETURN >> >> I looked around in a few online T books, but couldn't really find anything >> that could help me out on this one, and I'm feeling pretty stupid that me, >> a web applications and embedded systems engineer can't figure out a BASIC >> program It's been YEARS since I messed around with BASIC, and even >> then >> I never really did much with opening files... >> >> sidenote, "ON COM GOSUB " ?!?! That's an awesome feature! I love >> that >> we can have interrupt-driven serial in BASIC! >> >> Side-sidenote; I also don't really have a good solution yet for saving and >> restoring the files but i'll probably just do serial port dumps or >> somesuch. ;D I know i can buy NADS or REX or something, for file >> offloading >> but this is a short-term project for Maker Faire next month, and I don't >> have the cash to drop on fancy stuff right now. I'll probably just throw >> together a serial-terminal based SD card shell using a spare arduino or >> something... Although I'd gladly trade my Booster Pak which i never >> really got working for one of those... ;D >> >> -s >> >> -- >> Scott Lawrence >> yor...@gmail.com >> > > > -- > Scott Lawrence > yor...@gmail.com >
Re: [M100] Serial IO from BASIC
You might also need to set MAXFILES to 2 at the beginning of your code. 5 MAXFILES = 2 -Original Message- From: M100 [mailto:m100-boun...@lists.bitchin100.com] On Behalf Of Greg Swallow Sent: Monday, October 29, 2018 12:10 PM To: m...@bitchin100.com Subject: Re: [M100] Serial IO from BASIC You will have to open COM for input as well: 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 15 OPEN "COM:78N1DNI" FOR INPUT AS 2 20 ON COM GOSUB 100 30 COM ON 40 REM Send seek to frame 1000 50 PRINT #1, "FR1000SE" 60 REM when the player gets there, it responds "R" via serial 70 GOTO 70 100 REM Got serial response 110 A$=INPUT #2 120 PRINT "Got ", A$ 130 RETURN Or, something along those lines. Gpd Bless, GregS <>< - Original Message - From: "Scott Lawrence" To: "Model 100 Discussion" Sent: Monday, October 29, 2018 8:27:32 AM Subject: [M100] Serial IO from BASIC Hi all. So I'm working on a project; a BASIC program that talks at 4800 baud to a LaserDisc player. The commands are sent as ascii text, with a carriage return at the end, and responses are similarly a text string terminating in a CR. On my Tandy 200, I'm able to configure the port in TERM via: STAT 78N1DNI And then i can type out commands and the player works and responds with the correct responses... so I know the serial line is working in both directions as designed. In BASIC, i know i need to open the connection for INPUT and OUTPUT so that I can write stuff and read back the responses. The following code works to send out the commands, but it gets errors no matter what I try for reading in the response 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 20 ON COM GOSUB 100 30 COM ON 40 REM Send seek to frame 1000 50 PRINT #1, "FR1000SE" 60 REM when the player gets there, it responds "R" via serial 70 GOTO 70 100 REM Got serial response 110 A$=INPUT #1 120 PRINT "Got ", A$ 130 RETURN I looked around in a few online T books, but couldn't really find anything that could help me out on this one, and I'm feeling pretty stupid that me, a web applications and embedded systems engineer can't figure out a BASIC program It's been YEARS since I messed around with BASIC, and even then I never really did much with opening files... sidenote, "ON COM GOSUB " ?!?! That's an awesome feature! I love that we can have interrupt-driven serial in BASIC! Side-sidenote; I also don't really have a good solution yet for saving and restoring the files but i'll probably just do serial port dumps or somesuch. ;D I know i can buy NADS or REX or something, for file offloading but this is a short-term project for Maker Faire next month, and I don't have the cash to drop on fancy stuff right now. I'll probably just throw together a serial-terminal based SD card shell using a spare arduino or something... Although I'd gladly trade my Booster Pak which i never really got working for one of those... ;D -s -- Scott Lawrence yor...@gmail.com
Re: [M100] Serial IO from BASIC
I thought I had tried that, but it was giving me an EF error ... I'll try again tonight. maybe i was tired when I wrote it... the contrast on my '200 screen is pretty low. :( -s On Mon, Oct 29, 2018 at 12:10 PM Greg Swallow wrote: > You will have to open COM for input as well: > > 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 > 15 OPEN "COM:78N1DNI" FOR INPUT AS 2 > 20 ON COM GOSUB 100 > 30 COM ON > 40 REM Send seek to frame 1000 > 50 PRINT #1, "FR1000SE" > 60 REM when the player gets there, it responds "R" via serial > 70 GOTO 70 > 100 REM Got serial response > 110 A$=INPUT #2 > 120 PRINT "Got ", A$ > 130 RETURN > > Or, something along those lines. > > Gpd Bless, > > GregS <>< > > > - Original Message - > From: "Scott Lawrence" > To: "Model 100 Discussion" > Sent: Monday, October 29, 2018 8:27:32 AM > Subject: [M100] Serial IO from BASIC > > Hi all. > > So I'm working on a project; a BASIC program that talks at 4800 baud to a > LaserDisc player. The commands are sent as ascii text, with a carriage > return at the end, and responses are similarly a text string terminating in > a CR. > > On my Tandy 200, I'm able to configure the port in TERM via: >STAT 78N1DNI > > And then i can type out commands and the player works and responds with the > correct responses... so I know the serial line is working in both > directions as designed. > > In BASIC, i know i need to open the connection for INPUT and OUTPUT so that > I can write stuff and read back the responses. The following code works to > send out the commands, but it gets errors no matter what I try for reading > in the response > > 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 > 20 ON COM GOSUB 100 > 30 COM ON > 40 REM Send seek to frame 1000 > 50 PRINT #1, "FR1000SE" > 60 REM when the player gets there, it responds "R" via serial > 70 GOTO 70 > 100 REM Got serial response > 110 A$=INPUT #1 > 120 PRINT "Got ", A$ > 130 RETURN > > I looked around in a few online T books, but couldn't really find anything > that could help me out on this one, and I'm feeling pretty stupid that me, > a web applications and embedded systems engineer can't figure out a BASIC > program It's been YEARS since I messed around with BASIC, and even then > I never really did much with opening files... > > sidenote, "ON COM GOSUB " ?!?! That's an awesome feature! I love that > we can have interrupt-driven serial in BASIC! > > Side-sidenote; I also don't really have a good solution yet for saving and > restoring the files but i'll probably just do serial port dumps or > somesuch. ;D I know i can buy NADS or REX or something, for file offloading > but this is a short-term project for Maker Faire next month, and I don't > have the cash to drop on fancy stuff right now. I'll probably just throw > together a serial-terminal based SD card shell using a spare arduino or > something... Although I'd gladly trade my Booster Pak which i never > really got working for one of those... ;D > > -s > > -- > Scott Lawrence > yor...@gmail.com > -- Scott Lawrence yor...@gmail.com
Re: [M100] Serial IO from BASIC
And i see now (because i forgot to even look this route, assuming i could do full COM io through basic, but I could always do IN/OUT calls from BASIC to just work on the serial port directly... Would OPEN "COM:" FOR APPEND AS 1 work? I can't seem to find the Arduino-based tpdd project you're referring to... I've had a Pioneer CDP-S201 player since the 90s, which is just a standard LD+CD consumer player. No serial port. However after the recent project that Kevin Savetz did, restoring the Apple IIc + Rollercoaster text/video adventure game, I got back into LD stuff... and found a $60 Pioneer CDV-S2400 industrial player with a serial port on it, and have been messing around a lot with commanding it,. etc Anyway, I thought i'd create a new version... i've been considering various host computers, from code running exclusively on an Arduino, using the LD player's on-screen text for the interface, to having a wifi-serial adapter (made using an ESP-32) on the player, and then commanding it from python, perl, emulated amiga, etc... but i've settled on a BASIC program on a Tandy 200, directly connected. On Mon, Oct 29, 2018 at 12:03 PM Brian White wrote: > You can do tpdd to a pc or mac or pi etc for free. Just need a usb-serial > adapter and serial cable. > > There is also an initial arduino implimentation that works on at least a > few boards that have sd readers and usb interfaces already built-in, if > you're up for that. Jimmy Petit wrote it and I have gotten it working on > both Teensy and Adafruit Feather boards where you don't need anything else > besides the board, an rs232-ttl module, and power. The Adafruit even has a > lipo charger/manager and standard lipo connector already built in, so > "power" means just plug in a lipo, and it's automatically charged by the > same usb port used for programming. So there is no circuit designing, just > connecting a couple legos to each other. > > I too collect laserdiscs and have a few players, though I don't think any > of mine have rs232 interfaces. > > I have played around with the rs232 interfaces on a few different video > processors. Especially a Faroudja where I don't have the remote and neither > does Logitec harmony have the codes for it. > > I have a stack of strange discs that were obviously part of some internal > teaching system at some company (I forget who it was). You can physically > play the discs in a normal player, but they are really meant to be played > in some kind of special rig that shows only 1/2 of the video and plays only > one channel of audio at a time, and jumps to specific frames, presumably in > response to user input, or I guess it could have been scripted. > > -- > bkw > > On Mon, Oct 29, 2018, 11:27 AM Scott Lawrence wrote: > >> Hi all. >> >> So I'm working on a project; a BASIC program that talks at 4800 baud to a >> LaserDisc player. The commands are sent as ascii text, with a carriage >> return at the end, and responses are similarly a text string terminating in >> a CR. >> >> On my Tandy 200, I'm able to configure the port in TERM via: >>STAT 78N1DNI >> >> And then i can type out commands and the player works and responds with >> the correct responses... so I know the serial line is working in both >> directions as designed. >> >> In BASIC, i know i need to open the connection for INPUT and OUTPUT so >> that I can write stuff and read back the responses. The following code >> works to send out the commands, but it gets errors no matter what I try for >> reading in the response >> >> 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 >> 20 ON COM GOSUB 100 >> 30 COM ON >> 40 REM Send seek to frame 1000 >> 50 PRINT #1, "FR1000SE" >> 60 REM when the player gets there, it responds "R" via serial >> 70 GOTO 70 >> 100 REM Got serial response >> 110 A$=INPUT #1 >> 120 PRINT "Got ", A$ >> 130 RETURN >> >> I looked around in a few online T books, but couldn't really find >> anything that could help me out on this one, and I'm feeling pretty stupid >> that me, a web applications and embedded systems engineer can't figure out >> a BASIC program It's been YEARS since I messed around with BASIC, and >> even then I never really did much with opening files... >> >> sidenote, "ON COM GOSUB " ?!?! That's an awesome feature! I love >> that we can have interrupt-driven serial in BASIC! >> >> Side-sidenote; I also don't really have a good solution yet for saving >> and restoring the files but i'll probably just do serial port dumps or >> somesuch. ;D I know i can buy NADS or REX or something, for file offloading >> but this is a short-term project for Maker Faire next month, and I don't >> have the cash to drop on fancy stuff right now. I'll probably just throw >> together a serial-terminal based SD card shell using a spare arduino or >> something... Although I'd gladly trade my Booster Pak which i never >> really got working for one of those... ;D >> >> -s >> >> -- >> Scott Lawrence >> yor...@gmail.com >> > -- Scott Lawrence
Re: [M100] repair services
OK, just let me know if I can help you. I’ll do my best and maybe even make a video about the repair Jeff Birt From: M100 On Behalf Of Jesus R Sent: Sunday, October 28, 2018 7:14 PM To: m100@lists.bitchin100.com Subject: [M100] repair services It was me:) In general I though it would be a good idea to have some go to people for repairs. Specifically, I was going to get a unit that had some screen issues so I could donate it to a YouTube guy for a series he is working on.
Re: [M100] Serial IO from BASIC
You will have to open COM for input as well: 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 15 OPEN "COM:78N1DNI" FOR INPUT AS 2 20 ON COM GOSUB 100 30 COM ON 40 REM Send seek to frame 1000 50 PRINT #1, "FR1000SE" 60 REM when the player gets there, it responds "R" via serial 70 GOTO 70 100 REM Got serial response 110 A$=INPUT #2 120 PRINT "Got ", A$ 130 RETURN Or, something along those lines. Gpd Bless, GregS <>< - Original Message - From: "Scott Lawrence" To: "Model 100 Discussion" Sent: Monday, October 29, 2018 8:27:32 AM Subject: [M100] Serial IO from BASIC Hi all. So I'm working on a project; a BASIC program that talks at 4800 baud to a LaserDisc player. The commands are sent as ascii text, with a carriage return at the end, and responses are similarly a text string terminating in a CR. On my Tandy 200, I'm able to configure the port in TERM via: STAT 78N1DNI And then i can type out commands and the player works and responds with the correct responses... so I know the serial line is working in both directions as designed. In BASIC, i know i need to open the connection for INPUT and OUTPUT so that I can write stuff and read back the responses. The following code works to send out the commands, but it gets errors no matter what I try for reading in the response 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 20 ON COM GOSUB 100 30 COM ON 40 REM Send seek to frame 1000 50 PRINT #1, "FR1000SE" 60 REM when the player gets there, it responds "R" via serial 70 GOTO 70 100 REM Got serial response 110 A$=INPUT #1 120 PRINT "Got ", A$ 130 RETURN I looked around in a few online T books, but couldn't really find anything that could help me out on this one, and I'm feeling pretty stupid that me, a web applications and embedded systems engineer can't figure out a BASIC program It's been YEARS since I messed around with BASIC, and even then I never really did much with opening files... sidenote, "ON COM GOSUB " ?!?! That's an awesome feature! I love that we can have interrupt-driven serial in BASIC! Side-sidenote; I also don't really have a good solution yet for saving and restoring the files but i'll probably just do serial port dumps or somesuch. ;D I know i can buy NADS or REX or something, for file offloading but this is a short-term project for Maker Faire next month, and I don't have the cash to drop on fancy stuff right now. I'll probably just throw together a serial-terminal based SD card shell using a spare arduino or something... Although I'd gladly trade my Booster Pak which i never really got working for one of those... ;D -s -- Scott Lawrence yor...@gmail.com
Re: [M100] Serial IO from BASIC
You can do tpdd to a pc or mac or pi etc for free. Just need a usb-serial adapter and serial cable. There is also an initial arduino implimentation that works on at least a few boards that have sd readers and usb interfaces already built-in, if you're up for that. Jimmy Petit wrote it and I have gotten it working on both Teensy and Adafruit Feather boards where you don't need anything else besides the board, an rs232-ttl module, and power. The Adafruit even has a lipo charger/manager and standard lipo connector already built in, so "power" means just plug in a lipo, and it's automatically charged by the same usb port used for programming. So there is no circuit designing, just connecting a couple legos to each other. I too collect laserdiscs and have a few players, though I don't think any of mine have rs232 interfaces. I have played around with the rs232 interfaces on a few different video processors. Especially a Faroudja where I don't have the remote and neither does Logitec harmony have the codes for it. I have a stack of strange discs that were obviously part of some internal teaching system at some company (I forget who it was). You can physically play the discs in a normal player, but they are really meant to be played in some kind of special rig that shows only 1/2 of the video and plays only one channel of audio at a time, and jumps to specific frames, presumably in response to user input, or I guess it could have been scripted. -- bkw On Mon, Oct 29, 2018, 11:27 AM Scott Lawrence wrote: > Hi all. > > So I'm working on a project; a BASIC program that talks at 4800 baud to a > LaserDisc player. The commands are sent as ascii text, with a carriage > return at the end, and responses are similarly a text string terminating in > a CR. > > On my Tandy 200, I'm able to configure the port in TERM via: >STAT 78N1DNI > > And then i can type out commands and the player works and responds with > the correct responses... so I know the serial line is working in both > directions as designed. > > In BASIC, i know i need to open the connection for INPUT and OUTPUT so > that I can write stuff and read back the responses. The following code > works to send out the commands, but it gets errors no matter what I try for > reading in the response > > 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 > 20 ON COM GOSUB 100 > 30 COM ON > 40 REM Send seek to frame 1000 > 50 PRINT #1, "FR1000SE" > 60 REM when the player gets there, it responds "R" via serial > 70 GOTO 70 > 100 REM Got serial response > 110 A$=INPUT #1 > 120 PRINT "Got ", A$ > 130 RETURN > > I looked around in a few online T books, but couldn't really find anything > that could help me out on this one, and I'm feeling pretty stupid that me, > a web applications and embedded systems engineer can't figure out a BASIC > program It's been YEARS since I messed around with BASIC, and even then > I never really did much with opening files... > > sidenote, "ON COM GOSUB " ?!?! That's an awesome feature! I love > that we can have interrupt-driven serial in BASIC! > > Side-sidenote; I also don't really have a good solution yet for saving and > restoring the files but i'll probably just do serial port dumps or > somesuch. ;D I know i can buy NADS or REX or something, for file offloading > but this is a short-term project for Maker Faire next month, and I don't > have the cash to drop on fancy stuff right now. I'll probably just throw > together a serial-terminal based SD card shell using a spare arduino or > something... Although I'd gladly trade my Booster Pak which i never > really got working for one of those... ;D > > -s > > -- > Scott Lawrence > yor...@gmail.com >
Re: [M100] Serial IO from BASIC
Since you've opened the serial port for OUTPUT, I'm not sure you can read from it. There's no (documented) mode for R/W to a file or serial port in BASIC (that I can find). You might have to do a PRINT, CLOSE, OPEN, INPUT dance. :-/ For saving files, if you have an android device, look into mComm. It's a TPDD emulator for your phone. I use it all the time. -Josh On Mon, Oct 29, 2018 at 11:27 AM Scott Lawrence wrote: > > Hi all. > > So I'm working on a project; a BASIC program that talks at 4800 baud to a > LaserDisc player. The commands are sent as ascii text, with a carriage > return at the end, and responses are similarly a text string terminating in a > CR. > > On my Tandy 200, I'm able to configure the port in TERM via: >STAT 78N1DNI > > And then i can type out commands and the player works and responds with the > correct responses... so I know the serial line is working in both directions > as designed. > > In BASIC, i know i need to open the connection for INPUT and OUTPUT so that I > can write stuff and read back the responses. The following code works to > send out the commands, but it gets errors no matter what I try for reading in > the response > > 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 > 20 ON COM GOSUB 100 > 30 COM ON > 40 REM Send seek to frame 1000 > 50 PRINT #1, "FR1000SE" > 60 REM when the player gets there, it responds "R" via serial > 70 GOTO 70 > 100 REM Got serial response > 110 A$=INPUT #1 > 120 PRINT "Got ", A$ > 130 RETURN > > I looked around in a few online T books, but couldn't really find anything > that could help me out on this one, and I'm feeling pretty stupid that me, a > web applications and embedded systems engineer can't figure out a BASIC > program It's been YEARS since I messed around with BASIC, and even then I > never really did much with opening files... > > sidenote, "ON COM GOSUB " ?!?! That's an awesome feature! I love that > we can have interrupt-driven serial in BASIC! > > Side-sidenote; I also don't really have a good solution yet for saving and > restoring the files but i'll probably just do serial port dumps or somesuch. > ;D I know i can buy NADS or REX or something, for file offloading but this is > a short-term project for Maker Faire next month, and I don't have the cash to > drop on fancy stuff right now. I'll probably just throw together a > serial-terminal based SD card shell using a spare arduino or something... > Although I'd gladly trade my Booster Pak which i never really got working for > one of those... ;D > > -s > > -- > Scott Lawrence > yor...@gmail.com
[M100] Serial IO from BASIC
Hi all. So I'm working on a project; a BASIC program that talks at 4800 baud to a LaserDisc player. The commands are sent as ascii text, with a carriage return at the end, and responses are similarly a text string terminating in a CR. On my Tandy 200, I'm able to configure the port in TERM via: STAT 78N1DNI And then i can type out commands and the player works and responds with the correct responses... so I know the serial line is working in both directions as designed. In BASIC, i know i need to open the connection for INPUT and OUTPUT so that I can write stuff and read back the responses. The following code works to send out the commands, but it gets errors no matter what I try for reading in the response 10 OPEN "COM:78N1DNI" FOR OUTPUT AS 1 20 ON COM GOSUB 100 30 COM ON 40 REM Send seek to frame 1000 50 PRINT #1, "FR1000SE" 60 REM when the player gets there, it responds "R" via serial 70 GOTO 70 100 REM Got serial response 110 A$=INPUT #1 120 PRINT "Got ", A$ 130 RETURN I looked around in a few online T books, but couldn't really find anything that could help me out on this one, and I'm feeling pretty stupid that me, a web applications and embedded systems engineer can't figure out a BASIC program It's been YEARS since I messed around with BASIC, and even then I never really did much with opening files... sidenote, "ON COM GOSUB " ?!?! That's an awesome feature! I love that we can have interrupt-driven serial in BASIC! Side-sidenote; I also don't really have a good solution yet for saving and restoring the files but i'll probably just do serial port dumps or somesuch. ;D I know i can buy NADS or REX or something, for file offloading but this is a short-term project for Maker Faire next month, and I don't have the cash to drop on fancy stuff right now. I'll probably just throw together a serial-terminal based SD card shell using a spare arduino or something... Although I'd gladly trade my Booster Pak which i never really got working for one of those... ;D -s -- Scott Lawrence yor...@gmail.com
Re: [M100] NEC 8201 rechargeable battery packs and BERG jacks
I purchased them through eBay. But I went back this morning to see if the seller was still selling them and they are no longer listed. They are 480 ma cells so two banks gives 960ma. There are other sellers. Most from China but you are looking 1/3AA batteries with tabs. Sometimes you can find them stacked as 3 in one like I did and that saves some time. Kurt On Sun, Oct 28, 2018, at 4:53 PM, Anthony Coghlan wrote: > Thanks, everyone. Kurt, that looks really good. I’m not familiar > with those smaller batteries. How or where do you get them?> > Is there any simple mod (such as the added resistor near the batteries > for the M100) that allows the 8201 to charge rechargeable batteries in > a standard battery pack when plugged in?> > Best wishes, > Anthony > >
Re: [M100] Tandy 200 azerty rom
Hello Joel and all other M100/102/T200 enthusiasts,. Here what I figure out how the thing seems to work. 1. RESRAM reserves a block of 6 pages byte each and sets LOMEM address to 0xA600 2. INSTAL copies a KB/PRN handler to 0xA010..0xA2DA ( until line 550 DATA ..,201) and the KB map from 0xA2DB to 0xA358, 2 bytes per key scheme OLD key - NEW key 3. PRN specific code is loaded to 0xA3B0, pending on selection I hope the above brings a little light in the "dark" Regards Georg from Germany == Ihre Nachricht == von : Joel BARBE gesendet : Samstag, 27. Oktober 2018, 23:13 an : georg.kae...@gk-engineering-services.de Betreff : [M100] Tandy 200 azerty rom __ Originalnachricht ___ Hello Georg, Thanks you again for the details provided I’m trying to find on the files you have send the part of the data related to the keyboard map. I suppose the keyboard map is on install.ba file. I’m struggling to find the part of the mapping. The character code table from service manual didn’t help on it. I have tried to change some data on VistualT, But I’m unable to find any logic on it right now. Do you have any idea wich DATA lines are related to the keyboard ? If I can find a couple of key mapped on it I should be able to decipher it. 5 AD=40976 7 CLS:PRINT:PRINT:PRINT:PRINT:PRINT" DRIVER INSTALLATION, PLEASE WAIT." 8 PRINT :PRINT " Version 01.00.00" 10 READ A 20 IF A= THEN GOTO 80 30 POKE AD,A 40 AD=AD+1 50 GOTO 10 80 CLS:PRINT" *":PRINT" * LOADING OF THE PRINTER DRIVER *":PRINT" *" 90 PRINT:PRINT:PRINT" WHICH PRINTER DO YOU HAVE :" 100 PRINT:PRINT:PRINT" 1 = DAISY WHEEL II":PRINT" 2 = DAISY WHEEL IIB, 410, 510":PRINT" 3 = DOT MATRIX PRINTER": PRINT" 4 = NO PRINTER" 120 PRINT:PRINT:INPUT"YOUR CHOICE AND THEN :";A 130 IF A=1 THEN 140 133 IF A=2 THEN 150 136 IF A=3 THEN 160 137 IF A=4 THEN 160 138 GOTO 80 140 CLOAD"DWPOLD",R 150 CLOAD"DWPNEW",R 160 CALL 40976 170 NEW 200 DATA 243, 33, 194, 238, 126, 254, 201, 194, 37, 160, 62, 195, 50, 194, 238, 33, 162, 161, 195, 49 210 DATA 160, 35, 17, 194, 238, 123, 190, 202, 52, 160, 33, 106, 161, 34, 195, 238, 175, 50, 213, 161 220 DATA 62, 49, 6, 208, 205, 96, 160, 6, 212, 62, 50, 205, 96, 160, 58, 213, 160, 254, 50, 194 230 DATA 86, 160, 62, 85, 50, 212, 160, 195, 33, 161, 6, 216, 62, 51, 205, 96, 160, 195, 33, 161 240 DATA 50, 210, 160, 120, 50, 211, 160, 33, 0, 160, 205, 177, 155, 122, 254, 6, 220, 116, 160, 201 250 DATA 33, 255, 165, 58, 211, 160, 71, 22, 170, 197, 205, 176, 155, 193, 22, 0, 33, 255, 165, 205 260 DATA 177, 155, 122, 254, 170, 202, 165, 160, 33, 0, 161, 205, 197, 160, 58, 210, 160, 50, 213, 160 270 DATA 205, 60, 80, 33, 18, 161, 195, 197, 160, 33, 214, 160, 62, 85, 50, 212, 160, 126, 35, 254 280 DATA 36, 202, 188, 160, 229, 205, 60, 80, 225, 195, 173, 160, 58, 210, 160, 205, 60, 80, 33, 230 290 DATA 160, 126, 35, 254, 36, 200, 229, 205, 60, 80, 225, 195, 197, 160, 0, 0, 0, 0, 69, 82 300 DATA 82, 79, 82, 32, 58, 32, 66, 65, 78, 75, 32, 35, 32, 36, 32, 78, 79, 84, 32, 67 310 DATA 79, 82, 82, 69, 67, 84, 76, 89, 32, 82, 69, 83, 69, 82, 86, 69, 68, 13, 10, 36 320 DATA 87, 65, 82, 78, 73, 78, 71, 32, 58, 32, 66, 65, 78, 75, 32, 35, 32, 36, 32, 78 330 DATA 79, 84, 32, 80, 82, 69, 83, 69, 78, 84, 13, 10, 36, 58, 212, 160, 192, 58, 213, 160 340 DATA 254, 50, 200, 33, 0, 160, 6, 212, 205, 66, 161, 58, 213, 160, 254, 51, 200, 33, 0, 160 350 DATA 6, 216, 205, 66, 161, 201, 86, 229, 197, 205, 176, 155, 193, 225, 35, 124, 254, 165, 194, 66 360 DATA 161, 125, 254, 254, 194, 66, 161, 33, 194, 238, 86, 229, 197, 205, 176, 155, 193, 225, 35, 125 370 DATA 254, 197, 194, 90, 161, 201, 245, 34, 207, 161, 225, 34, 209, 161, 235, 34, 211, 161, 33, 0 380 DATA 0, 57, 17, 128, 255, 223, 218, 150, 161, 17, 192, 255, 223, 210, 150, 161, 225, 42, 211, 161 390 DATA 235, 42, 209, 161, 229, 42, 207, 161, 241, 201, 42, 211, 161, 235, 42, 209, 161, 229, 42, 207 400 DATA 161, 241, 51, 51, 229, 213, 197, 245, 33, 219, 161, 229, 229, 229, 229, 229, 58, 213, 161, 183 410 DATA 250, 194, 161, 58, 30, 253, 246, 128, 50, 213, 161, 195, 189, 28, 225, 225, 225, 225, 225, 230 420 DATA 127, 50, 213, 161, 195, 189, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243 430 DATA 62, 13, 48, 251, 58, 213, 161, 230, 127, 50, 213, 161, 71, 58, 30, 253, 79, 144, 202, 181 440 DATA 138, 33, 29, 253, 50, 214, 161, 121, 7, 95, 22, 0, 25, 126, 229, 197, 205, 97, 162, 193 450 DATA 225, 119, 58, 214, 161, 61, 202, 181, 138, 13, 195, 241, 161, 62, 0, 50, 215, 161, 34, 216 460 DATA 161, 33, 31, 163, 241, 245, 190, 35, 202, 49, 162, 126, 35, 254, 0, 194, 28, 162, 42, 216 470 DATA 161, 241, 195, 129, 162, 126, 42, 216, 161, 71, 241, 120, 201, 62, 0, 50, 215, 161, 34, 216 480 DATA 161, 33, 45, 163, 195, 28, 162, 62, 241, 50, 215, 161, 62, 0, 50,