PVDM Disconnecting a Cqll

Unanswered Question

Does anyone know how to setup stopbits and parity on a PVDM24?

I have a few thousand stores that always want to connect to 2400 7,n,2. Vendor says it has to be that way.

The POS connects, then immediately drops.

Any thougts?

Aug 19 15:08:09.744: Modem 0/398 CSM: modem is allocated, modems free=-1

Aug 19 15:08:09.744: Modem 0/398 CSM: (CSM_PROC_IDLE)<--DSX0_CALL

Aug 19 15:08:09.744: CSM: sending CAS msg EVENT_CHANNEL_LOCK

Aug 19 15:08:09.744: src 0/0/398 dest 1/0/20 cause 0

Aug 19 15:08:09.780: CSM: csm_modem_event called

Aug 19 15:08:09.780: Modem 0/398 CSM: (CSM_PROC_IC_CAS_CHANNEL_LOCKED)<--CSM_EVENT_MODEM_SETUP

Aug 19 15:08:09.780: CSM: sending CAS msg EVENT_VOICE_ANS

Aug 19 15:08:09.780: src 0/0/398 dest 1/0/20 cause 0

Aug 19 15:08:09.780: Modem 0/398 CSM: starting tone timer

Aug 19 15:08:10.120: Modem 0/398 CSM: received EVENT_START_RX_TONE with call_id 0A39

Aug 19 15:08:10.120: src 1/0/20 dest 0/0/398 cause 0

Aug 19 15:08:10.120: Modem 0/398 CSM: (CSM_PROC_IC_CAS_COLLECT_DIGITS)<--DSX0_START_RX_TONE

Aug 19 15:08:10.340: CSM: csm_modem_event called

Aug 19 15:08:10.340: Modem 0/398 CSM: (CSM_PROC_IC_CAS_COLLECT_DIGITS)<--MODEM_DIGITS_COLLECTED

Aug 19 15:08:10.340: Modem 0/398 CSM: (CSM_PROCESS_DIGIT_DETECTED), addr_state 4

Aug 19 15:08:10.340: Modem 0/398 CSM: Restarting tone timer with delay=1000

Aug 19 15:08:10.460: CSM: csm_modem_event called

Aug 19 15:08:10.460: Modem 0/398 CSM: (CSM_PROC_IC_CAS_COLLECT_DIGITS)<--MODEM_DIGITS_COLLECTED

Aug 19 15:08:10.460: Modem 0/398 CSM: (CSM_PROCESS_DIGIT_DETECTED), addr_state 4

Aug 19 15:08:10.460: Modem 0/398 CSM: Restarting tone timer with delay=1000

Aug 19 15:08:10.620: CSM: csm_modem_event called

Aug 19 15:08:10.620: Modem 0/398 CSM: (CSM_PROC_IC_CAS_COLLECT_DIGITS)<--MODEM_DIGITS_COLLECTED

Aug 19 15:08:10.620: Modem 0/398 CSM: (CSM_PROCESS_DIGIT_DETECTED), addr_state 4

Aug 19 15:08:10.620: Modem 0/398 CSM: Restarting tone timer with delay=1000

Aug 19 15:08:10.760: CSM: csm_modem_event called

Aug 19 15:08:10.760: Modem 0/398 CSM: (CSM_PROC_IC_CAS_COLLECT_DIGITS)<--MODEM_DIGITS_COLLECTED

Aug 19 15:08:10.760: Modem 0/398 CSM: (CSM_PROCESS_DIGIT_DETECTED), addr_state 4

Aug 19 15:08:10.760: Modem 0/398 CSM: Restarting tone timer with delay=1000

Aug 19 15:08:11.760: Modem 0/398 CSM: non-r2 tone timer expired

Aug 19 15:08:11.760: Modem 0/398 CSM: (CSM_PROC_IC_CAS_COLLECT_DIGITS)<--ADDR_INFO_COLLECTED

Aug 19 15:08:11.760: CSM: sending CAS msg EVENT_RX_TONE_COMPLETE

Aug 19 15:08:11.760: src 0/0/398 dest 1/0/20 cause 0

Aug 19 15:08:12.828: Modem 0/398 CSM: received EVENT_CHANNEL_CONNECTED with call_id 0A39

Aug 19 15:08:12.828: src 1/0/20 dest 0/0/398 cause 0

Aug 19 15:08:12.828: Modem 0/398 CSM: (CSM_PROC_IC_CAS_ANSWER_CALL)<--DSX0_CONNECTED

Aug 19 15:08:25.988: CSM: csm_modem_event called

Aug 19 15:08:25.988: Modem 0/398 CSM: (CSM_PROC_CAS_WAIT_FOR_CARRIER)<--MODEM_CONNECTED

Aug 19 15:08:26.960: Modem 0/398 CSM: (CSM_PROC_CONNECTED)<--ASYNC_DTR_DOWN

Aug 19 15:08:26.964: CSM: csm_modem_event called

Aug 19 15:08:26.964: Modem 0/398 CSM: (CSM_PROC_DISCONNECTED)<--MODEM_DISCONNECTED

Aug 19 15:08:26.964: Modem 0/398 CSM: Stopping dm tone timer

Aug 19 15:08:26.964: Modem 0/398 CSM: (CSM_PROC_DISCONNECTED)<--QUEUED_DISCONNECT

