Thanks for the help!IIe.
The PI is being powered by a 5V 1A transformer.
It is connected via a USB to serial adapter to the serial port of a Apple
Today I had another stop of tcpser. So it ran now for 8 days withoutproblems.
I don't know why it stopped.
Has anyone an explanation or a hint what I can do?
Here is a pic of the monitor when tcpser stopped:
https://s22.postimg.org/ar4ayh2zl/PI_Hayes.jpg
Now, create a file that will be your script. At the bash:...
type: cd
type: startSerial
On Tue, 20 Jun 2017 00:45:02 -0700 (PDT), 6502enhanced@gmail.com wrote:problems.
Today I had another stop of tcpser. So it ran now for 8 days without
I don't know why it stopped.
Has anyone an explanation or a hint what I can do?
Here is a pic of the monitor when tcpser stopped:
https://s22.postimg.org/ar4ayh2zl/PI_Hayes.jpg
You might be able to bypass tcpser and most of your setup.
I just came around info and a video by LGR from YouTube [1] about the
WIFI232 <http://hackaday.com/2017/06/17/bbsing-with-the-esp8266/>. Which
at one end has an RS-232 adapter you plug into any of your old hardware
(C64, Amiga, Apple ][, Macintosh, RadioShack, Atari, many others from
back of the day. It claims to be a Hayes compatible modem. Then sets up a serial connection and call a terminal program on the computer (I notice
there is COMMSTAR for many 8bit computers available) and issue AT
commands. Not only "ATD123456" to dial. Also to connect to your WIFI. I
think it was something like "ATESSIDmywifi_source". There is a PDF user manual in the web some where.
[1] <https://www.youtube.com/watch?v=fsS0E4G310Y>
--
Andreas
You know you are a redneck if
you ever lost a loved one to kudzu.
If the resulting list displays that it is still running, then kill it
by its PID. Don't confuse the "grep tcpser" in the list as the tcpser command, itself.
On Wednesday, June 21, 2017 at 2:40:43 PM UTC-6, Andreas Kohlbach wrote:C128 wifi that someone made, too:
On Tue, 20 Jun 2017 00:45:02 -0700 (PDT), 6502enhanced@gmail.com wrote:
Today I had another stop of tcpser. So it ran now for 8 days without problems.
I don't know why it stopped.
Has anyone an explanation or a hint what I can do?
Here is a pic of the monitor when tcpser stopped:
https://s22.postimg.org/ar4ayh2zl/PI_Hayes.jpg
You might be able to bypass tcpser and most of your setup.
I just came around info and a video by LGR from YouTube [1] about the
WIFI232 <http://hackaday.com/2017/06/17/bbsing-with-the-esp8266/>. Which
at one end has an RS-232 adapter you plug into any of your old hardware
(C64, Amiga, Apple ][, Macintosh, RadioShack, Atari, many others from
back of the day. It claims to be a Hayes compatible modem. Then sets up a
serial connection and call a terminal program on the computer (I notice
there is COMMSTAR for many 8bit computers available) and issue AT
commands. Not only "ATD123456" to dial. Also to connect to your WIFI. I
think it was something like "ATESSIDmywifi_source". There is a PDF user
manual in the web some where.
[1] <https://www.youtube.com/watch?v=fsS0E4G310Y>
There's a number of those devices and they rock :) There's a new internal
https://www.reddit.com/r/c128/comments/6gb28v/internal_swiftlink_compatible_wifi_modem/
On 2017 Jun 21 11:50:38, you wrote to 6502en...@gmail.com:
If the resulting list displays that it is still running, then kill it
by its PID. Don't confuse the "grep tcpser" in the list as the tcpser command, itself.
a little trick to avoid seeing the "grep" line in the output...
ps -ef | grep [t]cpser
Hi,....
Thanks a lot for all your help!
rCorCorCorCorCorCorCo
Where do I have to put the mentioned:
a little trick to avoid seeing the "grep" line in the output...
-a ps -ef | grep [t]cpser
in?
Thanks!
Or just use "pgrep" which saves you the pipe and the tricks.
Thanks for your help!type: ps x |grep -v grep |grep -c "tcpser" ... Especially I made sure that I set the startSerial file to execute with chmod +x ...
Well, I did all 4 steps, but so far I get always the 0 and not the 1 when I
I would like to delete the file in script with:
***************
#!/bin/sh
RESULT=`ps x |grep -v grep |grep -c "tcpser"`
if [ $RESULT = 0 ]; then
tcpser -s 2400 -d /dev/ttyUSB0 &
***************
because I have an empty first row above that - maybe here is the mistake?
With what order can I delete the script?
----------------
Finally, if the script is working, bypass it and manually type: tcpser -s2400 -d /dev/ttyUSB0 &
at the bash and then issue a "ps -A" the tcpser should be in the list nearthe bottom. If it is, then issue the ps -x | grep -v grep |grep -c "tcpser" command manually to see the result. That should tell you if the tcpser command
I don't know if the script is working. I named it startSerial, made everything as you said - but if I type "./startSerial" I get the result "unknown error in line 8" ...?
I saw tcpser down in the list.everything as you said - but if I type "./startSerial" I get the result "unknown error in line 8" ...?
I got the 1.
All is running now.
I don't know if the script is working. I named it startSerial, made
Now I will see if tcpser stops again or if it is running well ...
Thanks a lot for all of your help!
:-) ... I know ... here are the pics:
(correct translation is: Syntax Error: unexpected end of file
Thanks a lot!then tcpser started. So I hope that CRON Table is now also working and will start the startSerial script if tcpser stops again.
It seems that all is now working!
I've put the "fi" in and then at the prompt I typed "./startSerial" - and
Am Montag, 26. Juni 2017 20:45:48 UTC+2 schrieb Dropnine:
OK, I've done the following:
- wrote "tcpser -s 2400 -d /dev/ttyUSB0 -p 6502 -ts &"
- then ps -A
- and ps -x | grep -v grep |grep -c "tcpser"
pgrep tcpser || tcpser -s 2400 -d /dev/ttyUSB0 -p 6502 -ts &
which basically means,
"if tcpser is not found among the list of running programs, run it again"
Tcpser was also not started by CRON after a few minutes ...not
Then I typed: ./startSerial
Tcpser started. At the moment it is running, but I don't know why it is
startet by CRON automatically, because the script seems to work good...?
Tcpser was also not started by CRON after a few minutes ...
Then I typed: ./startSerial
Tcpser started. At the moment it is running, but I don't know whyit is not
startet by CRON automatically, because the script seems to workgood...?
where, exactly, is your script?
what, exactly, is your cron entry?
"Where, exactly, is your script?"described above, nano offers just to save it with "<CTRL-X>".
- well, I don't know. How can I find that out?
"What, exactly, is your cron entry?"
- At the bash I typed: "crontab -e"
- then I selected "nano" as editor
- then I typed into the last line:" */1 * * * * /home/pi/startSerial"
- then I pressed:"<CTRL-X>"
- then "Y"
- then "Return"
--------------------
"so giving full path to stuff in /usr/local or
placed otherwise in "strange" locations (basically anything except /bin,/sbin,/usr/bin,/usr/sbin) is more or less a must for cron jobs."
You mean it should be saved in /usr/local ? How can I save it there? As
Thanks for your help!
OK - the problem is not solved so far ...
Tcpser run now for a few days well.
Then it stopped again.
I typed:ps x |grep -v grep |grep -c "tcpser"
The result was: 0
Tcpser was also not started by CRON after a few minutes ...
Then I typed: ./startSerial
Tcpser started. At the moment it is running, but I don't know why it
is not startet by CRON automatically, because the script seems to work good...?
I've struggled to find much in the way of solid documentation on how
to get tcpser to autostart on the Raspberry Pi.
Anyone have a quick easy solution? I blame my 30 years of Microsoft on
my Linux ignorance but I'm evolving :-)
Hi all,
I've struggled to find much in the way of solid documentation on how
to get tcpser to autostart on the Raspberry Pi. Anyone have a quick
easy solution? I blame my 30 years of Microsoft on my Linux ignorance
but I'm evolving :-)
Trying to resurrect (rebuild) a C46 BBS. No problems getting tcpser
to work from ssh or local terminal, just can't get any of the
examples I've read about to work on the Pi.
TIA!
Jim..
--- SoupGate-Win32 v1.05 * Origin: Agency HUB, Dunedin - New Zealand
| Fido<>Usenet Gateway (3:770/3)
On Thursday, March 23, 2017 at 7:00:43 PM UTC-6, Jimmy Mac wrote:tcpser to autostart on the Raspberry Pi. Anyone have a quick easy solution?
Hi all,
I've struggled to find much in the way of solid documentation on how to get
Hey there. I just did this for an old Atari STe I fixed and wanted to BBS.I have an old Raspberry Pi Model B and a MAX232 serial 9pin for the PI (it's about $1.50 for the MAX232 from ebay--I have a number of these already which is
To turn the GPIO header for serial:No to the login shell over serial. Then yes to enabling the serial port hardware. exit out of the tool and back to the bash.
Type at the bash: sudo raspi-config
Selected option 5 from the menu, then selected Serial from that menu. Choose
Physical connections from the Max232 to the PI GPIO:executable. At the bash:
MAX232 Pi GPOI
Vcc 3.3V pin 2
GND GND pin 6
Tx Rx pin 10
Rx Tx pin 8
Setting up to automate tcpser on boot:
Create a text file (I just put it in the home directory) and make it
type: cd <Enter>19200 baud rate to whatever you need it to be.
type: vi serialBridge <Enter>
type: i
type: #!/bin/sh <Enter>
type: tcpser -s 19200 -d /dev/ttyAMA0 &
type <Esc>:wq <Enter>
you're now out of the editor and back at the bash.
type: chmod +x serialBridge
that will make the file executable (like a batch file in DOS). Change the
You need to create another text file that instructs LINUX a service isavailable. To do that, we create another text file in a very specific spot and then issue some commands to tell LINUX to use it when it's booting. to do that:
type: vi /lib/systemd/system/serialBridge.service <Enter>(level 3). The second command will tell LINUX to start the service right now.
type: i
copy and paste everything between the # marks into the editor:
####################
[Unit]
Description=Serial to TCP-IP Bridge
After=Multi-User.target
[Install]
WantedBy=Multi-user.target
[Service]
ExecStart=/home/pi/serialBridge
type=forked
#####################
You're still in the editor:
type: <Esc>:wq <Enter>
You will now be out of the editor and at the bash prompt.
type: sudo systemctl enable serialBridge.service
type: sudo systemctl start serialBridge.service
type: sudo systemctl status serialBridge.service
The first command will instruct LINUX the service should be enabled at boot
Run a terminal, turn flow control off, set the baud rate proper and "ATDTdnsName:port" in the term and you're good to go. Enjoy :)
*If you have any problems, please let me know and I'll be glad to help. Ihave the pictures and such on my facebook page blogging the project I just did.
One thing I'd like to note is that I thought tcpser, by default, used RTS/CTSflow control. I had to disable the flow control on the Atari before any data came through... I'm not sure if this is due to the buggy serial port or just something I have
Cheers,
Carl
Hi all,tcpser to autostart on the Raspberry Pi. Anyone have a quick easy solution?
I've struggled to find much in the way of solid documentation on how to get
On Thursday, March 23, 2017 at 7:00:43 PM UTC-6, Jimmy Mac wrote:tcpser to autostart on the Raspberry Pi. Anyone have a quick easy solution?
Hi all,
I've struggled to find much in the way of solid documentation on how to get
Hey there. I just did this for an old Atari STe I fixed and wanted to BBS.I have an old Raspberry Pi Model B and a MAX232 serial 9pin for the PI (it's about $1.50 for the MAX232 from ebay--I have a number of these already which is
To turn the GPIO header for serial:No to the login shell over serial. Then yes to enabling the serial port hardware. exit out of the tool and back to the bash.
Type at the bash: sudo raspi-config
Selected option 5 from the menu, then selected Serial from that menu. Choose
Physical connections from the Max232 to the PI GPIO:executable. At the bash:
MAX232 Pi GPOI
Vcc 3.3V pin 2
GND GND pin 6
Tx Rx pin 10
Rx Tx pin 8
Setting up to automate tcpser on boot:
Create a text file (I just put it in the home directory) and make it
type: cd <Enter>19200 baud rate to whatever you need it to be.
type: vi serialBridge <Enter>
type: i
type: #!/bin/sh <Enter>
type: tcpser -s 19200 -d /dev/ttyAMA0 &
type <Esc>:wq <Enter>
you're now out of the editor and back at the bash.
type: chmod +x serialBridge
that will make the file executable (like a batch file in DOS). Change the
You need to create another text file that instructs LINUX a service isavailable. To do that, we create another text file in a very specific spot and then issue some commands to tell LINUX to use it when it's booting. to do that:
type: vi /lib/systemd/system/serialBridge.service <Enter>(level 3). The second command will tell LINUX to start the service right now.
type: i
copy and paste everything between the # marks into the editor:
####################
[Unit]
Description=Serial to TCP-IP Bridge
After=Multi-User.target
[Install]
WantedBy=Multi-user.target
[Service]
ExecStart=/home/pi/serialBridge
type=forked
#####################
You're still in the editor:
type: <Esc>:wq <Enter>
You will now be out of the editor and at the bash prompt.
type: sudo systemctl enable serialBridge.service
type: sudo systemctl start serialBridge.service
type: sudo systemctl status serialBridge.service
The first command will instruct LINUX the service should be enabled at boot
Run a terminal, turn flow control off, set the baud rate proper and "ATDTdnsName:port" in the term and you're good to go. Enjoy :)
*If you have any problems, please let me know and I'll be glad to help. Ihave the pictures and such on my facebook page blogging the project I just did.
One thing I'd like to note is that I thought tcpser, by default, used RTS/CTSflow control. I had to disable the flow control on the Atari before any data came through... I'm not sure if this is due to the buggy serial port or just something I have
Cheers,
Carl
On Thu, 23 Mar 2017 18:00:42 -0700 (PDT), Jimmy Mac wrote:
I've struggled to find much in the way of solid documentation on how
to get tcpser to autostart on the Raspberry Pi.
Why? Does your BBS need this?
Hi all,tcpser to autostart on the Raspberry Pi. Anyone have a quick easy solution?
I've struggled to find much in the way of solid documentation on how to get
I blame my 30 years of Microsoft on my Linux ignorance but I'm evolving :-)from ssh or local terminal, just can't get any of the examples I've read about to work on the Pi.
Trying to resurrect (rebuild) a C46 BBS. No problems getting tcpser to work
TIA!
Jim..
On Thursday, March 23, 2017 at 6:00:43 PM UTC-7, Jimmy Mac wrote:tcpser to autostart on the Raspberry Pi. Anyone have a quick easy solution?
Hi all,
I've struggled to find much in the way of solid documentation on how to get
from ssh or local terminal, just can't get any of the examples I've read about to work on the Pi.I blame my 30 years of Microsoft on my Linux ignorance but I'm evolving :-)
Trying to resurrect (rebuild) a C46 BBS. No problems getting tcpser to work
a serial to USB cable and a Commodore 1011 RS-232 cart. No worries on root. I would have done that anyway. Many thanks!TIA!
Jim..
Carl! You ROCK! I hadn't even considered the MAX232 method. I've been using
I may just have to break down and try this with the Max232 with a new Pi ZeroW. Nice small package.
J..
Why re-invent the wheel? http://www.particles.org/particlesbbs/ is a
C128 BBS on "the net". This guy is probably one of the best examples of
a great old school retro BBS. He literally has more activity in a day
than I have in weeks. He's the guy we're all wishing we were.
Check in with him. I'm sure he'd be happy to help. If not, I'd be happy
to help (I'm an Atari guy, but the basic principles are the same).
Also on Facebook. https://www.facebook.com/particlesbbs/
On Thursday, March 30, 2017 at 12:48:34 PM UTC-6, Dropnine wrote:boot. The error is in the type portion of the serialBridge.service text file.
I was asked to correct a part that will stop you from automating tcpser on
It should be Type=forking. If it's anything else, LINUX will end the threadbecause it considers the script to have run and maintain its own PID.
Sorry for the error. The serialBridge.service file should look like below.to remove the old file and remake it by doing the following:
Edit your original or just type "rm /lib/systemd/systemserialBridge.service"
it in if you are a better typer than myself):
type: sudo vi /lib/systemd/system/serialBridge.service <Enter>
type: i
Copy and paste everything between the # mark lines into the editor (or type
####################
[Unit]
Description=Serial to TCP-IP Bridge
After=Multi-User.target
[Install]
WantedBy=Multi-user.target
[Service]
ExecStart=/home/pi/serialBridge
Type=forking
#####################
.... Cheers
Step 2 - Making TCPSer a service that boots with the Pi
I do have a similar problem with tcpser and the Raspberry PI.that's also ok here.
Excuse - it is about a connection between the PI and an Apple II :-) ... hope
The problem is that tcpser works, but after about 10-20 hours it shuts/scripts/offline.txt
down. The Terminal Window is still open and I can start it again. Then
it is working all right but the same shutdown again after the same
time?
My setup:
Raspberry PI 2 Model B
Debian
Raspberry WiFi Stick
USB to serial adapter (USB0)
tcpser
Apple II connected to serial adapter
I installed tcpser with:
sudo apt-get install tcpser
Started tcpser with:
tcpser -s 2400 -d /dev/ttyUSB0 -p 6502 -ts -B /scripts/busy.txt -N
As said, tcpser is running well, I can telnet to my Apple II -
everything works fine. But after a few hours the connection in the
Terminal Window is shut down. I start it again - working fine - after
a few hours the same?
I tried to put in -I 7
Ohh, thanks!
OK that started working good - let's see how long it will last ...
Today I had another stop of tcpser. So it ran now for 8 days withoutproblems.
I don't know why it stopped.
Has anyone an explanation or a hint what I can do?
Here is a pic of the monitor when tcpser stopped:
https://s22.postimg.org/ar4ayh2zl/PI_Hayes.jpg
Today I had another stop of tcpser. So it ran now for 8 days withoutproblems.
I don't know why it stopped.
Has anyone an explanation or a hint what I can do?
Here is a pic of the monitor when tcpser stopped:
https://s22.postimg.org/ar4ayh2zl/PI_Hayes.jpg
Thanks a lot! I'll try that.
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495941:40:54 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,986 |