access two devices on different subnets - ethernet

I have a PC (Ubuntu 16.04) with two ethernet ports, and to each of them I connected one camera.
These are the camera addresses (I can change if necessary):
Camera 1: 169.254.146.101
Camera 2: 169.254.146.102
What I want is to be able to connect the cameras to ANY of the ethernet ports of my PC and access the cameras simultaneously
I tried three different setting on the computer side, but all of them allowed me to connect to just one cammera at the time:
Config 1:
Ethernet 1: 169.254.146.100
Ethernet 2: 169.254.146.100
Config 2:
Ethernet 1: 169.254.146.99
Ethernet 2: 169.254.146.100
Config 3:
Ethernet 1: 169.254.146.100
Ethernet 2: 169.254.147.100

I dont 100% know if it matters, but had you tried to connect both cameras to a little switch and then this switch to your computer? Just for test if this will work

Related

Can't connect my raspberry-pi to internet via Ethernet connection + ICS connection failed

I have a raspberry pi 3 connected to my PC (Windows 7) via ethernet using DHCP server and VNC viewer and it works perfectly.
The pc is connected to a WIFI.
I want to access to internet from my raspberry pi, I tried the ICS sharing but it didn't work:
I shared the wifi connection:here
changed the ip address: here
after sharing the wifi connection, I am unable to access internet from both the pc and rasp even though they are in the same ip address.
On PC,On the Rasp
Can you please help me to find a solution?
Thank you.
You have to create a network bridge.
Select the two networks, right click and select bridge connections.
I'd use static IP address on your PI and your PC's ethernet

Connect two raspberry Pis using USB cable or USB-serial

I'm working on a project where I need two raspberry pis to communicate and the ethernet port is not free, I'm not allowed to make any changes to the GPIO pins, and I'm forced to use the USB port due to hardware considerations. Is it possible for them to communicate using a direct USB cable, or perhaps using two USB-RS232 cables?
Thanks!
Siddharth
I would use the TTL serial pins on the GIO header. See https://elinux.org/images/1/13/Adafruit-connection.jpg
You could create your own simple null modem serial cable - consisting of 3 jumper cables.
Connect pins
6 <--> 6
8 <--> 10
10 <--> 8
If you can't use the GPIO header - you can do a USB to USB connection using USBNET. http://www.linux-usb.org/usbnet/
Is it possible for them to communicate using a direct USB cable, or perhaps using two USB-RS232 cables?
You fail to mention exactly which Raspberry Pi version(s) you are using.
Only the Raspberry PI Zero can be used as a USB Gadget.
Since USB is a master-slave(s) interface & protocol, you cannot simply connect two Raspberry PI 1/2/3 boards together using USB, because that would be a master-to-master connection.
If you look hard enough for a (passive) USB Type A (male) to Type A (male) cable, you can find them, but it's a bogus connection that will not work.
There are active USB host-to-host cables (which contain a shared gadget), but support can be an issue.
You could connect a Raspberry PI 1/2/3 to a Raspberry PI Zero by USB, so long as the Zero's USB port was configured as a USB ACM CDC gadget.
However one simple solution is your alternative of installing USB-to-RS232 adapters to each board. A null-modem cable of three wires would suffice unless you needed hardware flow-control.
An alternative solution is installing USB-to-Ethernet adapters to each board (with static IP addresses, i.e. an ad-hoc connection). This approach provides a much faster connection than an RS-232 link, and is easily utilized by applications.

Raspberry Pi 3 androidthing with rpi3 devpreview 4 os - Not connected

I have install OS in SD card and after installation OS is boot successfully but display below message every time:
http://prntscr.com/fbhj3j
I did not connect LAN cable raspberry board.
If this issue is because I cannot connect internet using wifi? If yes, how?
You need to continue to follow the instructions here: https://developer.android.com/things/hardware/raspberrypi.html
A Raspberry Pi will not connect to the Wifi if you have not first connected to an ethernet lan cable first. (Once you are connected via ethernet you then can configure the wifi and finally remove the ethernet cable).
So you are up to this step:
Connect an Ethernet cable to your local network.
When this is connected, your screen will show the IP address of the Raspberyy Pi on your local network

Communicate Between two Matlab Sessions Using Data Transfer Cable

We have a shared PC in our LAB, connected to a Vector Network Analyzer (VNA). The PC communicates with the VNA through GPIB port, using Matlab functions. For my work, i need to acquire real-time data from the VNA into my own PC, which is few meters away from the VNA PC. I dont want to have wireless solutions due to the interference that might happen. I intend to buy a USB data transfer cable to connect the Matlab. But i couldn't find in google any similar idea to do so. I was wondering is such a solution practical? Does anybody has the same experience? And will be any problem regarding the drivers?
in USB bus systems there can only be one USB host all other devices are in USB device mode.in most cases the USB controllers of PCs are not capable of USB device mode, they all want to be USB host. in other bus systems like I2C this is called master-slave architecture
if you are lucky one of your PCs can be set to device mode and in this case this will work but your chances are very slim (because of the problem with the USB host and USB device mode)
https://unix.stackexchange.com/questions/195765/is-usb-to-usb-data-transfer-between-two-linux-oses-possible
a better solution would be to use ethernet
there are also modules in MATLAB for real-time communication over ethernet (Real-Time Transmit and Receive over Ethernet)
if your pcs have unused ethernet ports use an ethernet crossover cable (http://en.wikipedia.org/wiki/Ethernet_crossover_cable) and connect the pcs (i.e. http://www.ccm.net/faq/6340-connect-pcs-using-a-crossover-ethernet-cable)
else use an ethernet switch (or hub) to establish the ethernet communication between the pcs
beside MATLAB for communication you can use i.e. ssh or install a vnc server on one of the machines and remote-control it with a vnc client on the other,...
USB
with USB-to-ethernet adapters (ebay,...) you can use ethernet over usb when connecting the usb-to-ethernet adapters via a ethernet crossover cable
another possibility is to use two USB-to-serial adapters and connect them with a RS-232 crossover cable and then use RS-232 protocol for communication (putty,...)

Can I plug a cisco phone directly into raspbx ethernet port

Can I plug a cisco SPA303 ip phone directly into the ethernet port of a raspberry pi running raspbx?
I have got raspbx setup and running using a wifi dongle to connect to the router. The system works with the Cisco phone plugged into the router. However, the router is on the other-side of my house and ideally, as the raspbx is wifi, I would like to plug the phone directly into the pi and have it as one unit I can have anywhere in the house.
I have spent a painful amount of hours trying to set this up and I am sure there is a simple fix I am overlooking. Any ideas would be greatly appreciated.
Yes, you can. But you should setup static ip on phone or setup dhcpd server on RPi
Also some cisco phones have double ports(internal simpler switch inside). If so, you can connect one-by-one upto 8 phones.
There are several layers to take into consideration:
Link layer MDI/MDI-X detection of crossover/patch ethernet cable detection.
Static IP address for Raspberry Pi and a DHCP server for the IP phone
TFTP server to provisionize the IP phone
A peer in asterisk for the IP phone