Doc. # 1-40629961 | |||
---|---|---|---|
Date Updated | 11-01-2007 | Date Created | 09-13-2004 |
Document Type | Knowledge Base | Related OS | |
Related Product | ADAM-4577/ ADAM-4579 |
How to change the serial parameters of ADAM-4579/77 in the run-time? | |||
---|---|---|---|
Solution:
In the Data mode communication of the ADAM-4577/79, device can transfer the TCP/IP data to serial.
If user need to change the serial parameters in the run-time of the application, please follow the below steps:
1. Use Socket program or application to connect the TCP control port, normally it is 5200.
2. Send the command string "AT$PS=1" or "AT$PS=2" to select the target serial port.
3. Wait for the reply "\n\rOK\n\r" from the ADAM-4579
4. Send the command string "AT$PCF=dddd, [N | O | E | S | M], [5 | 6 | 7 | 8], [1 | 1.5 | 2],
where dddd is baud rate,
[N | O ...] is parity bit,
[5 | 6 ...] is the data bit
[1 | 1.5 ...] is stop bit.
Please exactly conform to the sequence and format of command.
5. Wati the reply "\n\rOK\n\r" from the ADAM-4579.
Please note this is a run-time change and the settings will be eliminated while the device reset.
That means the setting will be back to refer to the setting done by utility.
And this run-time change will not be shown on the relative utility.
|