Comments (3)
This module is a Modbus 'slave' so there must a Modbus 'master' somewhere.
You refer to the localhost IP address. Is there a Modbus application running on the RPi?
Otherwise, find the right IP address of your Modbus master.
from iot-edge-modbus.
It's been quite a while since the last post, but in case others may have seen a similar issue, I figured it would help to chime in:
Assuming that the IP address is set to the SlaveConnection
desired property field, if the intention behind setting 127.0.0.1
is to poll the host (IoT Edge device) as the Modbus device/slave/server, using 127.0.0.1
may not be the right option. This is because the Modbus module, as an IoT Edge module, is (by default) placed under the Docker daemon's azure-iot-edge
network.
You can determine the desired IP address by examining the details of the azure-iot-edge
network bridge and compare that to the network interfaces of your host device. Here is an example in an Ubuntu device I've used for testing.
// "172.18.0.1" would be the IP address of the Modbus device
$ sudo docker network inspect azure-iot-edge
[
{
"Name": "azure-iot-edge",
"Id": "f04958f1d3bf175e64d2d4ec696c79afac9572c76012122722ed392c287ca2fc",
"Created": "2021-07-16T02:42:45.303029015Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.18.0.0/16",
"Gateway": "172.18.0.1"
}
]
},
<snip>
$ ifconfig
br-f04958f1d3bf: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255
<snip>
Hope this helps.
from iot-edge-modbus.
This repository is no longer being actively maintained and will be archived. Open issues will be closed.
from iot-edge-modbus.
Related Issues (20)
- No longer being maintained HOT 2
- Invoke method not working without internet HOT 2
- ‘Operation timeout expired’ error HOT 1
- Exception Code 2 - StartAddress being passed as 0 HOT 4
- Modbus TCP problem with Siemens PAC2200
- Update to new iotedge version HOT 2
- Data not being recieved in IoT Central HOT 3
- Please update RTU configuration in Readme.md HOT 2
- Windows Container Modbus module on Windows 10 1809 LTS supports RTU? HOT 1
- Only device that contains lots of registers, how to organize data? HOT 2
- Error building image HOT 2
- Support for arm64v8 HOT 3
- Add content properties to the message sent to the output HOT 4
- REAL type value is not correct in the output HOT 3
- Signalizing slave communication error HOT 1
- The While loop in the Start method freezes, when the module has more than 500 active operations HOT 2
- Cannot read data from slave HOT 2
- IoT Central Device template for iot-edge-modbus module HOT 1
- Module healthy but no data received from the device HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iot-edge-modbus.