Aug 19 15:08:26.964: Modem 0/398 CSM: Stopping dm tone timer

Aug 19 15:08:26.964: CSM: sending CAS msg EVENT_CALL_IDLE

Aug 19 15:08:26.964: src 0/0/398 dest 1/0/20 cause 16

Aug 19 15:08:26.964: Modem 0/398 CSM: CSM_MODEM_DEALLOCATE: modem is deallocated

Aug 19 15:08:26.964: CSM: called_party_num '3502'

Aug 19 15:08:27.040: CSM: csm_modem_event called

Aug 19 15:08:27.040: Modem 0/398 CSM: (CSM_PROC_IDLE)<--MODEM_DISCONNECTED

Aug 19 15:08:27.892: Modem 0/398 CSM: received EVENT_CALL_IDLE with call_id 0A39

Aug 19 15:08:27.892: src 1/0/20 dest 0/0/398 cause 0

Aug 19 15:08:27.960: Modem 0/398 CSM: (CSM_PROC_IDLE)<--ASYNC_DTR_DOWN

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Loading.
Paolo Bevilacqua Wed, 08/19/2009 - 11:29

Two things.

For speed, you configure modems to negotiate a maximum connection speed. That also shortens the conneciton time. You never change async serial speed. Sorry I don't remember the modemd setting command now.

For data/parity/stop bits, configure under line with the self-explaining setting.

Paolo Bevilacqua Wed, 08/19/2009 - 11:59

Right. So the disconnection cause is something else, you should check if it gets to the server.

The POS never gets through the 3640 to get to the credit authorization server. According to the vendor, it has to connect at 2400 7,n,2. How do you verify this on the 3640. I know the speed is easy to determine; but I have never seen anywhere in any debugs or show commands on the host RAS server (a 3640 in this case) that you can view the parity, stopbits, etc that a client connects with.

Paolo Bevilacqua Wed, 08/19/2009 - 15:21

These are transparent to the router, in other words whatever the bits it forwards them anyway.

Can you try dialing with a modem, are you getting connected to the server ?

The POS; where the client modem is attached, gets connected to the 3640 with the PVDM24 in it; than disconnects immediately. I can't figure it out since there isn't any debugging that is helping. The POS connects fine to a 3Com Total control box. The problem is nobody in the company can into the 3Com box to view the config.

I have configured exec 0 0 and session limit to 10 minutes on the line config; doesn't help.

Paolo Bevilacqua Wed, 08/19/2009 - 15:50

I understand that. What I'm suggesting, you dial into the 3640 (or it is a 3845 ?) with a PC, to see if you get connected to the server and some data can be exchanged.

If you look above see connection is closed by DTR drop meaning the router is disconnecting for some reason.

We'll they say the Cisco RAS router should be sending it to the retail transcaction server. Either way, the ASCII 5 character (ENQ) is not leaving the the fa0/0 interface on the Cisco Router/RAS. I setup a monitor port and did not see this being sent; I saw the TCP handshake.

Can't I just use the "activation-character 5" command? I tried it; doesn't seem to work.

This is what I got so far:

aaa authentication login noauth none

aaa authentication enable default none

modemcap entry POS_TERMINAL:MSC=&F&D2S37=6S251=1

line 0/386 0/409

session-timeout 10

no exec-banner

no vacant-message

login authentication noauth

modem Dialin

modem autoconfigure type POS_TERMINAL

autocommand telnet 10.0.2.192 8000 /stream

activation-character 5

Even tried with /noecho and /quiet and telnet 1200 2400.

I thinnk I 'm going to put an asyc sbiffer on the POS on Monday.

Paolo Bevilacqua Fri, 08/21/2009 - 13:54

Sorry, I don't know the details of your POS protocol.

All what I know, it that the only thing the router does is to pass data transparently between modem and TCP connection, and that works for everyone I seen so far.

You can try that yourself, dial-up with a PC and modem once connected then type ^E see if you get any data back.

I put a RS232 sniffer on the POS at the store that dials into the corporate office for credit authorizations, and when it connects to the 3Com Total Control, the Total control definately sends an ENQ (05 or CTRL-E) back to the POS when the connection is successfull.

I than put the sniffer back on and connected to the 3800 router I did a credit auth, and when it connects, it does NOT send any character when the connection is successfull. I tried the activation-character 05 command with no success?

Any other suggestion of how to get the 3800 box to send the ENQ (05) After a successful connection?

I can't believe a 3Com box can do this, but a Cisco box can't. It blows my mind.

Paolo Bevilacqua Mon, 08/24/2009 - 11:36

Enter a ctrl-v before ctrl-e in the banner string. That is, hold ctrl key, type ve, release ctrl key.

I got it working. Here is how I did it:

chat-script ENQ "" ^E

modemcap entry POS_TERMINAL:MSC=&F&D2S37=6S251=1

line 0/386 0/409

no motd-banner

exec-timeout 2 0

script activation ENQ

authorization exec noauth

no vacant-message

login authentication noauth

modem Dialin

modem autoconfigure type POS_TERMINAL

autocommand telnet 10.0.2.192 8000 /stream /quiet /noecho

no activation-character

transport input telnet

transport output telnet

Actions

This Discussion