modbus device king pigeon S272 #78
Replies: 7 comments 10 replies
-
Looking at http://www.gprs-m2m.com/EnproductShow.asp?ID=423 I would guess this library works with this device. RTU example can be found here https://github.com/aldas/modbus-tcp-client/blob/master/examples/rtu.php If you have problems getting response I suggest checking these issues to help you diagnose what is wrong: |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your answer aldas, I was seeing your following code https://github.com/aldas/go-modbus-client |
Beta Was this translation helpful? Give feedback.
-
Looking at the screenshot and considering your idea I have more questions than answers.
|
Beta Was this translation helpful? Give feedback.
-
This is the screenshot that you see is currently configured so that the data goes to the kiiot platform (http://www.my-rtu.com/login) where the King pigeon company provided me with a username and password and also the serial number of the device and it is the login message that you observe in the configuration part, I think that with that serial number that they provided me is to identify my device on the company's platform, I decided to hire their platform, however if not contract the device has the ability to work on a server designed and customized to my needs, for example I can better visualize the process and variables. I am attaching the answers of the company's technicians to some emails that I send requesting information These devices are at a good price for the functionalities that it has and offer the platform at a good price, but I only needed to make a prototype a web server to visualize that information and store it in a database to fulfill a master's thesis. |
Beta Was this translation helpful? Give feedback.
-
Okey, assuming your device does not need login "handshake" and can work with regular modbus servers this is what you can do to begin with
This example output of 2 modbus requests x@x:~/code/$ diagslave -p 5020 -m enc
diagslave 3.1 - FieldTalk(tm) Modbus(R) Diagnostic Slave Simulator
Copyright (c) 2002-2018 proconX Pty Ltd
Visit https://www.modbusdriver.com for Modbus libraries and tools.
Protocol configuration: Encapsulated RTU over TCP
Slave configuration: address = -1, master activity t/o = 3.00
IP configuration: port = 5020, connection t/o = 60.00
Server started up successfully.
Listening to network (Ctrl-C to stop)
.
validateMasterIpAddr: accepting connection from 127.0.0.1
Slave 2: readHoldingRegisters from 256, 1 references
..
validateMasterIpAddr: accepting connection from 127.0.0.1
Slave 2: readHoldingRegisters from 256, 1 references
... This validates it is possible to use regular modbus servers. After that it is worth starting to tweak https://github.com/aldas/modbus-tcp-client/blob/master/examples/example_response_server.php example to accept modbus RTU requests and storing them somewhere NB: if you can configure gateway to send Modbus TCP instead of Modbus RTU over TCP it would be (much) easier. |
Beta Was this translation helpful? Give feedback.
-
Hi aldas I did the test with the wireshark intercepting the traffic on my gateway and accessing the KIIOT platform I have the file, I would like you to see it, the IP of the KIIOT page is 47.244.37.235. alonso |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
hi aldas
I discovered your repositories related to modbus client, I am interested in knowing if it works for a King Pigeon Modbus RTU TCP 3G / 4G device this device sends a heartbeat every 60 seconds, I want to develop a php server that gets the device's registration states and addresses them to my host where I have the mysql database, this device is configured ip and port.
I would like to explain you better by email if you would like to provide it to me, I am Alonso Galindo from Mexico
regards
Beta Was this translation helpful? Give feedback.
All reactions