Wed. Dec 1st, 2021
Android Modbus
Android Modbus


The Android Modbus dwelling web page


The goal of this program is to indicate the feasibility of a Modbus TCP HMI consumer utility for the Android platform.


I examined the consumer program utilizing a CoDeSys


xv100 panelPLC


(with Modbus TCP libraries) as a server.


I bridged the Ethernet to wi-fi utilizing the 20€ Fonera entry level.


I loaded this system in Google’s Nexus One smartphone.

.


The beginning screenshot of the smartphone.


The beginning screenshot of the panelPLC.


The utility look when the operator writes the primary phrase.


The results of writing the primary phrase within the panelPLC.


The screenshot of the panelPLC when the operator adjustments the worth of the second phrase.


The screenshot of the panelPLC when the operator has modified the worth of the second phrase.


The screenshot of the smartphone exhibits that the second phrase has been modified.


The Ethernet transactions beforehand described:

No.     Time        Source                Destination           Protocol Info
      1 0.000000    192.168.0.101         192.168.0.99          TCP      42267 > asa-appl-proto [SYN] Seq=0 Win=5840 Len=0 MSS=1460 TSV=536631 TSER=0 WS=1
      2 0.000702    MicroInn_00:c7:99     Broadcast             ARP      Who has 192.168.0.101?  Tell 192.168.0.99
      3 2.951506    MicroInn_00:c7:99     Broadcast             ARP      Who has 192.168.0.101?  Tell 192.168.0.99
      4 2.954412    Htc_96:0a:68          MicroInn_00:c7:99     ARP      192.168.0.101 is at 00:23:76:96:0a:68
      5 2.954984    192.168.0.99          192.168.0.101         TCP      asa-appl-proto > 42267 [SYN, ACK] Seq=0 Ack=1 Win=33580 Len=0 MSS=1460 WS=0 TSV=0 TSER=0
      6 2.962215    192.168.0.101         192.168.0.99          TCP      42267 > asa-appl-proto [ACK] Seq=1 Ack=1 Win=5840 Len=0 TSV=536927 TSER=0
      7 2.982658    192.168.0.101         192.168.0.99          Modbus/TCP    question [ 1 pkt(s)]: trans:     0; unit:   1, func:   3: Read a number of registers.
      8 3.032716    192.168.0.99          192.168.0.101         Modbus/TCP response [ 1 pkt(s)]: trans:     0; unit:   1, func:   3: Read a number of registers.
      9 3.035050    192.168.0.101         192.168.0.99          TCP      42267 > asa-appl-proto [ACK] Seq=13 Ack=14 Win=5840 Len=0 TSV=536935 TSER=57232
    130 23.464980   192.168.0.101         192.168.0.99          Modbus/TCP    question [ 1 pkt(s)]: trans:     0; unit:   1, func:  16: Write Multiple Registers.
    131 23.514588   192.168.0.99          192.168.0.101         Modbus/TCP response [ 1 pkt(s)]: trans:     0; unit:   1, func:  16: Write Multiple Registers.
    132 23.518533   192.168.0.101         192.168.0.99          TCP      42267 > asa-appl-proto [ACK] Seq=510 Ack=546 Win=5840 Len=0 TSV=538983 TSER=57437

The Wireshark .pcap file of the transactions:
android_modbus.pcap


A video of the operation utilizing the Eclipse emulator.


Of course pages might be personalized the way in which you favor…
Here are some examples…

If you wish to contact me… possibly to fee me a improvement…
click on on the next hyperlink so as to add me to your Skype contacts listing (nickname:CoDeSys.CANopen).



By admin