This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wired ethernet link between Tinypilot and Openplotter Raspberry
#1
Hi all,
operating a Tinypilot sold by Sean (running the last image 0.32) and a Raspberry 3B with OpenPlotter, I would like to get a wired an Ethernet link between both equipment in place of the wifi connection (I would like to avoid the wifi electromagnetic emission in my steel boat).
I have bought an usb to Ethernet adapterĀ  and installed the extension needed to activate this adapter (this extension is not included in Tinycore 9 used by Sean for the Iinypilot).
But now, due to my poor knowledge of Linux and Tinycore, I am unable to configure Tinypilot and OpenPlotter to get this Ethernet link.
Your help would be welcome!
Eric
Reply
#2
If you check /opt/networking.sh you should be able to modify the wlan interface to eth0. Depending on your network you may want dhcp or static.

If you modify any scripts on tinycore such as in /opt you must run "filetool.sh -b" to repackage them for the next boot.
Reply
#3
Sean said it all.

Do you plan to link the two PI with a cross link ethernet cable or do you plan to use an Ethernet switch ?

Will there be any other Ethernet devices (most importantly an Ethernet router like a Wifi AP...) or there will be only the two PIs ?
Reply
#4
Hi Sean and Stellian,
many thanks for your reply. So I will try this as soon as possible. I don't use a switch, only a cross cable between the two Rpi. I will feed back here after trial.
Reply
#5
I think the easiest is to set-up a WIFI access point on the OpenPlotter side (https://openplotter.readthedocs.io/en/2....k_app.html) and check the checkbox "Add ethernet ports to the AP".

On Tinypilot, it may work just out of the box, because there is a script called on boot (/etc/init.d/dhcp.sh) which tries to connect to a dhcp server if an ethernet device is detected... But since you're loading the usbnet kernel modules later, it may not work, and possibly you will have to launch this same script after having loaded the modules. Try it !
Reply
#6
Hi Sean and Stelian,
thanks to your help, I have finally succeed to get a wired link between Openplotter and Tinypilot.

I have not made any change to networking.sh but I start Tinypilot in client mode with the Wifi fixed address 10.10.10.10. I open the terminal and go to Tinypilot by SSH (ssh tc@10.10.10.10), then I activate eth0 with ifconfig in tinypilot in client mode (sudo ifconfig eth0 10.10.10.11) and I can stop wlan0 in tinypilot and wlan9 in Openplotter.

Previously I have installed the extension net-usb-4.9.22.tcz (repo.tinycorelinux.net/9.x/armv6/tcz/net-usb-4.9.22-piCore.tcz) in /mnt/mmcblk0p2/tce on the Tinypilot Raspberry, created the file "onboot.lst" in /mnt/mmcblk0p2/ and added with sudo nano the line "net-usb-KERNEL.tcz" in onboot.lst.

If necessary I can restart wlan9 to connect an android tablet with VNC.

I don't know if all this operation is what is supposed to be done, but it's working fine so It's ok for me.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)