
BrandonP (Customer) asked a question.
Im not sure whether Im setting the command messages correctly. I do get a connection but no feedback. currently just trying to read firmware P.0.000
DEVICE_IP = "192.168.3.20"
DEVICE_PORT = 44818 # Ethernet/IP port
object_class = b'\x03\x00' # Object class = 0x300
instance = b'\x03' # Instance = 0x03
attribute = b'\x00' # Attribute = 0x00
explicit_message = object_class, instance,attribute
# Create a socket connection
try:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.connect((DEVICE_IP, DEVICE_PORT))
print("Connected to the device.")
# Send the Explicit Message
sock.send(explicit_message)
print("Explicit Message sent successfully.")
print(explicit_message)
# Receive response
response = sock.recv(1024)
print(f"Response: {response}")
print(response)
Not familiar with Python but are you using an EtherNet/IP library? This should help with a lot of the setup for the configuration of the messaging via EtherNet/IP. If not, then there is more setup required. I have attached a Wireshark capture that should help provide the information needed to aid in your coding. Otherwise, it is beyond my scope to help provide further assistance. Hope this helps!
Example_ExplicitMessage_Class0x0300_Instance0x00_Attribute0x00
I’ve been handling message automation for a client, and using the whatsapp business api made things way smoother since it works with simple HTTP calls and doesn’t sneak in per-message fees. The quick QR onboarding was a lifesaver, and the webhooks helped me catch incoming messages without extra setup. If you’re building anything with chat or notifications, it keeps the whole process pretty hassle-free.