Support Forums
Serial communication

Hi,

I am trying to communicate via the RS232 host_port with a controller. The controller uses ASCII protocol (38k4, 8N1). With hyperterminal I can communicate with the controller, I get an answer back. With the datataker I get a timeout on the read.
The command I use is: 2SERIAL("\e{:06040401210120\013\010}%s[1$]"). When I send the command to hyperterminal, it looks if it has the correct format.

Greets,
Friedrich

Hi, I am trying to communicate via the RS232 host_port with a controller. The controller uses ASCII protocol (38k4, 8N1). With hyperterminal I can communicate with the controller, I get an answer back. With the datataker I get a timeout on the read. The command I use is: 2SERIAL("\e{:06040401210120\013\010}%s[1$]"). When I send the command to hyperterminal, it looks if it has the correct format. Greets, Friedrich

Hi,

I would like help you, but we have only different DT80 models in our range.

You write from the RS232-Port, not from the smart serial port!? It is very urgent for the next help steps=solution.
RS232-port ==1SERIAL
smart-port ==2SERIAL

Did you also set the com-parameter in the datataker (38400,8,N,1) command (temporary setting!): PH=38400,8,N,1 for RS232; PS=38400,8,N,1 for smart-port?
Also: Before a generic serial channel can be defined on this port, the port function must be set to SERIAL, as follows:
PROFILE HOST_PORT FUNCTION=SERIAL (RS232)
PROFILE SERSEN_PORT FUNCTION=SERIAL (smart-port)
PROFILE SERSEN_PORT MODE=RS232 (smart-port)

Do you use detransfer for the programming, then you must write:
2SERIAL("\e{:06040401210120\013\010}%s[1$]") 'smart-port
1SERIAL("\e{:06040401210120\013\010}%s[1$]") 'RS232

Please use also temporary P56=1 for more information/hints.

Fork

Hi, I would like help you, but we have only different DT80 models in our range. You write from the RS232-Port, not from the smart serial port!? It is very urgent for the next help steps=solution. RS232-port ==1SERIAL smart-port ==2SERIAL Did you also set the com-parameter in the datataker (38400,8,N,1) command (temporary setting!): PH=38400,8,N,1 for RS232; PS=38400,8,N,1 for smart-port? Also: Before a generic serial channel can be defined on this port, the port function must be set to SERIAL, as follows: PROFILE HOST_PORT FUNCTION=SERIAL (RS232) PROFILE SERSEN_PORT FUNCTION=SERIAL (smart-port) PROFILE SERSEN_PORT MODE=RS232 (smart-port) Do you use detransfer for the programming, then you must write: 2SERIAL("\\e{:06040401210120\\013\\010}%s[1$]") 'smart-port 1SERIAL("\\e{:06040401210120\\013\\010}%s[1$]") 'RS232 Please use also temporary P56=1 for more information/hints. Fork

Good morning Fork,

To clarify

1/ The serial ports are:
Serial sensor port on the front is 1Serial.
Host serial port on the side is 2Serial.

The Host serial port is RS232 only. The Serial Sensor Port can be RS232, RS422 or RS485.

2/ Configuring the ports.
Use the profile setting to configure the comm port settings.
The command PS and PH have been replaced by the profile settings.

3/ Models of loggers.
The commands at the same for all models of DT8x that support the serial input function.
The commands used to parse the string will be identical for all models.

4/ Serial string.
The most common problem is in the parsing string. Please post a copy of the string you are trying to read so we can work out is you are reading it correctly.

Cheers

Roger

Good morning Fork, To clarify 1/ The serial ports are: Serial sensor port on the front is 1Serial. Host serial port on the side is 2Serial. The Host serial port is RS232 only. The Serial Sensor Port can be RS232, RS422 or RS485. 2/ Configuring the ports. Use the profile setting to configure the comm port settings. The command PS and PH have been replaced by the profile settings. 3/ Models of loggers. The commands at the same for all models of DT8x that support the serial input function. The commands used to parse the string will be identical for all models. 4/ Serial string. The most common problem is in the parsing string. Please post a copy of the string you are trying to read so we can work out is you are reading it correctly. Cheers Roger

Dear Friedrich,

sorry because the mix-up of 1SERIAL and 2SERIAL. Roger has corrected yet.

Fork

Dear Friedrich, sorry because the mix-up of 1SERIAL and 2SERIAL. Roger has corrected yet. Fork

Thank you Fork and Roger for your reply,

I attached a file with the datataker commands and settings. The second part is from hyperterminal (settings) and the reply (string) from the controller.

DT85> profile host_port
[HOST_PORT]
BPS = 38400
DATA_BITS = 8
STOP_BITS = 1
PARITY = NONE
FLOW = NONE
*FUNCTION = SERIAL
DT85> 2SERIAL("\e{:06040401210120^M^J}%s[1$]")
2SERIAL: RxBuf=0[]
2SERIAL: InputAction: "\e"
2SERIAL: OutputActions: ":06040401210120^M^J"
2SERIAL: Tx [:06040401210120\013\010]
2SERIAL: InputAction: "%s[1$]"
dataTaker 85 E89 - Serial sensor receive timeout at control string position 30
2SERIAL 20 State

5cb9d5513b38f

5cb9d5513d304

There is no reply to the datataker, with hyperterminal I do get the shown reply.

Best regards,
Friedrich Völlink

Thank you Fork and Roger for your reply, I attached a file with the datataker commands and settings. The second part is from hyperterminal (settings) and the reply (string) from the controller. DT85> profile host_port [HOST_PORT] *BPS = 38400 DATA_BITS = 8 STOP_BITS = 1 PARITY = NONE *FLOW = NONE *FUNCTION = SERIAL DT85> 2SERIAL("\e{:06040401210120^M^J}%s[1$]") 2SERIAL: RxBuf=0[] 2SERIAL: InputAction: "\e" 2SERIAL: OutputActions: ":06040401210120^M^J" 2SERIAL: Tx [:06040401210120\013\010] 2SERIAL: InputAction: "%s[1$]" dataTaker 85 E89 - Serial sensor receive timeout at control string position 30 2SERIAL 20 State ![5cb9d5513b38f](serve/attachment&path=5cb9d5513b38f) ![5cb9d5513d304](serve/attachment&path=5cb9d5513d304) There is no reply to the datataker, with hyperterminal I do get the shown reply. Best regards, Friedrich Völlink

Hi,

Problem solved!

I had to set the flow_control to Hardware.

Thanks,
Friedrich

Hi, Problem solved! I had to set the flow_control to Hardware. Thanks, Friedrich
113
5
3
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft