|
Post by Cenbe on Oct 30, 2005 7:52:24 GMT -5
I could use some help setting this up... I'm using an Aprotek RS-232 interface and a null modem cable to the PC (SUSE Linux 10.0). I know this part works because I was able to set up the 64C as a serial terminal (you haven't lived till you've run emacs on a '64, but I digress...)
tcpser4j appears to start normally, but does show these messages at startup:
0 [main] INFO org.jbrain.tcpser4j.ModemPoolThread - Initializing modem rs232:/dev/ttyS0 4 [main] DEBUG org.jbrain.hayes.ModemCore - Parsing AT Command: s0=2 0 [Thread-2] DEBUG org.jbrain.hayes.EscapeTimer - Interrupted while waiting. 32 [Thread-2] DEBUG org.jbrain.hayes.EscapeTimer - Resetting.
When I boot the Q-Link disk on the '64, messages start appearing in tcpser4j's window that all look like this:
65774 [Thread-1] DEBUG Serial In - 0000| 00 |. |
65775 [Thread-1] DEBUG Serial Out - 0000| 00 |. |
70863 [Thread-1] DEBUG Serial In - 0000| 00 00 |.. |
70863 [Thread-1] DEBUG Serial Out - 0000| 00 00 |.. |
A packet sniffer shows that nothing is going out to the internet. This is my tcpser4j config file:
<Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceS chemaLocation="TCPSerial.xsd">
<!-- Change localhost:port to correct values -->
<PhoneBook> <Entry number="5551212" value="66.135.38.238:5190" /> </PhoneBook>
<Modem type="rs232" device="/dev/ttyS0" speed="1200"> <Initialization>&c0</Initialization> <Initialization>e0</Initialization> <Initialization>&k0</Initialization> </Modem>
</Settings>
Can anybody help with this?
|
|
MikeAZ1
Full Member
Qlinker of the 80's
Posts: 157
|
Post by MikeAZ1 on Oct 30, 2005 9:06:54 GMT -5
I hope someone can I tried using tcpser4j on Windows with no luck and will have a linux box soon Someone out ther know how to get tcpser4j to work windows and linux?
|
|
|
Post by RaymondDay on Oct 30, 2005 10:35:14 GMT -5
Did you try "Telnet BBS Server v1.2"? It's for Windows. Seems like it is a little hard finding the right RS232 card for it. But it worked right away for me using a stander RS232 card with a Jameco RS232 on my commodore user port. Pluged in to my RS232 and then the com port or RS232 port of my Windows PC. You can download it here: www.jammingsignal.com/files/
|
|
|
Post by Pinacolada on Oct 30, 2005 16:13:48 GMT -5
My Linux config is kinda b0rked at the moment, but this is my Windows 2000 tcpser4j-rc6 config.xml file: <Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TCPSerial.xsd">
<!-- Change localhost:port to correct values -->
<PhoneBook> <Entry number="5551212" value="localhost:232" /> <Entry number="de" value="127.0.0.1:6400" /> <Entry number="es" value="elmstreet.dyndns.org:23" /> <Entry number="lc" value="lostcavernsbbs.dyndns.org:6002" /> <Entry number="lv" value="lv426bbs.home-ip.net:23" /> <Entry number="rk" value="rkbbs.net:23" /> <Entry number="rk" value="bbs.jammingsignal.com:23" /> </PhoneBook> <ModemPool> <TemplateModem> <Initialization>&c0</Initialization> <Initialization>e1</Initialization> <Initialization>&k0</Initialization> </TemplateModem> <Modem type="ip232" device="232"/> </ModemPool> </Settings> Has a few extra entries so I can dial telnet BBS's through WinVICE, but it looks like the main part of the file you're missing is the <Modem type="ip232" device="232" /> bit.
|
|
MikeAZ1
Full Member
Qlinker of the 80's
Posts: 157
|
Post by MikeAZ1 on Oct 30, 2005 20:13:04 GMT -5
Thats for using with Winvice What would Config file look like for a real 64 to tcpser4j? I cant use tcpser but not 4j
|
|
|
Post by brianb7 on Oct 31, 2005 8:50:24 GMT -5
I realize you are looking to use tcpser4j but thought I'd throw this out. I use TCPser (non java) under linux and found I like it better. It was easy to compile and requires a simple one line command to get it up and going. Youc an get it here: www.jbrain.com/pub/linux/serial/Untar it - run a make then execute tcpser with the following options: ./tcpser -d /dev/ttyS0 -s 1200 -i"e0&k0&c0" -n"5551212"=qlink.quantum-link.org:5190
|
|
|
Post by RaymondDay on Oct 31, 2005 10:40:22 GMT -5
I wanted to do this on my Fedora core4. I downloaded "tcpser-1.0rc10" and go to it's folder and type make. But I get this back.
[root@small tcpser-1.0rc10]# make gcc -O -Wall -c -o src/bridge.o src/bridge.c make: gcc: Command not found make: *** [src/bridge.o] Error 127 [root@small tcpser-1.0rc10]#
I guess I need to install something else to "make" this. Any one know a RPM or up2date or yum install that I could do on this to make the make work?
|
|
|
Post by RaymondDay on Oct 31, 2005 11:34:17 GMT -5
I tested this on a Fedora core3 I have. I have about every thing install on it. But it's not close by my commodore to run a RS232 card to. Here is what I got back with make on it.
[root@myserver4 tcpser-1.0rc10]# make gcc -O -Wall -c -o src/bridge.o src/bridge.c gcc -O -Wall -c -o src/debug.o src/debug.c gcc -O -Wall -c -o src/getcmd.o src/getcmd.c gcc -O -Wall -c -o src/ip.o src/ip.c gcc -O -Wall -c -o src/init.o src/init.c gcc -O -Wall -c -o src/modem_core.o src/modem_core.c gcc -O -Wall -c -o src/nvt.o src/nvt.c gcc -O -Wall -c -o src/serial.o src/serial.c gcc -O -Wall -c -o src/util.o src/util.c gcc -O -Wall -c -o src/phone_book.o src/phone_book.c gcc -O -Wall -c -o src/shared.o src/shared.c gcc -O -Wall -c -o src/tcpser.o src/tcpser.c gcc -O -Wall -c -o src/dce.o src/dce.c gcc -O -Wall -c -o src/line.o src/line.c gcc -lpthread -o tcpser src/bridge.o src/debug.o src/getcmd.o src/ip.o src/init.o src/modem_core.o src/nvt.o src/serial.o src/util.o src/phone_book.o src/shared.o src/tcpser.o src/dce.o src/line.o [root@myserver4 tcpser-1.0rc10]#
So it looks like I just need to install some program on my Fedora core4 to "make" this. But I don't know what that is.
|
|
|
Post by Jim Brain on Oct 31, 2005 21:42:57 GMT -5
You need to install gcc (the development tools)
Jim
|
|
|
Post by Jim Brain on Oct 31, 2005 21:45:21 GMT -5
ShadowM, looks like a baud rate mismatch to me. Try a test with a simple CBM term program for debugging
Jim
|
|
|
Post by RaymondDay on Nov 1, 2005 6:02:55 GMT -5
It looks like all I had to do is this one command:
yum install gcc*
That took me about a day to find.
Then I did make looks like it said some errors. I guess because I have a USB to RS232 on it and I guess it don't know how to use it.
|
|
|
Post by RaymondDay on Nov 1, 2005 11:29:36 GMT -5
I started with a new load of Fedora core 4 on DVD then did a up2date and moved the tcpser-1.0rc9 folder over to it.
When I would do make it would come back with:
"make: Nothing to be done for `all'."
Then I did:
"make clean"
It did some stuff like saying stuff like it could not delete .bak files. then I ran "make" this time it looked like it was doing things.
Here is parts of the text I got back after doing the make command. Some of the lines went over and over so I edit the repets out:
src/ip.c:91: warning: pointer targets in passing argument 1 of âstrtokâ differ in signedness
src/modem_core.c:11: warning: pointer targets in assignment differ in signedness
src/modem_core.c:341: warning: pointer targets in passing argument 1 of â__builtin_strncpyâ differ in signedness
gcc -O -Wall -c -o src/shared.o src/shared.c gcc -O -Wall -c -o src/tcpser.o src/tcpser.c src/tcpser.c: In function âmainâ: src/tcpser.c:130: warning: pointer targets in passing argument 1 of âstrlenâ differ in signedness src/tcpser.c:131: warning: pointer targets in passing argument 1 of âstrlenâ differ in signedness gcc -O -Wall -c -o src/dce.o src/dce.c gcc -O -Wall -c -o src/line.o src/line.c gcc -lpthread -o tcpser src/bridge.o src/debug.o src/getcmd.o src/ip.o src/init.o src/modem_core.o src/nvt.o src/serial.o src/util.o src/phone_book.o src/shared.o src/tcpser.o src/dce.o src/line.o
I found out that this small mother board has 2 RS232's on it. But I have to plug in a ribbin cable to them. I had it and pluged it in. I started it up with:
./tcpser -d /dev/ttyS0 -s 1200 -i"e0&k0&c0" -n"5551212"=qlink.quantum-link.org:5190
The command prompt don't come back. I pluged in my commodore RS232 and booted Q-Link. I did a:
at
it came back ok
I press F1 but I get nothing. I will have to test it more.
|
|
|
Post by RaymondDay on Nov 1, 2005 11:58:39 GMT -5
It works! I got on!
I guessed and just did a command on Q-Link before you press F1 to connect:
atdt 5551212
It connected then.
Wow this was hard to set up!
I guess if any one else does it just download tcpser. I used WinRAR to un compress it to a folder. Then copied it to a new load a Fedora core 4 with WinSCP but when I did the "make" command it said like nothing to do. I had to do "make clean" before the make. It seems like it did lots of errors but when I did the command line:
./tcpser -d /dev/ttyS0 -s 1200 -i"e0&k0&c0" -n"5551212"=qlink.quantum-link.org:5190
and hooked up a RS232 cable to the com port 1 and did a "atdt5551212" it connected.
If the make command don't work do a:
yum install gcc*
or a:
make clean
I think it's way easier with "Telnet BBS Server v1.2" but that's on Windows. If you want to use it on Linux then tcpser is good. The UDS-10 is the best but it's hard to get it for a good price under $40 or so. Like on ebay. A old PC with Linux I am sure can run this tcpser. It was just hard to set up.
I think now that I got this working I my be able to help others on a Linux system.
I my look at some Linux that can load up in a flash ram to run this tcpser. The 10 gig hard dirve make a little sound not to bad. But it be nice to just have it small.
|
|
|
Post by RaymondDay on Nov 1, 2005 12:30:11 GMT -5
I been looking for info. on how to use this tcpser. I did get it to show text about like I remember Jim's tcpser showing at the Expo. Here is the one line I do now.
./tcpser -d /dev/ttyS0 -s 1200 -i"e0&k0&c0" -tsSiI -l 7 -n"5551212"=qlink.quantum-link.org:5190
I guess that is text Jim needed to get Q-Link working at first.
It shows stuff like this:
2005-11-01 12:26:48:-1208603728:DEBUG_X:Waiting for modem/control line/timer/socket activity 2005-11-01 12:26:48:-1208603728:DEBUG_X:Command Mode=0, Connection status=1 2005-11-01 12:27:47:-1229583440:DEBUG:Data available on socket 2005-11-01 12:27:47:-1229583440:DEBUG:Read 9 bytes from socket 2005-11-01 12:27:47:-1229583440::IP<-|0000|5a 41 40 81 49 20 1d 26 0d |ZA@.I .&. | 2005-11-01 12:27:47:-1229583440::RS->|0000|5a 41 40 81 49 20 1d 26 0d |ZA@.I .&. | 2005-11-01 12:27:47:-1208603728:DEBUG:Data available on serial port 2005-11-01 12:27:47:-1208603728::RS<-|0000|5a |Z |
Any one know where there is any docs for how to use this tcpser?
|
|
|
Post by RaymondDay on Nov 1, 2005 13:12:19 GMT -5
I see this is docs in the read me file with the 10 version.
I have 2 RS232 ports on this. When I get home from work I will try to get on with my 2400 baud on the other port. It should work I think.
I all way have a server running but I would have to put the RS232 ribbon cables on the mother board. Can tcpser just run in the back ground like start it with a & at the end of the start line? Than could you just long off and on Q-Link?
|
|