Support Forums
Serial function on HOST port

I am just getting acquainted with the DT81. I am reading a character string from a Gill Instrument Windsonic.

I had a TCP/IP socket program that queried the Windsonic directly but was instructed to insinuate the datataker for network data reduction purposes. I had been using vector statistics on the reading but will be looking at using your Radial statistical algorithm instead.

Now to the point: I am trying to communicate out the 2SERIAL to the Windsonic. I have set all the comm parameters consistently between the Windsonic and the host_port (2SERIAL) of the DT81. I have also set

PROFILE "HOST_PORT" "FUNCTION"="SERIAL"

When ever I try to invoke the 2SERIAL I receive syntax error messages. I use simple writes, simple reads, and a combination and always get the same syntax error (115) which always indicates the character after the closing parentheses.

2SERIAL("{Q\013\010}") 
"Channel list error at column 23 [ 013\010}')<err> ]" 
2SERIAL("%c[1cv]%c[2cv]%c[3cv]%c[4cv]") 
"Channel list error at column 40 [ ]%c[4cv]')<err> ]" 
2SERIAL("{Q\013\010}%c[1cv]%c[2cv]%c[3cv]%c[4cv]") 
"Channel list error at column 51 [ ]%c[4cv]')<err> ]"

What simple thing am I missing?

I am just getting acquainted with the DT81. I am reading a character string from a Gill Instrument Windsonic. I had a TCP/IP socket program that queried the Windsonic directly but was instructed to insinuate the datataker for network data reduction purposes. I had been using vector statistics on the reading but will be looking at using your Radial statistical algorithm instead. Now to the point: I am trying to communicate out the 2SERIAL to the Windsonic. I have set all the comm parameters consistently between the Windsonic and the host_port (2SERIAL) of the DT81. I have also set ```` PROFILE &quot;HOST_PORT&quot; &quot;FUNCTION&quot;=&quot;SERIAL&quot; ```` When ever I try to invoke the 2SERIAL I receive syntax error messages. I use simple writes, simple reads, and a combination and always get the same syntax error (115) which always indicates the character after the closing parentheses. ```` 2SERIAL(&quot;{Q\013\010}&quot;) &quot;Channel list error at column 23 [ 013\010}&#039;)&lt;err&gt; ]&quot; 2SERIAL(&quot;%c[1cv]%c[2cv]%c[3cv]%c[4cv]&quot;) &quot;Channel list error at column 40 [ ]%c[4cv]&#039;)&lt;err&gt; ]&quot; 2SERIAL(&quot;{Q\013\010}%c[1cv]%c[2cv]%c[3cv]%c[4cv]&quot;) &quot;Channel list error at column 51 [ ]%c[4cv]&#039;)&lt;err&gt; ]&quot; ```` What simple thing am I missing?

Good afternoon skaar,

What version of firmware is the DT81 running? 2SERIAL command was introduced in V6.18 so if you have an earlier firmware version you will need to upgrade.
The current firmware is V7.04 and can be down loaded from our web page.

Cheers,
Roger

Good afternoon skaar, What version of firmware is the DT81 running? 2SERIAL command was introduced in V6.18 so if you have an earlier firmware version you will need to upgrade. The current firmware is V7.04 and can be down loaded from our web page. Cheers, Roger

I appreciate your reply. I found that the firmware version was both documented incorrectly with my recent purchases but was also prior to 6.18. I downloaded 7.04 for DT81 series 1 and the issue is still the same.

