Changes

no edit summary
Line 159: Line 159:  
  $ modbus write -w -p 12345 {{#ifeq:{{{series}}}|TRB14X|192.168.2.1|192.168.1.1}} %MW203 1
 
  $ modbus write -w -p 12345 {{#ifeq:{{{series}}}|TRB14X|192.168.2.1|192.168.1.1}} %MW203 1
 
}}
 
}}
{{#ifeq:{{{mobile}}}|1|
+
{{#ifeq:1|1|
 
As you can see, the only difference is the digit at the end - '''0 for OFF''', '''1 for ON'''. The same is true for all other parameters that accept only two input values.
 
As you can see, the only difference is the digit at the end - '''0 for OFF''', '''1 for ON'''. The same is true for all other parameters that accept only two input values.
   Line 188: Line 188:  
Let’s say we have the following phone number, which would be used as a recipient <b>0011123456789</b> (where 00 is a substitute for a plus sign and 111 represents the country code). This number’s representation in hexadecimal format would be 30 30 31 31 31 32 33 34 35 36 37 38 39, but since <b>10</b> registers are reserved for a phone number, the remaining spaces should be filled with zeroes, resulting in the following phone number representation:  
 
Let’s say we have the following phone number, which would be used as a recipient <b>0011123456789</b> (where 00 is a substitute for a plus sign and 111 represents the country code). This number’s representation in hexadecimal format would be 30 30 31 31 31 32 33 34 35 36 37 38 39, but since <b>10</b> registers are reserved for a phone number, the remaining spaces should be filled with zeroes, resulting in the following phone number representation:  
 
  0x3030 0x3131 0x3132 0x3334 0x3536 0x3738 0x3900 0 0 0
 
  0x3030 0x3131 0x3132 0x3334 0x3536 0x3738 0x3900 0 0 0
+
 
 
Here 0x characters are needed for the modbus-cli application to treat input as hexadecimal values.
 
Here 0x characters are needed for the modbus-cli application to treat input as hexadecimal values.
 
+
----
 
* Message:
 
* Message:
    
If we would want to send <b>Hello, this is a test SMS message</b>, this message’s representation in hexadecimal format would be  
 
If we would want to send <b>Hello, this is a test SMS message</b>, this message’s representation in hexadecimal format would be  
 
  0x4865 0x6C6C 0x6F2C 0x2074 0x6869 0x7320 0x6973 0x2061 0x2074 0x6573 0x7400
 
  0x4865 0x6C6C 0x6F2C 0x2074 0x6869 0x7320 0x6973 0x2061 0x2074 0x6573 0x7400
 
+
----
 
* Full command:
 
* Full command:
  

Navigation menu