Views:


Summarized by AI

 

🧾 Description 

How to send a message in 2-ways using Eth IP profile and EIP program

Setting (red = mandatory; blue = suggested):

  • Ethernet interface (HA19)

  • Ethernet IP protocol (ETSD00)

  • ETH active service = 03 (ETAS03)               // sets the gun able to manage 2-ways messages

  • Ignore host commands (IFIH01)                 // as every 2-ways transaction

  • 2-ways (STTX02)

  • Large radio protocol timeout (for testing purpose only) -> STPT15 (15sec)

 

🛠️ Resolution Steps 


1. Check the eth address of the base (use netosprog, or any other tool, if you don’t know it)




2.
Open EIP to the above found IP address.
To be able to receive a barcode, set on EIP the following parameters:
Service code = e;
class = 64;
instance = 1;
Attribute = 7;

Read a barcode.
Pressing the send umm explicit message, the barcode is received (in hex).
Note. Before to receive another barcode, you must send the confirm of the previous received.




3.
Now you can send a mex:
To send a message, 3 steps must be done.

  1. Load the message to send. To do that, you must set: Service code = 10; Class = 64; Instance = 1; Attribute = 14 (e hex) and finally the real mex in the data field (mex must be in hex format)

  2. Press the send umm explicit message button to send the message. The response box will answer with the “success” word.



 

  1. Insert the length of the previous inserted mex. Same parameters than above, except the attribute (now 13, “d” hex) and data (length of the mex in hex)

  2. Press the send umm explicit message (and see success word in the response box)



 

  1. Number of item sequence number. This is a progressive number that must be greater than the previous one used (otherwise, message won’t be sent). Pay attention to this point. Use the same parameters than above, except  Attribute (now 12, “C” hex) and data (ex: 01 00 for the first, 02 00 for the second, and so on, increasing of 1 after every message)

  2. Press the send umm explicit message (and see success word in the response box). Message should now be received by the gun.



Practical trick:
when I need only to test if a gun can receive the 2-ways answer, I don’t take care of the data read.
I’m used to load on the EIP the Mex (and press send umm explicit message), the length (and press send umm explicit message), and the number of item (without pressing send umm explicit message). Then, I read a barcode with the gun, and now I press the send umm explicit message to send the mex to the gun.

Add a comment