|
Post by Riktronics on Sept 27, 2004 20:26:07 GMT -5
Hey, let me preface this by saying I am a total Linux newbie. The sad thing is I took RedHat Linux essentials and Redhat system administration... But neither one covered installing software, other then using RPM...
But despite my ignorance, I was able to Google my way into discovering make clean to get rid of the RedHat dependecies (regardless of our RedHat path at work, I am running Suse 9.1 at home, just because I like it better) and was able to succesfully run a make and compile the software.
I've got it to the point where I can run ./tcpser with the option to make it run at 2400 (I am back in XP right now and can't remember the exact switch) and the -I option. When I go to CCGMS and do a blind atdt192.168.0.10 I can coonect to my BBS. The thing is, I get absolutley no characters back from the BBS. It is sending them just fine, but I see nothing on the C=. If I look at the screen on the BBS and wait for it to ask me to hit backspace for BG detect, and hit backspace on the C= it totally sees that, I can log in and do whatever I want. Bit nothing is echoed back to CCGMS. I couldn't find any kind of echo back settings... am I doing something wrong?
Sorry to be so dense....
|
|
|
Post by Jim Brain on Sept 28, 2004 23:25:59 GMT -5
You need to give a bit more info...
Are you using a swiftlink/t232, or just a normal user port adapter?
What cable wiring are you using to connect the two machines?
What version of tcpser are you using?
Command line is good to know as well.
email me at brain@jbrain.com if you need quicker answers.
|
|
|
Post by Riktronics on Sept 29, 2004 19:46:53 GMT -5
You need to give a bit more info... Are you using a swiftlink/t232, or just a normal user port adapter? What cable wiring are you using to connect the two machines? What version of tcpser are you using? Command line is good to know as well. email me at brain@jbrain.com if you need quicker answers. Sorry about that. I figured it would be a simple answer... as in RTFM you just need the -S switch or something. Let me eleborate... I am using a MAX233 interface. When I wired it I reversed transmit and recieve so I just use a straight through 9-pin serial cable to connect it to my com port. The version I am using is (according to the directory I am running it out of) is tcpser-1.0rc7. I am starting it with the command line of ./tcpser -I -s 2400. I appreciate the email addy, but I know you are busy so I won't bother you there... I appreciate the help enough to actually be patient for once. Although my XP has gotten corrupted and I can't boot into it, I did manage to get CGTerm to work under Suse, so I can at least get to BBSs from that if not my preffered C128d. I am trying to get off of XP for my daily use, other than DOOM 3 and authoring DVDs (I cannot get qdvdauthor to work) I don't need it for anything. So after this latest problem of XP not booting (error 24: Attempt to access block outside of partition) I am going to kill XP all together on my main machine and just run Suse, and add the dvd authoring to my web server/print server//Leif's BBS Server machine and then when I get the money I will upgrade my arcade machine and put Doom 3 on it so I can finish it If you would prefer to do it through email, my email address is rick@riktronics.com Thanks!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
Post by Jim Brain on Sept 30, 2004 0:18:05 GMT -5
It sounds like flow control is preventing the chars from passing back.
Try adding -i"&K0" (lowercase i) to the command and see if the problem disappears. If so, Use either &K0 ( no flow control) or &K4 (XON/XOFF) to get things to work. The "modem" defaults to RTS/CTS flow control, but you don't have such pins connected.
However, I'm not convinced that is the issue.
A quick test to remove tcpser from the picture is to load minicom on the PC and try to send chars from PC to 64. If that works, and the above does not, I would guess a bug in tcpser. If it does not work on either, then let me now, as that is a brain stumper. :-)
|
|
|
Post by Riktronics on Sept 30, 2004 8:42:07 GMT -5
I tried tcpser with both modem initialization strings (K0 and K4) and had the same results. In all cases, when I append the L7 to string I can see a couple of lines in tcpser with each character I type on the Commodore, but nothing on the Commodore. I downloaded minicom and set that up... when I typed on the Commodore I could see the characters echoed in minicom but nothing on the Commodore.
Things I will try tonight: Hook Commodore up to XP machine that is running BBS Server for my BBS and make sure I can still talk to that. If so, take the "store bought" RS-232 adapter from my BBS and see if I can communicate.
Do you think it could be anything funky with Suse? I can always take my laptop home and load tcpser on it, it is running redhat.
|
|
|
Post by Riktronics on Sept 30, 2004 19:06:47 GMT -5
OK, here are the results of my tests...
I was able to get my XP to boot again (GRUB had gotten corrupted, I wiped out the MBR and could boot XP with no problem) so I started up Leif's BBS Server, and was able to talk to the Commodore with no problem.
I took the Aprotek RS232 adapter off of the BBS and hooked it up to my other Commodore and was able to connect through TCPSER with absolutely no problem. It worked perfectly. So it is definitely the MAX-233 adapter that I built from plans on PETSCII. I would love to be able to use that adapter though, because I have a custom built MAX-233/PWR-LOAD adapter built....
That said, how interested are you in trying to figure out why my adapter doesn't work? If you are, I have an extra adapter that I would be more than happy to give you to test with...
Thanks again!
|
|
|
Post by Jim Brain on Sept 30, 2004 21:37:37 GMT -5
Yes, it's a bug in tcpser, and I should fix it. Such 3-wire interfaces should work with tcpser, no issues.
I'd be happy to address the issue, although before sending it, let me wire up the interface here and see if I can recreate the issue (I have spares MAX chips.)
Can you email or post here any deviations in the std diagram on telbbs.com? I know you swapped TXD and RCV, but other than that?
Jim
|
|
|
Post by Jim Brain on Oct 1, 2004 1:19:38 GMT -5
Thanks for the test, I found the bug
&K0 should be turning on RTS/CTS flow control, but my code was bad.
I'm putting up a RC8, but might not get to it until Saturday.
You can fix the issue yourself, tho.
In src/dce.c, line 28:
change
if(MDM_FC_RTS) {
to
if((opts & MDM_FC_RTS) != 0) {
And, in line 32:
if(MDM_FC_XON) {
to
if((opts && MDM_FC_XON) != 0) {
save make clean make ./tcpser (make sure you add -i"&K0" to turn off flow control, as the modem initializes for hardware flow control. Have fun.
Thanks for the bug report.
|
|
|
Post by Riktronics on Oct 1, 2004 17:05:55 GMT -5
Well... I modified the src file and did the make clean and the make and it compiled fine, but still no dice. I tried minicom again making sure that I had the &K0 in it and it still doesn't work. Hmmm. As for my adapter, it is exactly as show in the diagram except with tx and rx reversed. But hey, at least I helped you find a bug
|
|
|
Post by Riktronics on Oct 1, 2004 18:55:14 GMT -5
OK... disregard that last post. I have NO clue what is happening now. Now I can't get my adapter to work with tcpser or bbs server. Same thing on both. So probably your fix fixed me and now my adapter is broken. Eeesh!
I've got to fix my spare MAX233 adapter and see what happens with it.
|
|
|
Post by Riktronics on Oct 2, 2004 12:44:57 GMT -5
Hooray! Its working fine. I have no idea what happened to my adapter. I opened it up and everything looked good, no wires loose or anything, and just because I happened to have another MAX233 chip in arms reach I popped the chip out and replaced it with a different one, and now it works great!
Thanks again!
Is there any way to make tcpser auto run whenever I boot linux?
|
|
|
Post by Jim Brain on Oct 2, 2004 23:03:48 GMT -5
Sure, look in /etc/inittab (as root)
Here's the line I use
t1:2345:respawn:/usr/local/bin/tcpser -d /dev/ttyS0 -s 9600 -p 64000
replace args as needed.
Jim
|
|