Reading values from Gateway Component

Topics about the Hardware of Revolution Pi
Post Reply
melissamariab
Posts: 11
Joined: 07 Apr 2020, 16:34

Reading values from Gateway Component

Post by melissamariab »

Image

Does anyone know why I cant read values from my Gateway Modbus TCP, using QModMaster?
Attachments
pq.png
pq.png (279.3 KiB) Viewed 8180 times
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Reading values from Gateway Component

Post by dirk »

Hi the have a look at the user manual in the downlods section. Have a look at chapter 5 Configuration. Have a look at the FAQ for the Modular Gateway modules.
Check that the Power LED is green. Check the IP address of the DIP switches. Open http://IP of the device. Can you ping it? Chapter 5.3 shows the Modbus register addresses.
melissamariab
Posts: 11
Joined: 07 Apr 2020, 16:34

Re: Reading values from Gateway Component

Post by melissamariab »

I have seen the 5.3 section, but I do not know the address of my gateway component.
My default gateway has the IP address "192.168.88.1". So I believe that my gateway component has the IP "192.168.88.x"? but how can I found out x?
Also, how can I know the IP addresses of the DIP switches?

Thank you very much
User avatar
D.Costa
Posts: 13
Joined: 27 Apr 2020, 12:35

Re: Reading values from Gateway Component

Post by D.Costa »

melissamariab wrote: 07 Sep 2020, 13:14 I have seen the 5.3 section, but I do not know the address of my gateway component.
My default gateway has the IP address "192.168.88.1". So I believe that my gateway component has the IP "192.168.88.x"? but how can I found out x?
Also, how can I know the IP addresses of the DIP switches?

Thank you very much
Perhaps I can help;

First of all, look to the 5.2 point of the manual. The default fix IP adress is 192.168.0.X, and you must define the X using the DIP switch, for example:

Set_IP_DIP_Switch.jpg
Set_IP_DIP_Switch.jpg (19.16 KiB) Viewed 8122 times
Now you can access to the configuration web server using http://192.168.0.20

Note: You must be in the same IP range.
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Reading values from Gateway Component

Post by dirk »

Thank you David I could not explain it better.
The only option to set the IP to an other network is to
  • switch DIP swtiches to DHCP
  • and configure your DHCP server to assign the MAC address of the device the IP address you want.
melissamariab
Posts: 11
Joined: 07 Apr 2020, 16:34

Re: Reading values from Gateway Component

Post by melissamariab »

8e89bf6679ea54c3-photo-full.jpg
8e89bf6679ea54c3-photo-full.jpg (504.34 KiB) Viewed 8053 times
Hello, thank you so much for helping me!

So for example, in this case, since my IP is 192.168.88.x,
I have 192.168.88.16 ?

Unfortunately I still couldnt access the website.

And about the QModMaster, in the TCP section, should I put the gateway component IP? Or should I change the IP of my gateway component to the same one as my RevPi?
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Reading values from Gateway Component

Post by dirk »

Hi so if you switch the DIP Switches NOT to DHCP your IP address is 192.168.0.X -> in your case 192.168.0.16
The QModMaster has to be set to the IP address of your modular gateway.
melissamariab
Posts: 11
Joined: 07 Apr 2020, 16:34

Re: Reading values from Gateway Component

Post by melissamariab »

I think my QModMaster is not reading values because the gateway component is in one network "192.168.0.X"
and my RevPi is in another "192.168.88.X"

So, I decided to change the IP of my router automatically to the 192.168.0.X range, I thought that after that, I would have a new IP for my RevPi but it did not happen. Does anyone know why?
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Reading values from Gateway Component

Post by dirk »

Dear melissamariab, the pictures you posted show me that the position of the Modular Gateway does not match the PiCtory configuration.
You can check the configuration status with the command "piTest -d".
So please just open PiCtory and switch the Gateway to the left position.
Then "File-> Save as default configuration" and "Tools-> Reset Driver".
Post Reply