Operating System - HP-UX
1823079 Members
3450 Online
109645 Solutions
New Discussion юеВ

Kermit - cannot input anything when connected

 
Keely Jackson
Trusted Contributor

Kermit - cannot input anything when connected

Hi

I am trying to connect to A Vodafone messaging centre from Kermit - settings etc below. If I make the connection manually, e.g. modem none and type 'at' commands myself, I have no problems. However, if I try and do it interactively, I can connect ok, I get the prompt from the remote host but am then unable to type anything to send back and the connection times out. Generally I use CDE via Reflections but I have also tried it from a non CDE character interface too with no success. I have RTFM'd the manual but cannot find anything helpful. Does anybody have any suggestions, pretty please?

Many thanks

Keely


C-Kermit 6.0.192 runnng on K580 HP-UX 11.0 External Diamond modem configured to use software flow control AT&K4 not drop DTR AT&D2 and detect carrier AT&C1.
Kermit settings/commands are:

set modem unknown (using hayes cannot connect)
set line /dev/ttyd0p7
set speed 9600
set parity even
set flow xon/xoff
set modem command init at&z\{13}
set dial timeout 200
set dial display on
dial atdt9nnnnnnnnn

Live long and prosper
16 REPLIES 16
Paula J Frazer-Campbell
Honored Contributor

Re: Kermit - cannot input anything when connected

Hi

A couple of things to try:-

On the connection that works immediatly before connect enter:_

show com

and note the settings.

Do the same on the other connection and compare.

I would also be inclined to set the modem to hayes.

HTH

Paula

If you can spell SysAdmin then you is one - anon
Keely Jackson
Trusted Contributor

Re: Kermit - cannot input anything when connected

Hi Paula

The show comm for both is exactly the same;

Communications Parameters:
Line: /dev/ttyd0p7, speed: 9600, mode: local, modem: none
Terminal bits: 7, parity: even, duplex: full, flow: xon/xoff, handshake: none
Carrier: auto, lockfile: /var/spool/locks/LCK..ttyd0p7
Escape character: 28 (^\)

Carrier Detect (CD): Off
Dataset Ready (DSR): Off
Clear To Send (CTS): Off
Ring Indicator (RI): Off
Data Terminal Ready (DTR): On
Request To Send (RTS): Off

Communications Parameters:
Line: /dev/ttyd0p7, speed: 9600, mode: local, modem: unknown
Terminal bits: 7, parity: even, duplex: full, flow: xon/xoff, handshake: none
Carrier: auto, lockfile: /var/spool/locks/LCK..ttyd0p7
Escape character: 28 (^\)

Carrier Detect (CD): Off
Dataset Ready (DSR): Off
Clear To Send (CTS): Off
Ring Indicator (RI): Off
Data Terminal Ready (DTR): On
Request To Send (RTS): Off

I have tried setting the modem type to both hayes and hayes-high-speed. I get the connect 9600 message from the modem but am then unceremoniously dumped straight back to the kermit prompt with the message 'communications disconnected'.
I have also tried fiddling around with the terminal settings, eg echo and duplex all to no avail.
I confess to being baffled.

Cheers
Keely
Live long and prosper
Paula J Frazer-Campbell
Honored Contributor

Re: Kermit - cannot input anything when connected

Hi

Looking at where you are connecting "ttyd0p7".

This looks like the internal modem port on a K class ?

Are you using the predictive modem?


If so try the speed at 2400.


Paula

If you can spell SysAdmin then you is one - anon
Keely Jackson
Trusted Contributor

Re: Kermit - cannot input anything when connected

Hello again

Yes it is the same port. It can be configured for either the internal or external modem using the Ctrl B command at the console. In this case I have configured it for the external modem.

Definitely not using the internal modem after reading other forums warning not to touch it with the preverbial barge pole!

Regards
Keely
Live long and prosper
Paula J Frazer-Campbell
Honored Contributor

Re: Kermit - cannot input anything when connected

Hi Keely

If I understand correcty - from the console all ok, but from a telnet not?

Am I correct?

Paula
If you can spell SysAdmin then you is one - anon
Keely Jackson
Trusted Contributor

Re: Kermit - cannot input anything when connected

Ah, possibly not. What do I need to check?

Keely

Live long and prosper
Paula J Frazer-Campbell
Honored Contributor

Re: Kermit - cannot input anything when connected

Keely

What I was trying to get/understand was the difference from working to not working.

Are you trying a connect manually and all ok and from a script not?


Paula
If you can spell SysAdmin then you is one - anon
Keely Jackson
Trusted Contributor

Re: Kermit - cannot input anything when connected

Paula

