Hi,
I would like to monitor devices on my home network, I found a Flowcode document that seemed to do exactly what I wanted to do
https://matrixtsl.com/wp-content/upload ... .08.24.pdf
I have not read it all as I am not sure it is still relevant, it is a 2018 document.
On page 40 it shows a component "PING IP address" component which does not seem to be available now?
Also it mentions examples in Flowcode "TCP_IP\Examples" folder which I cannot find.
Regards,
Bob
Is there a PING component?
-
- Posts: 297
- http://meble-kuchenne.info.pl
- Joined: Sat Mar 19, 2022 4:53 pm
- Has thanked: 28 times
- Been thanked: 32 times
-
- Matrix Staff
- Posts: 2033
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 634 times
- Been thanked: 684 times
Re: Is there a PING component?
Hello.
The component used in that course is a TCP/IP W5500.
I have checked the website that is supposed host the example course files and they are not where they should be.
I will let you know when they have been added.
If you click help on the component it will take you to 3 examples to hopefully get you started.
The component used in that course is a TCP/IP W5500.
I have checked the website that is supposed host the example course files and they are not where they should be.
I will let you know when they have been added.
If you click help on the component it will take you to 3 examples to hopefully get you started.
Martin
Re: Is there a PING component?
Tanks Martin,
I did look at that component but could not see a "Ping IP address" so I wondered if it was a custom creation?
A lot of the document is not making sense to me so I think I will need the examples to explain it better.
Regards,
Bob
I did look at that component but could not see a "Ping IP address" so I wondered if it was a custom creation?
A lot of the document is not making sense to me so I think I will need the examples to explain it better.
Regards,
Bob
Re: Is there a PING component?
Thanks Martin,
I just need to book a bit of "Pub Time" to try to understand it all.
If I do get working what I have planned it will be very useful as 2 home automation devices dropped off my network and I only found out when I wanted to update one of them.
Bob
I just need to book a bit of "Pub Time" to try to understand it all.
If I do get working what I have planned it will be very useful as 2 home automation devices dropped off my network and I only found out when I wanted to update one of them.
Bob
Re: Is there a PING component?
Hi Martin,
Thank you for posting the examples, I would not have been able to work it out from the initial document alone but all is coming clear with the aid of the examples.
I do have one question which I cannot find a definitive answer.
On page 41 it mentions the checksum is pre calculated for the sent message.
Regards,
Bob
Thank you for posting the examples, I would not have been able to work it out from the initial document alone but all is coming clear with the aid of the examples.
I do have one question which I cannot find a definitive answer.
On page 41 it mentions the checksum is pre calculated for the sent message.
That is fine for the example but I have spent ages searching the web and cannot for the life of me figure out how to do this if I need to change things. It is not so much the maths but what data is used for the calculation, I have found there are so many different answers?The checksum
We can either calculate the checksum values on the fly, or for set messages calculate them in advance and use
those values.
In this case we have pre-calculated the checksum to be 7, 92, so we can add those two bytes in next.
Regards,
Bob
-
- Valued Contributor
- Posts: 1642
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 362 times
- Been thanked: 575 times
Re: Is there a PING component?
Hi Bob
Do you actually need to ping, or do you just need some way to check "if alive"?
If the latter there are many ways you could do this.
You could have each device send a heartbeat every hour or day and you can check for this. When it arrives a flag is set corresponding to that unique device etc.
As you presumeably know the IP address of each device, you could send a preconfigured request that wouldn't occur in normal use (e.g. "????") and if the device receives this it sends an appropriate reply.
Of course this assumes you are in control of both ends, in that you decide the code that runs. If you are interacting with 3rd-party kit then ping is a good way to check.
Regards
Do you actually need to ping, or do you just need some way to check "if alive"?
If the latter there are many ways you could do this.
You could have each device send a heartbeat every hour or day and you can check for this. When it arrives a flag is set corresponding to that unique device etc.
As you presumeably know the IP address of each device, you could send a preconfigured request that wouldn't occur in normal use (e.g. "????") and if the device receives this it sends an appropriate reply.
Of course this assumes you are in control of both ends, in that you decide the code that runs. If you are interacting with 3rd-party kit then ping is a good way to check.
Regards
Re: Is there a PING component?
Hi,
I am not sure what is happening here but this is the second time recently that I replied to a post only for it not to show up??
Some devices I do have control over but not all, some are DHCP as well. A lot of my issues are probably my own doing where I alter the network and find out later that all is not well. Also WiFi is not great in the house and the heating controller can be a pain.
I have looked at a few programs that supposedly do what I want, the paid ones are stupidly expensive and need a PHD to understand the data.
My plan is to just ping each device and show if it is connected and later hopefully log to a database so if it drops off the network and comes back it will be flagged up.
If (when) I do get it working I think it will be a good project to learn app developer.
Bob
I am not sure what is happening here but this is the second time recently that I replied to a post only for it not to show up??
Some devices I do have control over but not all, some are DHCP as well. A lot of my issues are probably my own doing where I alter the network and find out later that all is not well. Also WiFi is not great in the house and the heating controller can be a pain.
I have looked at a few programs that supposedly do what I want, the paid ones are stupidly expensive and need a PHD to understand the data.
My plan is to just ping each device and show if it is connected and later hopefully log to a database so if it drops off the network and comes back it will be flagged up.
If (when) I do get it working I think it will be a good project to learn app developer.
Bob
Re: Is there a PING component?
Hi,
I have looked at the ARP example and that looks exactly like what I need, no checksum (although it would be nice to know how it is calculated). It shows the MAC address as well which will be handy for working out what some of the devices are.
Bob
I have looked at the ARP example and that looks exactly like what I need, no checksum (although it would be nice to know how it is calculated). It shows the MAC address as well which will be handy for working out what some of the devices are.
Bob
-
- Valued Contributor
- Posts: 1642
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 362 times
- Been thanked: 575 times
Re: Is there a PING component?
Hi Bob
Sounds like you now have a good handle on things. Keep us updated with progress as I am sure it will interest others.
Regards
Sounds like you now have a good handle on things. Keep us updated with progress as I am sure it will interest others.
Regards