Quote:
Originally Posted by acastagna
My team is trying to set up vision processing for the first time, and we are going with Java and openCV running on a raspberry Pi. So far we are making good progress, but we have come up on an "annoyance" that we haven't been able to work around. We are doing code development by directly accessing the Pi from a laptop using putty and an ethernet cable.
The problem is we need to have a router in between for this to work, either by ethernet cable or wifi. Is there a way to get this setup to work without a router? I believe the problem is the Pi either doesn't get issued an IP address without the router, or it is getting an address that we cannot find. We have tried using IP Scanner to search for it when there is no router in between with no luck. We also tried setting a static IP but couldn't see the Pi without the router.
Thanks!
|
I've used Pi 2s and Pi 3s over ethernet directly to my laptop and it's worked.
However there's one more step: Unless you've set the Pi to use a static IP address, you need your computer to run a DHCP server to assign the Pi one. The way I've done that is by using ICS to bridge ethernet to my laptop's wifi connection (since I've also needed the Pi to connect to the internet

). ICS runs a DHCP server and uses NAT to connect two interfaces.
On Windows 10, there's probably an easy way to do this through the new Settings app but here's how I've done it:
1. Start icssvc
2. In adapter settings on the old control panel, go to properties for your wifi connection > sharing > Check the box > select your ethernet connection

Note: if the box is already checked, you'll have to uncheck it, click OK, then open properties and check it again otherwise icssvc won't know about it. This is Windows, remember?