Sorry misunderstood what you meant. I have attahed a file which shows what I have been doing.
First part is me typing all the commands direct to the modem, second part is trying to use kermit to do some of it. I have put it all in a script too but this fails at pretty much the same point.

Thanks for your suggestions so far. Most appreciated.

Regards
Keely
Live long and prosper
Paula J Frazer-Campbell
Honored Contributor

Re: Kermit - cannot input anything when connected

Hi

Some things come to mind,

1. The working connection has "none" on modem and the not working "unknown", have you tried defining a modem for each connection?

2. Is your script carrying the same environmental variables as your session that works.

3. I have just tried a connection and sent a message to you, all I set was line and speed and it works OK. My kermit is the same version as yours running on 11.00.

4. I also have noticed that you are dialing with a 9 prefix - can you get a normal land line to try from as your internal system could effect your connection.

Also:-

Give it a try with just:-

Kermit
set line /dev/ttyd0p7
set speed 9600
c (short for connect)
atdt907785499999

(ETC)


HTH

Paula
If you can spell SysAdmin then you is one - anon
Keely Jackson
Trusted Contributor

Re: Kermit - cannot input anything when connected

Hi Paula

Got your messages fine. Not in the office today - dreaded exams. Will try tomorrow.

Thanks

Keely
Live long and prosper
U.SivaKumar_2
Honored Contributor

Re: Kermit - cannot input anything when connected

hi,
When you get the connection , check in the modem that CD is glowing continously . if
flickers frequently. Telephone Line might
be noisy and causing data corruption.
connect a telephone to that line and listen
to the dial-tone and check whether it is heard
clearly or with noise signals.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Thomas Boerner_1
New Member

Re: Kermit - cannot input anything when connected

Hi,

one thing I can see is that you use the command:

dial atdt907785499999

instead of the usual

dial 907785499999

Try that and tell us more...

HTH
Keely Jackson
Trusted Contributor

Re: Kermit - cannot input anything when connected

Hi Paula,

Hope you are ok this morning.

Your suggestion
Kermit
set line /dev/ttyd0p7
set speed 9600
c (short for connect)
atdt907785499999

(equivalent of modem none) does not work here. I cannot connect properly unless flow is set to xon/xoff and parity set to even, then all is hunky dory and I can send the message.
The problem occurs as soon as I try to specify modem type, hence trying to get kermit to do the connect. Having tried both the Hayes options and a couple of others to no avail, the closest I have got is with modem set to unkwnown, at least it then connects and I get the right prompts, I just can't type in the number or message.

I haven't really been using a script as I wanted to get it working from the command line (ha ha) before I script it properly. Unfortunately, I don't have a direct line I can use, but I guess the switchboard is not the problem else I would never get a successful connection.

Thanks

Keely

ps
U.SivaKumar and Thomas, the phone line is fine as I can connect ok, and you have to dial atdt99999 if you do not specify a modem as the dial string is not set. Thanks anyway.

Do not fear, I will assign your points.
Live long and prosper
Paula J Frazer-Campbell
Honored Contributor

Re: Kermit - cannot input anything when connected

Hi Keely

Good morning to you.

These are the setting from a K class running 11.00 and the same kermit as you:-

[/] C-Kermit>show com Communications Parameters:
Line: /dev/ttyd1p11, speed: 9600, mode: local, modem: usrobotics
Terminal bits: 7, parity: none, duplex: full, flow: rts/cts, handshake: none
Carrier: auto, lockfile: /var/spool/locks/LCK..ttyd1p11
Escape character: 28 (^\)

Carrier Detect (CD): Off
Dataset Ready (DSR): On
Clear To Send (CTS): On
Ring Indicator (RI): Off
Data Terminal Ready (DTR): On
Request To Send (RTS): Off
These work fine on my system.

Questions:-

1. What modem are you using.
2. I am still concerned about using your internal phone network as these can have strange effects on comms. If you can "Borry" a normal tel line and test.

HTH

Paula
If you can spell SysAdmin then you is one - anon
Paula J Frazer-Campbell
Honored Contributor

Re: Kermit - cannot input anything when connected

Keely

What term setting are you using?

My "OK" connection is wy60.

I am trying to eliminate all possibilities.



Paula
If you can spell SysAdmin then you is one - anon
Keely Jackson
Trusted Contributor

Re: Kermit - cannot input anything when connected

Hi Paula

It is sorted. I think it must have been inconsistencies with either error-correction of data compression. I have borrowed the supra modem settings and all is ok. Typical it was about the last one I tried.

Thank you so much for all your time and efforts. It really is much appreciated.

Enjoy the rest of the day.

Cheers
Keely
Live long and prosper