1833019 Members
2247 Online
110048 Solutions
New Discussion

DDFA

 
Chris Mears
New Member

DDFA

I have an application that works with a local modem. But when it is used with DDFA the responses from the modem don't come back correctly.
The application expects OK in response to configuration commands sent to the modem (AT****) but DDFA is removing the CR's from the response.
When I read from the device I get OK.
How can I configure DDFA to stop filtering out the CR's? My application wont work without them!

6 REPLIES 6
David Navarro
Respected Contributor

Re: DDFA

Do you have binary mode enabled ???
And eightbit enabled ?

In /usr/examples/ddfa you have examples of these files with all options.

I hope it help you
Chris Mears
New Member

Re: DDFA

I have set binary_mode and eightbit to enabled in the pcf.modem file. I am now getting OK!

I am running DDFA in debug mode and I can see the data is received correctly and then changed to .

I have also checked the termio output modes. These are set to zero in the original configuration.

I have tried changing the output modes but without any luck. I have got the debug trace to show <>LF>OK but I still only get OK>LF>.

How can read not return ????

David Navarro
Respected Contributor

Re: DDFA

Hi
I've found this.

The DTC configuration should contain the following entries:

DTC PARAMETERS VALUE USED
Attached Device US modem
Modem behavior Standard DCE
Escape from data transfer char CTRL K (^K)
Max number of sessions 5
Default destination IP address of remote host
Enable port Yes
Enable automatic connection Yes
Binary mode Yes
Switching allowed No

I know, with printers normaly you need to configure that LF is LF + CR because HP-UX doesn't send CR. maybe is something similar with this modem. If you put it in binary mode, OS can't make any king of translation ( I think ).

Good Luck!
Chris Mears
New Member

Re: DDFA

Hi

I have discovered the problems is caused by the termio input mode ICRNL being set. I unset this and the CR's appeared!
I think this was inherited from the pty device that DDFA used to create its own device?
Do you now if its possible to change the pty device before its used?
The stty setting for normal telnet logins is set to icrnl, would changing the default cause othr problems?

David Navarro
Respected Contributor

Re: DDFA

Hi,
A lot of time without working with serial devices.....
Look at this:
http://europe-support2.external.hp.com/cki/bin/doc.pl/sid=54a4912a1a8100f926/screen=ckiDisplayDocument?docId=200000006401358

You can do stty sane for a "rasonable values".

Chris Mears
New Member

Re: DDFA

Hi David

Thanks for your information it helped me solve the problem.
The thing I found most confusing was that I needed to unset the ICRNL mode because this is an input mode rather than a output mode!

Regards
Chris