Support Forums
custom connection to command interface via ethernet

I'm sure this is a simple question, but I can't find the answer!
I want to establish a direct connection to the command interface over a local network using my software. The final aim is to have scripts running on a linux web server retreiving real time measurements from the DT80.
The DT80 is happily running on a local network, and there is no problem connecting with deTransfer and other utilities. The internal web and ftp servers are running smoothly too.
My initial test is to establish a connection to the command interface on port 7700 with a terminal program to prove the connection, but I must be missing something. I can't get any response from the DT80. Do I need to send an initial string with user name and password?
There must be an explanation or example of this somewhere, and I'd be very grateful if anyone can point me in the right direction.

I'm sure this is a simple question, but I can't find the answer! I want to establish a direct connection to the command interface over a local network using my software. The final aim is to have scripts running on a linux web server retreiving real time measurements from the DT80. The DT80 is happily running on a local network, and there is no problem connecting with deTransfer and other utilities. The internal web and ftp servers are running smoothly too. My initial test is to establish a connection to the command interface on port 7700 with a terminal program to prove the connection, but I must be missing something. I can't get any response from the DT80. Do I need to send an initial string with user name and password? There must be an explanation or example of this somewhere, and I'd be very grateful if anyone can point me in the right direction.

Hi James,

Your approach was correct you can use the logger IP address (on the Ethernet connection) and port 7700 using an external command interface. We have done this using Hyperterminal, Putty, or even an Android WiFi terminal app for mobile phones in case you have connected the logger to a wireless network.

If your logger is protected by the user role setting or command password, you will not get any response. You can try to send the password command, if it returns 1 then there is an active command password. Or you can use the sign on command, followed by admin for both username and password to get past the user role security.

A firewall is another thing that can prevent the connection.

Best regards,
dataTaker Expert

Hi James, Your approach was correct you can use the logger IP address (on the Ethernet connection) and port 7700 using an external command interface. We have done this using Hyperterminal, Putty, or even an Android WiFi terminal app for mobile phones in case you have connected the logger to a wireless network. If your logger is protected by the user role setting or command password, you will not get any response. You can try to send the **password** command, if it returns 1 then there is an active command password. Or you can use the **sign on** command, followed by **admin** for both username and password to get past the user role security. A firewall is another thing that can prevent the connection. Best regards, dataTaker Expert

"""
Python 3.11 code to read measurement data from DT80 datalogger
"""
import socket
HOST = "192.168.1.100" # DT80 IP
PORT = 7700
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((HOST, PORT))

# enable logging
s.send(b"/E/M/R\r\n")
# read data
data = s.recv(1024).decode("utf-8")
print(f"{data}")
# disconnect
s.send(b"/e/m/r\r\n")
""" Python 3.11 code to read measurement data from DT80 datalogger """ import socket HOST = "192.168.1.100" # DT80 IP PORT = 7700 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((HOST, PORT)) # enable logging s.send(b"/E/M/R\r\n") # read data data = s.recv(1024).decode("utf-8") print(f"{data}") # disconnect s.send(b"/e/m/r\r\n")
154
2
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