Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Tinkering; Like Guntering for the Connected Generation.

1910121415

Comments

  • Registered Users, Registered Users 2 Posts: 849 ✭✭✭Easten


    Change the TP Links to be on the same network as your home network which is IP - 192.168.10.XXX

    currently the TPlink are IPs - 192.168.15.254 and IP - 192.168.15.253

    Change them to IP - 192.168.10.254 and IP - 192.168.10.253



  • Registered Users, Registered Users 2 Posts: 388 ✭✭Gman1987


    From reading what Emaherx said above it wont fix the issue as they are just working between the AP and client and will still carry the signal from the router and deliver it out the LAN out of the client. However, I am going to reset them as you have suggest so everything is on the one IP network going forward.

    I have only tried access the camera via the webpage using the IP address, there is a program on a laptop too for the camera also where the connection was previously set up to but its showing that it cant establish the connection now (Same with the app). Emaherx mentioned above re client software and given its nearly a year since it was used it might be worth removing the camera there and reinstall it if I can find it!!



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    There is something not right at your router/ between your router and the AP

    You can ping the camera with laptop directly connected to the AP using the 192.168.10.x address so the wireless bridge works, logically the wireless bridge is a replacement for a cable and it does this. Really the IP addresses on the nanostations are only needed for administration of them (they actually probably have another separate subnet to talk to each other). Aligning them will be no harm but just to make administration easier in future.

    But with the Router connected you can't connect, in this scenario the router is not actually acting as a router at all (as in no data is being routed out of the home network). The router is doing two functions though,

    1 it is acting as a switch and as such connecting the AP and the laptop to the routers switch ports should work the same as connecting directly to each other. You hardly have a cross over cable in your setup? These can cause issue with some devices, but "most" modern devices can automatically detect a crossover using Auto-MDIX (check the cable between router and AP that the plugs on both ends are wired exactly the same order)

    2 the router is acting as a DHCP server, when you connect your laptop to the router do you still use the static IP or the DHCP assigned one? If DHCP what IP is it getting. Also try pinging the camera IP address with AP disconnected to rule out an IP address conflict with something else on the network. If you are using DHCP addresses and static addresses then the static addresses should be excluded from the DHCP address pool.


    If in doubt with IP Addresses for any devices its probably best to:

    Keep all subnet masks the same: 255.255.255.0

    Gateway Addresses to your Router address (its your gateway to the internet)

    DNS can be set to your routers IP, your ISP's DNS or any public DNS like Googles 8.8.8.8

    Use the same subnet for all devices that you want to communicate



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    Another thing to consider RE: the apps, if using P2P especially with some of the cheaper brands is are their P2P servers still active?



  • Registered Users, Registered Users 2 Posts: 849 ✭✭✭Easten


    They need to be on the same network, by having another network which the 192.168.15.XXX is then you would need a router on that network to route traffic to the 192.168.10.XXX network. The TPlink client acts as a switch at the AP. A switch can only work on the same network.



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    You are incorrect,

    The bridge is like a switch alright, but switches require no IP address at all as they work at the Mac address level not IP. A single switch can handle as many IP subnets as you like although those subnets cannot communicate with each other without routing they can communicate with devices in their own subnet.


    This is already proven in this instance as the laptop can communicate with the camera through the bridge when set to an IP within the same subnet. I presume it was working like this last year too.


    Switches that have IP addresses have them for management purposes only (or are capable of basic routing / VLANs and other basic services)



  • Registered Users, Registered Users 2 Posts: 849 ✭✭✭Easten


    I never said the bridge needed IP addresses to communicate what I am saying is he is using two different networks not subnets, the wireless bridge is on a totally different network to his home network, so at the access point side of the bride he would need a router to route traffic back to the home network otherwise.

    It's a simple change all he has to do is change the ip addresses of the Bridge and access point to the same network.

    Change them to IP - 192.168.10.254 and IP - 192.168.10.253



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx




    It's still incorrect

    Access points and switches are layer 2 devices, so they do not require IP addresses to work. He is using 2 different subnets, one is his core network the other a management network for the AP's, he can use the same network for both or not entirely up to him and he's already indicated that he is going to do just that. But that is not the network issue.

    It is actually fairly common in industry to use a separate management network, usually not just different IP subnets but also different VLANs.


    He is currently able to access the Camera connected to the remote nanostation with his laptop connected to the Nanostation at the house using the 192.168.10.x network.


    @Gman1987 you can actually set 2 static IP's on your laptop at the same time using the advanced button at the bottom and then adding another address.

    Set one in each Subnet then you'll be able to communicate with the devices on both networks.


    image.png




  • Registered Users, Registered Users 2 Posts: 849 ✭✭✭Easten


    You keep talking about subnets.

    Network address of his home network is 192.168.10 subnet mask 255.255.255.0 so how is 192.168.15 a subnet of this



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx



    The Camera is in the same subnet as the home network / laptop.

    the 192.168.15 subnets are used by the management ports of the 2 CPE's they do not need to be in the same subnet as the rest of the network.

    Once the bridge is established the CPE IP's are irrelevant, like you said the CPE's act like a switch, switches work at layer 2, but IP addresses are layer 3. Routers on the other hand are layer 3 devices and as the name suggest they rout IP addresses, no routing is required through a bridge.

    https://en.wikipedia.org/wiki/Bridging_(networking)



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 849 ✭✭✭Easten


    That's bridge mode, he has set up as access point <--> client

    192.168.15 network is not a subnet of 192.168.10 how can it be when the first 3 octaves are masked ?



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    He's not trying to establish a connection to a device with a 192.168.15.x IP


    The cameras IP has an IP in 192.168.10.x range. When the laptop is connected to the CPE at the house with an address in the 192.168.10.x range he can access the camera therefore there is a bridge, if it was not a bridge they would require separate subnets and routing to establish a connection.



  • Registered Users, Registered Users 2 Posts: 849 ✭✭✭Easten


    When the laptop is connected directly to the CPE it is in effect on the same network regardless of what ip address it is set, no routing occurs. The issue is when you try to connect to the router and then to the camera. His TPlink is set up as access point <--> client not as a bridge so his home router knows nothing of anything on the client side because they are on two different networks for that configuration you would at least have to set the AP as an AP-router configuration not AP.

    He has not set up a bridge, he has setup an access point and a client. To get it to work everything needs to be on the same network



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    He says he using Nanostations not TP links.

    With Nanostations you can set one station as AP and one as client and still form a a layer 2 bridge just by enabling PTP Mode to ON on both devices.

    Basically one is the Wireless Access Point and the other is a wireless client, this refers only to the connection between these 2 devices, once they connect to each other then they can form a layer 2 bridge, which is completely agnostic to IP addresses as it is layer 2.



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    I've some cheaper brand CPE's here, 4 of them linked, none of them with the same subnet as the rest of the network. By default they also setup as one AP and 3 clients and form a layer 2 PTMP connection. I however have switched on AP mode on all of them so they can each act as an access point for other 5Ghz devices.



  • Registered Users, Registered Users 2 Posts: 849 ✭✭✭Easten


    TPLINK CPE

    A bridge isn't formed, it is still an access point <--> client setup.

    A layer2 device cannot understand IP address . Only same subnets traffic can be handled by layer2 devices, traffic is forwarded based on mac-address table. As I said they are on two different networks.

    Anyways this is going around in circles now.



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    TP-link is just a brand of consumer grade IT equipment.

    Look up any Ubiquity Nanostation Manual for setting up a layer 2 Bridge, the basic setup is one CPE set to AP with PTP on and the second set to Client with PTP on. Since we are talking about nanostations one can indeed be a Wireless AP and the other a Wireless Client and still form a network bridge.

    Yes layer2 works with MAC address's and is IP agnostic, hence a layer 2 bridge joins 2 networks to make them appear like one network at layer 2 level.



    But you are right about the circles, and the other poster had already decided he was going to move them all to the same subnet anyway.



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    I checked the configuration of my own CPE's

    My farm network is 192.168.2.x

    My CPE's are on subnet 192.168.188.x,

    The Subnet mask is 255.255.255.0 (so these are separate subnets)

    The CPE on the same wired network as the router is the main AP, the other 3 are clients with PTP option enabled. They also separately have an AP option enabled (This is just to allow them act as AP for other 5Ghz devices). All client devices for the 4 CPE's, camera's etc are in the 192.168.2.x. There is no routing enabled so none of the devices can ping 192.168.188.x unless of course their subnets are changed (or a secondary IP is configurable).

    To add to the complexity my house is off farm and its subnet is 192.168.1.x, I have a WireGuard VPN setup between the 2 sites, from my house I can connect to every 192.168.2.x device on the farm without issue, I cannot however connect to the CPE's IP's as their subnets are not routed through the VPN.

    Post edited by emaherx on


  • Registered Users, Registered Users 2 Posts: 388 ✭✭Gman1987


    Had a deeper look at the network today. plugged in at client and no internet coming through. Plugged in laptop up at AP then and I have internet there but changed the IP to 192.168.10.254 in order to line up with network (reset the nanostation instead of just amending the IP). Plugged directly in to client then but could not gain entry (this was the unit that got unplugged for circa, 11 months) I forced a reset on the unit then and after this I managed to gain entry and set it up in client mode with an IP set to 192.168.10.253 and locked it into the AP. When completed I tested to see had I any internet and unfortunately I didnt. Looks like their is an issue with a nanostation. I need to get it set up asap as cows have started to calve so I picked up two nanostations this evening and new cable while I was at it so I'll get this installed on Saturday. I have a temporary system set up via home plugs until I get the new connection setup, getting a picture with this but its cutting in and out, no chance of working the PTZ



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    Is PTP enabled on both devices after resetting them? (Could be called WDS on some models)




    If you are setting up new ones, configure and test them in the comfort of your kitchen before hanging out of poles or sheds on Saturday.

    Post edited by emaherx on


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 388 ✭✭Gman1987


    Took into it this evening after. checked and WDS was showing in auto. Swapped out wires first and tested but no luck so I swapped out the two nanostations and put new ones back up (Ubiquiti locoM5). System up and running now.


    Tested the old nanostations tonight but no LAN through. Reset both, set up AP again and when I went to search for AP when setting up client it wasnt appearing. I wasnt sure which one was causing the issue then so I went back to AP and changed to repeater. I could pick it up on the phone wifi then when I tried. I did the same with the client side and when I swapped them back to AP and client I was able to make the connection. Not 100% sure what the actual issue was but its working now after swapping over to repeater and then back to AP/client



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    Glad you got sorted, at least now you can watch for cows caving in comfort.



  • Registered Users, Registered Users 2 Posts: 388 ✭✭Gman1987




  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx




  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    I'm integrating farmOS with Home Assistant, so I'll have all camera feeds, sensors and farm management database accessible from a single portal.

    image.png

    The Home Assistant Node Red Addon is proving useful for automating farmOS tasks and importing / exporting data to other applications such as Google Calendar.

    image.png

    The flow above will read Google Calendar events with the term 'Cow Serviced {{Cow Number}}' and create 2 log entries in farmOS database one for Serviced Date and one for Due Date as well as create a Due Date entry in Google Calendar.

    image.png

    The flow can also enable some flags so the details can be verified later.

    image.png


    I'm also considering adding Live data beneath camera feeds, with information such as cows in pen and due dates.

    image.png

    I realize some of the cameras above are a bit wonky, but I'm setting up some new pens this week.



  • Registered Users, Registered Users 2 Posts: 353 ✭✭rounders


    How technical is the setup of Farm OS?

    I'm working off farm in IT consulting so I'm technical enough but I haven't touched a line of code since my college days


    EDIT- Just looked at some Youtube videos. Might try and set it up in the next few weeks

    Post edited by rounders on


  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    Technical enough, but if you are an IT consultant I'm sure you could figure it out. From a setup point of view it is a webserver so knowledge of maintaining a webserver with database would help. Mine is running on Docker on a Raspberry Pi, here is my initial setup https://farmer-eds-shed.com/farmos-version-2-raspberry-pi-install/. (other installs are probably more straight forward.)

    There isn't necessarily a need to know any code for basic record keeping, but it can be lacking in some features specific to a livestock farm in some ways compared to some of the more well known livestock focused packages available, however it does have an API with options to interface in a number of ways including Python, Java script and Json:API. It is also free and open sourced with good support from the main Developers on https://farmos.discourse.group/. Most features it is lacking in can be more than made up for with a little coding knowledge, I'm experimenting with Node Red the last few days which is a good low code solution. It doesn't currently sync up with the DAFM AgFood portal, so I'm going to put something to work with the CSV files for importing Data.

    They also have a paid hosted version https://farmier.com/



  • Registered Users, Registered Users 2 Posts: 353 ✭✭rounders


    Yeah it's actually for a enterprise cloud software that I'm consulting for so should be able for it

    Would be great to have sub form for custom code for Irish setup like what you mentioned about the CSV file from AgFood.

    Some of the marts issue files with their statement for uploading into Fullwoods software so maybe that could be leveraged.

    Would have to look at the file type they send again


    Edit - would be curious how the updates will sync with custom code. One major problem we see with enterprise system is companies over customizing and then not bring able to update



  • Registered Users, Registered Users 2 Posts: 6,484 ✭✭✭emaherx


    Do you mean if you create a custom module and then a farmOS update potentially breaks it?

    My understanding is that it shouldn't be an issue for a long time, farmOS 2 is a distribution of Drupal 9 and modules and API's are all built to Drupal 9 standards. They have just migrated from farmOS 1 which was based on Drupal 7, there were breaking changes in regard to custom modules and even the API after that migration but its not expected with the regular upgrades of farmOS 2.x.



  • Advertisement
  • Registered Users, Registered Users 2 Posts: 353 ✭✭rounders


    It was the update from FarmOS1 to 2 I was more thinking about but guess that's not going to happen that regularly anyway



Advertisement