I keep getting a channel list error E12 even though I have been very careful with my syntax. I have lifted the loop-back example out of the text (page 232, DT80 User's Manual) and used syntax that you provided and still get the same error. Note: Yes I used a loop back circuit.

I didn't think that it would make a difference but I wanted to be sure that it was verified as correct. I am doing this from the text window of datalogger if that has relevance. I automatically assume that this is a dumb error by me but I really don't see it. Do you have additional thoughts?

I appreciate your reply. I found that the firmware version was both documented incorrectly with my recent purchases but was also prior to 6.18. I downloaded 7.04 for DT81 series 1 and the issue is still the same. I keep getting a channel list error E12 even though I have been very careful with my syntax. I have lifted the loop-back example out of the text (page 232, DT80 User&#039;s Manual) and used syntax that you provided and still get the same error. Note: Yes I used a loop back circuit. I didn&#039;t think that it would make a difference but I wanted to be sure that it was verified as correct. I am doing this from the text window of datalogger if that has relevance. I automatically assume that this is a dumb error by me but I really don&#039;t see it. Do you have additional thoughts?

Good morning skaar,

What program are you using to test the code? In DeTransfer you will need to enter and extra \ in the code

The code in the manual is

1SERIAL("\e{ABCD,1234\013}%4s[1$],%4d[1CV]") 1$ 1CV

but in DeTransfer you will need to send

1SERIAL("\\e{ABCD,1234\013}%4s[1$],%4d[1CV]") 1$ 1CV

(Note the extra \ in front of the \e)

If you are using the text window in DeLogger simple copy and paste the code as is. I have tested the code and it does work.

Cheers,
Roger

Good morning skaar, What program are you using to test the code? In DeTransfer you will need to enter and extra \ in the code The code in the manual is ```` 1SERIAL(&quot;\e{ABCD,1234\013}%4s[1$],%4d[1CV]&quot;) 1$ 1CV ```` but in DeTransfer you will need to send ```` 1SERIAL(&quot;\\e{ABCD,1234\013}%4s[1$],%4d[1CV]&quot;) 1$ 1CV ```` (Note the extra \ in front of the \e) If you are using the text window in DeLogger simple copy and paste the code as is. I have tested the code and it does work. Cheers, Roger

I am using the Text window of DeLogger. I changed the 1SERIAL to 2SERIAL, I defined the host_port as listed below:

S,082514,2008/05/28,15:28:07,0.216308,90;"HOST_PORT","BPS","9600";
S,082514,2008/05/28,15:28:07,0.220214,90;"HOST_PORT","FLOW","NONE";
S,082514,2008/05/28,15:28:07,0.222045,90;"HOST_PORT","DATA_BITS","8";
S,082514,2008/05/28,15:28:07,0.223754,90;"HOST_PORT","STOP_BITS","1";
S,082514,2008/05/28,15:28:07,0.225463,90;"HOST_PORT","PARITY","NO";
S,082514,2008/05/28,15:28:07,0.227172,90;"HOST_PORT","FUNCTION","SERIAL";
S,082514,2008/05/28,15:28:07,0.228759,99;;

Then I entered:

2SERIAL("\e{ABCD,1234\013}%4s[1$],%4d[1CV]")1$ 1CV

only to receive:

E,082514,2008/05/28,15:29:21,0.008056,12;"Channel list error at column 45 [ %4d[1CV]')<err>1$ 1CV ]";

This is giving me a syntax error, and as you stated the syntax is correct. I know that I am properly communicating with the DT81 because I am able to SATTN and CATTN, RESET, TESTn, STATUSn, PH, EEA, etc.

I know that I entered it in right, but I cut and paste your code and had the same effect; syntax error.

I am using the Text window of DeLogger. I changed the 1SERIAL to 2SERIAL, I defined the host_port as listed below: ```` S,082514,2008/05/28,15:28:07,0.216308,90;&quot;HOST_PORT&quot;,&quot;BPS&quot;,&quot;9600&quot;; S,082514,2008/05/28,15:28:07,0.220214,90;&quot;HOST_PORT&quot;,&quot;FLOW&quot;,&quot;NONE&quot;; S,082514,2008/05/28,15:28:07,0.222045,90;&quot;HOST_PORT&quot;,&quot;DATA_BITS&quot;,&quot;8&quot;; S,082514,2008/05/28,15:28:07,0.223754,90;&quot;HOST_PORT&quot;,&quot;STOP_BITS&quot;,&quot;1&quot;; S,082514,2008/05/28,15:28:07,0.225463,90;&quot;HOST_PORT&quot;,&quot;PARITY&quot;,&quot;NO&quot;; S,082514,2008/05/28,15:28:07,0.227172,90;&quot;HOST_PORT&quot;,&quot;FUNCTION&quot;,&quot;SERIAL&quot;; S,082514,2008/05/28,15:28:07,0.228759,99;; ```` Then I entered: ```` 2SERIAL(&quot;\e{ABCD,1234\013}%4s[1$],%4d[1CV]&quot;)1$ 1CV ```` only to receive: ```` E,082514,2008/05/28,15:29:21,0.008056,12;&quot;Channel list error at column 45 [ %4d[1CV]&#039;)&lt;err&gt;1$ 1CV ]&quot;; ```` This is giving me a syntax error, and as you stated the syntax is correct. I know that I am properly communicating with the DT81 because I am able to SATTN and CATTN, RESET, TESTn, STATUSn, PH, EEA, etc. I know that I entered it in right, but I cut and paste your code and had the same effect; syntax error.

Good morning Skaar,

There is a syntax error in the code you posted. The needs to be a space between the ) and the 1$

2SERIAL("\e{ABCD,1234\013}%4s[1$],%4d[1CV]") 1$ 1CV

Cheers
Roger

Good morning Skaar, There is a syntax error in the code you posted. The needs to be a space between the ) and the 1$ ```` 2SERIAL(&quot;\e{ABCD,1234\013}%4s[1$],%4d[1CV]&quot;) 1$ 1CV ```` Cheers Roger

Thank you. I have resolved my issue. My firmware upgrade did not go in every capacity. I reinstalled the original and re-installed the newest version and it works.

I am not sure what happened but all is well now. Thanks.

Thank you. I have resolved my issue. My firmware upgrade did not go in every capacity. I reinstalled the original and re-installed the newest version and it works. I am not sure what happened but all is well now. Thanks.
35
6
2
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