I think I found wich pins on an early R.Pi (26 pins GPIO AFAIK) make the serial 
port.

What you really would need is a Desklink or LaddieAlpha that can be shut down 
from the Model T. If you could do that, pulling the plug on the R.Pi probably 
wouldn't cause a problem, because you would not have an active application in 
memory any more, writing to the FS. Corruption would be unlikely. I hope. If 
not, I'll have to build a shutdown-button.


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



-----Original Message-----
From: M100 [mailto:m100-boun...@lists.bitchin100.com] On Behalf Of Jonathan Yuen
Sent: zaterdag 2 januari 2016 17:25
To: Model 100 Discussion
Subject: Re: [M100] Raspberry Pi as TPDD

Hello,

There is a unix version of desklink (dl.c) and it compiles just fine under 
raspbian.  I've been using it on the GPIO serial port on the pi with a level 
converter (a max232 chip) connected to a model 100.  It doesn't do hardware 
handshaking but xon-xoff works at 9600 baud.  The good USB-serial adapters 
(i.e. with the right voltage output and hardware handshaking) are rather pricey 
in Sweden, almost as much as the Pi itself.  The cheaper ones only give ttl but 
I use one to communicate with the pi, via the GPIO and minicom since my usual 
portable doesn't even have a real serial port.

We have another headless pi with a 3G Huawei modem and a DLINK EWA-140 wifi 
stick, both connected via a powered USB hub.  When powered on, the modem 
connects, there is a bunch of NAT translation and the thing becomes a 
wifi-hotspot, connected to the Internet via the modem.  It's something we use 
when we're sailing or at the summer house.  We just turn it off by unplugging 
the thing and we haven't had any problems yet and it's run for over two years 
like that.....

Your mileage may vary.....

jonathan.y...@mykopat.slu.se
________________________________________
Från: M100 [m100-boun...@lists.bitchin100.com] för Jan-80 [ja...@scarlet.be]
Skickat: den 2 januari 2016 15:56
Till: Model 100 Discussion
Ämne: Re: [M100] Raspberry Pi as TPDD

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 
<ja...@scarlet.be<mailto:ja...@scarlet.be>> 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.

Reply via email to