Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Port and Data Compression commands.

Status
Not open for further replies.

oldbowler

Programmer
Mar 13, 2003
14
US
I need to set the baud rate to 33,600 and turn data compression off in an Aspect script. Where do you put the SET PORT BAUDRATE command (before dial / after dial)? What is the Aspect command to control data compression?
 
buddy,
i could not find the set command to turn off the data compression in the script, but as far as you question as to where to put the commands, i always preface the particular scrtipt for that particular type of gear with a short subroutine that you can either imbed or call up within each macro. yours may may look something like this one i use to ensure that i get the rigth keyboard response from an octel ...

PROC MAIN
#define VK_LEFT 0x25 ; Left arrow key
#define VK_UP 0x26 ; Up Arrow key
#define VK_RIGHT 0x27 ; Right Arrow key
#define VK_DOWN 0x28 ; Down Arrow key
set port baudrate 9600 ; 9600
set port databits 8 ; 8
set port parity NONE ; n
set port stopbits 1 ; 1
SET port softflow OFF ;
SET port hardflow OFF ;
SET TERMINAL KEYBOARDFILE "VT100-CUSTOM.KBD" ;OPTIONAL
dialload "PW5-CUSTOM.DIR" ; OPTIONAL
set duplex full
ENDPROC

HERE IS FROM THE HELP FILE ...

The following set/fetch statements control the communication port for the current connection.
FAILURE is set if any set port command is used to set/fetch the settings of an unopened TAPI connection. Also, all set port commands fail with the "direct connect-none" connection and .dlc connections like Telnet.
For TAPI connections, the set port commands only affect the currently selected connection in System panel of Setup. They cannot change or access settings of a connection that is referenced by a Connection Directory entry. The settings will not be saved as new settings for a TAPI connection.

All set port commands will fail if a file transfer or a dialing attempt is in progress.

port baudrate baudrate

Specifies the baud rate at which Procomm Plus talks to the current data modem. If the DEFAULT keyword is specified, the string Modem Default is used. fetch returns the current baud rate as a long value.

port databits integer

Specifies the length of a byte sent or received through the current port, either 7 or 8 bits. fetch returns 7 for 7 data bits or 8 for 8 data bits.

port dropdtr OFF | ON

Determines whether Procomm Plus will drop the RS-232 DTR signal to disconnect. fetch returns 0 for OFF or 1 for ON. This command always fails for TAPI connections.

port hardflow OFF | ON

Enables or disables hardware flow control, which is sometimes referred to as RTS/CTS flow control. fetch returns 0 for OFF or 1 for ON.

port parity NONE | ODD | EVEN | MARK | SPACE

Specifies the parity for the current communication port. fetch returns 0 for NONE, 1 for ODD, 2 for EVEN, 3 for MARK or 4 for SPACE.

port softflow OFF | ON

Enables or disables software flow control, which is sometimes referred to as XON/XOFF flow control. fetch returns 0 for OFF or 1 for ON.

port stopbits integer

Specifies the number of bits used to signify the end of a byte sent or received through the current port. fetch returns 1 for 1 stop bit or 2 for 2 stop bits.
 
The AT command to turn off data compression varies depending on the manufacturer of your modem. Here's a Symantec knowledge base article that has some discussion on this, but I would recommend checking your modem manual as well:


If you will only be calling this particular entry and no others, you can modify the modem's configuration in Windows to do this for you. I don't have a modem on my work machine, but the steps are something like select the Options | System Options | Modem Connection menu item in Procomm, select your modem, and click on the Modem/Connection Properties button, click on the Port Settings button, and then the Modem/Connection Properties button. Click on the Connection and add the commands to your modem's initialization string to disable error correction and data compression. There may also be checkboxes in this dialog to disable error correction and data compression, instead of having to edit the initialization string.
aspect@aspectscripting.com
 
Thanks to all for your replies.

The script is being created for an end user of our medical billing software to automate the transmission of their insurance claims. I do not know what modem they will be using, and they will be using the modem to transmit to multiple insurance companies. I know I can have them set up a phone book entry and configure the modem specifically for that entry and then call the entry from my script, I was just hoping not to do it that way.
 
For the majority of Hayes compatible modems(not all) at\n0 should disable data compression.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top