Hello,

I tried just running the M100 as a console on the built-in serial port on a B+ 
raspberry pi.  With a simple converter from Sparkfun, the pi could recognize 
what was sent from the pi but the signals from the pi wouldn't drive the m100.  
I then invested in a level shifter with a max232.

I was running the console of the pi via the term program and I could then start 
dl from the m100.  Obviously I couldn't exit the program from the m100 but was 
thinking of using the linux 'timeout' command to run dl for a fixed time, say 5 
or 10 minutes.  After dl exits, then I could command the pi from the m100 
again, and shut it down 'properly' or do whatever.....  I should mention that I 
generally run the pi via the serial port on the gpio port from a portable 
computer (and a cheap serial-usb adapter (ttl)), since I find it more 
convenient than yet another keyboard and trying to find a suitable screen.  You 
can even power the pi it you connect the +5 v connector on the GPIO port but 
obviously this won't work when you connect to the m100.

Alas, these have just been ideas and I haven't had the time to try this out.  
There are also baud rate issues.  You probably want everything to run at 9600 
baud (that's what works for using term as the pi console and xon/xoff works ok) 
but dl defaults to 19200.   Just need to change it and recompile, and configure 
tiny or whatever to use 9600.

If LaddieAlpha will return control to the serial port that would be yet another 
alternative.  Wasn't this added as a feature quite recently?  I can try to test 
some of this out this weekend but I don't want to promise anything at this 
point. 

Jonathan

[email protected]
________________________________________
Från: M100 [[email protected]] för Stephen Adolph 
[[email protected]]
Skickat: den 5 januari 2016 16:13
Till: Model 100 Discussion
Ämne: Re: [M100] Raspberry Pi as TPDD

yah, that's exactly what you'd want to do - set up serial comms on that sort of 
hardware hack.

you don't need flow control for TPDD protocol.. it is self limiting since it is 
hand-shaking for every "packet" and each packet is small enough to be managed 
by the tiny M100 buffer.

Steve

On Tue, Jan 5, 2016 at 9:59 AM, VANDEN BOSSCHE JAN 
<[email protected]<mailto:[email protected]>> wrote:
> But, you certainly can't plug the TTL signal into the M100.

Bummer. It's never simple enough. Or …

> So, to adapt the M100 to a TTL signal , you need to clamp at 0V/5V, and 
> invert.

Can't that be done ?

Anyway, I'll probably need something linke this ? 
http://pi4j.com/example/serial.html

Actually, that expands the possibilities. I could use a Model A, and have one 
USB-port to spare.

Can LaddieAlpha be customised to write the files to a USB-flashdrive ? That 
way, you turn the R.Pi off, and remove the USB-stick for file transfer.


    |\      _,,,--,,_
   / ,`.-'`'   ._  \-;;,
  |,4-  ) )_    .;.(  `'-'
<---''(_/._)--'(_\_)
Jan Vanden Bossche @ work




From: M100 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Stephen Adolph
Sent: dinsdag 5 januari 2016 15:48

To: Model 100 Discussion
Subject: Re: [M100] Raspberry Pi as TPDD

Hi Jan,
the M100 RS-232 port is not a TTL port, it is kind-of a low voltage hybrid.  It 
doesn't provide true full swing RS-232.
* M100 is inverted like standard RS-232
* the "high" voltage level is >> 5V
* the "low" voltage is negative, but not by much.  close to 0V.
(by memory-- I'll have to have a schematic in front of me to confirm this....)
A normal RS-232 signal is balanced, meaning it has  a full swing ex. +10V/-10V.
So, to adapt the M100 to a TTL signal , you need to clamp at 0V/5V, and invert.
But, you certainly can't plug the TTL signal into the M100.
..Steve

On Tue, Jan 5, 2016 at 9:40 AM, VANDEN BOSSCHE JAN 
<[email protected]<mailto:[email protected]>> wrote:
John,

> The pi already has a serial port it's just at TTL levels instead of rs232

Wasn't one of the criticisms of the Model T that its serial port was TTL-level 
(i.e. max 5 Volt) too ?
If that is correct - and please do correct me if I'm wrong - then what's the 
problem ?

    |\      _,,,--,,_
   / ,`.-'`'   ._  \-;;,
  |,4-  ) )_    .;.(  `'-'
<---''(_/._)--'(_\_)
Jan Vanden Bossche @ work




From: M100 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of John R. Hogerhuis
Sent: zaterdag 2 januari 2016 16:53
To: Model 100 Discussion
Subject: Re: [M100] Raspberry Pi as TPDD

Usually the first adapter shows up as /dev/ttyUSB0

If you have multiple you can have issues with which adapter is which name.  
There's a way to create udev rules so the same name is always bound to the same 
device.

Power cycles: I suggest getting ups pico board or just always keeping it 
plugged in to something, could be a battery.

As to the board: not really smaller no. The pi already has a serial port it's 
just at TTL levels instead of rs232. The board I've used is just a max232 chip 
to do the level conversion. I guess if you built the chip into the cable it 
could be smaller. Otherwise you're adding a daughter board. I prefer the USB 
serial devices unless you're out if USB ports.

-- John.

On Saturday, January 2, 2016, Jan-80 
<[email protected]<mailto:[email protected]>> wrote:

Hi,

2. LaddieAlpha on Mono were the the names I was looking for. If it works, I 
don't care about name or environment. I was just pondering aternatives.

4. /dev/ttyS0 is the first USB-port, then? Or is it the USB-port + a 
USB-2-serial adapter?

6. How do you manage power cycles?

5. If you build your own serial port, isn't that smaller?

-- Greetings from the TyRannoSaurus Jan-80



On Fri, 1 Jan 2016 17:22:11 -0500, Stephen Adolph wrote:
HI Jan,
I am currently running a raspberry pi with laddieAlpha, and it is working well.
Why do you want to use Desklink?
In my case, Laddiealpha is listening to a TCP port however, not serial.
Certainly it could use the /dev/ttyS0 port if you wanted to.
John H is the expert here.
..Steve

On Fri, Jan 1, 2016 at 10:46 AM, Jan-80 
<[email protected]<mailto:[email protected]>> wrote:

Hello,

A happy New Year 2016 to all of you.

I would like to use my old Raspberry Pi - an early Model B with only 256 MB RAM 
- as a TPDD replacement. It would also allow anyone with any type of old 
Raspberry Pi to do so. I am sure that, with the presentation of the Pi2, a lot 
of hobbyists are going to sell their first-generation Pi's and they can be 
picked up really cheap.

Software:  there have been 2 ways reported on this list on getting a TPDD 
emulator to work on the R.Pi. A third one was never mentioned, but might be 
possible also. Correct me if I'm wrong
1. re-compiling Desklink from the original source for the Raspbian environment.
2. running the Windows.NET based version of Desklink in the .NET-compatible 
environment of the R.Pi. (sorry, forgot the name)
3. is it possible to run a Desklink in DOS-emulated environment? (Just an idea 
of mine...)

Hardware: come to think of it, some hardware stuff must also be considered.
4. Serial link simple: a USB-to-serial adapter does the trick. I have one, but 
don't know if it will work. How do I test this?
5. Isn't it possible to use the I/O pins from the R.Pi as a serial port? Does 
the TPDD need the control lines?
6. If you use the R.Pi as a TPDD, you're likely to turn it off an on as one. 
But the R.Pi is a computer, and you could ruin the filesystem by doing so. 
Isn't it better to use a hardware on/off button instead of simply pulling the 
plug? Like this one:
http://www.raspberry-pi-geek.com/Archive/2013/01/Adding-an-On-Off-switch-to-your-Raspberry-Pi


[http://www.vivaqua.be/facebook.png] Rejoignez-nous sur Facebook - Volg ons op 
Facebook

DISCLAIMER

Pensez à l'environnement, n'imprimez cette page et ses annexes que si c'est 
nécessaire.

Ce message électronique, y compris ses annexes, est confidentiel et réservé à 
l’attention de son destinataire.
Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d’en 
informer l’expéditeur. Toute divulgation, copie ou utilisation de ce mail est 
dans ce cas interdite.
La sécurité et l'exactitude des transmissions de messages électroniques ne 
peuvent être garanties.

Denk aan het milieu; druk deze pagina en de bijlagen alleen af als het nodig is.

Dit e-mailbericht (inclusief zijn bijlagen) is vertrouwelijk en is uitsluitend 
bestemd voor de geadresseerde.
Als dit bericht niet voor u bestemd is, wordt u verzocht het te wissen en de 
afzender te informeren. Het is in dat geval niet toegestaan dit bericht te 
verspreiden, te kopiëren of te gebruiken.
We kunnen niet garanderen dat de gegevensoverdracht via het internet veilig en 
nauwkeurig is.



________________________________
DISCLAIMER Pensez à l'environnement, n'imprimez cette page et ses annexes que 
si c'est nécessaire. Ce message électronique, y compris ses annexes, est 
confidentiel et réservé à l’attention de son destinataire. Si vous n'êtes pas 
le destinataire de ce message, merci de le détruire et d’en informer 
l’expéditeur. Toute divulgation, copie ou utilisation de ce mail est dans ce 
cas interdite. La sécurité et l'exactitude des transmissions de messages 
électroniques ne peuvent être garanties. Denk aan het milieu; druk deze pagina 
en de bijlagen alleen af als het nodig is. Dit e-mailbericht (inclusief zijn 
bijlagen) is vertrouwelijk en is uitsluitend bestemd voor de geadresseerde. Als 
dit bericht niet voor u bestemd is, wordt u verzocht het te wissen en de 
afzender te informeren. Het is in dat geval niet toegestaan dit bericht te 
verspreiden, te kopiëren of te gebruiken. We kunnen niet garanderen dat de 
gegevensoverdracht via het internet veilig en nauwkeurig is.
________________________________

Reply via email to