mehrere Controller über USB verbinden

fischertechnik in General
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
Lari
Beiträge: 11
Registriert: 06 Jan 2020, 23:22

mehrere Controller über USB verbinden

Beitrag von Lari » 14 Jan 2020, 22:44

Hallo,
ich würde gerne mehrere TXT-Controller über USB mit meinem Rechner verbinden.
Auf den Controllern ist die fischertechnik Firmware 4.6.6.
Mein Problem ist das alle momentan die IP "192.169.7.2" haben.
Weiss jemand wie man das andern könnte?
Ich dachte, das geht in der Datei /etc/network/interfaces.
Aber das scheint nicht zu klappen. Danach habe ich die Datei wieder zurückgesetzt, kriege allerdings trotzdem keine USB-Verbindung mehr zu Stande.
Habt ihr Ideen wo dran das liegen könnte?
Vielen Dank!
Lari

Lari
Beiträge: 11
Registriert: 06 Jan 2020, 23:22

Re: mehrere Controller über USB verbinden

Beitrag von Lari » 15 Jan 2020, 16:42

Ich habe eine Lösung gefunden. :)
Für alle die mal auf dasselbe Problem stoßen sollten:
  • in der Datei /etc/network/interfaces
    iface usb0 inet static
    address 192.168.7.2
    broadcast 192.168.7.3
    die 7 durch deine Wunschzahl ersetzen
  • in der Datei /etc/dhcp/dhcpd.conf
    subnet 192.168.7.0 netmask 255.255.255.252 {
    range 192.168.7.1 192.168.7.1;
    }
    die 7 ersetzen
  • Neustarten
Bei mir haben die Änderungen nicht funktioniert, wenn der Controller an einem USB-Adapter angeschlossen war.
Die Lösung ist den Controller direkt per USB an den Computer anzuschließen, dann geht es. Wenn man danach wieder zum Adapter wechselt funktioniert es auch wieder.

vleeuwen
Beiträge: 1560
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: mehrere Controller über USB verbinden

Beitrag von vleeuwen » 15 Jan 2020, 17:50

You have right, in these 2 files you can change the address of the USB and the WLAN access point.
But you need to have root access for changing them.
www,xxx,yyy,zzz
The www.xxx.yyy needs to be in the range of private networks.
If you change the netmask, you can also change the zzz.
For example 192.186.7.2, 192.186.7.4, 192.186.7.5 So TXT's are part of the same sub network.
For broadcast address, see

But be careful, errors in these two file can lead to inaccessibility of for your TXT.
Some knowledge of netwerk addresses and DHCP could be recommendable.
In that case it could be possible that you will to reinstall the firmware.

What I am looking for is where the BT ip-address can be changed?

The two original files from the TXT.

Code: Alles auswählen

#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
#

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
# log-facility local7;

subnet 192.168.7.0 netmask 255.255.255.252 {
  range 192.168.7.1 192.168.7.1;
}

subnet 192.168.8.0 netmask 255.255.255.0 {
  range 192.168.8.100 192.168.8.110;
}

subnet 192.168.9.0 netmask 255.255.255.0 {
  range 192.168.9.100 192.168.9.110;
}

Code: Alles auswählen

# Configure Loopback
auto lo
auto usb0
auto eth0

iface lo inet loopback

iface eth0 inet dhcp

iface usb0 inet static
	address 192.168.7.2
	broadcast 192.168.7.3
	netmask 255.255.255.252

iface wlan1 inet static
	address 192.168.8.2
	broadcast 192.168.8.255
	netmask 255.255.255.0

=========================google translate====================
Sie haben Recht, in diesen 2 Dateien können Sie die Adresse des USB- und des WLAN-Zugangspunkts ändern.
Sie müssen jedoch über Root-Zugriff verfügen.
www, xxx, yyy, zzz
Die www.xxx.yyy muss sich im Bereich privater Netzwerke befinden.
Wenn Sie die Netzmaske ändern, können Sie auch die zzz ändern.
Zum Beispiel 192.186.7.2, 192.186.7.3, 192.186.7.4,
Aber seien Sie vorsichtig, Fehler in dieser Datei können dazu führen, dass Ihr TXT nicht mehr erreichbar ist.
In diesem Fall können Sie möglicherweise die Firmware neu installieren.
Was ich suche, ist, wo die BT-IP-Adresse geändert werden kann?

Lari
Beiträge: 11
Registriert: 06 Jan 2020, 23:22

Re: mehrere Controller über USB verbinden

Beitrag von Lari » 16 Jan 2020, 00:32

Hey,
what do you mean with BT-address? the Bluetooth address?
If yes I sadly don't know. Sorry!

vleeuwen
Beiträge: 1560
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: mehrere Controller über USB verbinden

Beitrag von vleeuwen » 16 Jan 2020, 11:09

@Lari
The BT connection is also present itself as a fix IP address 192.168.9.2.
Both Putty and FileZila can use that address too.
However to use BT with two TXT, gives the same problem as USB.
The IP-addresses for USB and LAN access point can be changed in the configuration file.
So where can the IP-address for the BT-connection be changed?

By the way, for BT the TXT is also the access point,
See the DHCP settings, the client get a IP-address in that range of the 192.168.9 sub network.

Lari
Beiträge: 11
Registriert: 06 Jan 2020, 23:22

Re: mehrere Controller über USB verbinden

Beitrag von Lari » 22 Jan 2020, 17:33

Good question!
But unfortunately I can't find where to change the ip address.
Maybe the fischertechnik customer service can help you, or someone else knows?

vleeuwen
Beiträge: 1560
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: mehrere Controller über USB verbinden

Beitrag von vleeuwen » 22 Jan 2020, 22:17

Beside my experiments of a web socket-SLI to control a model with a web page, which POC (prove of concept) is successful, I like to mentioning the next idea here too.

This idea has a narrow relation with your problem.
I am setting up an experiment to create a cluster of TXT's, one as WLAN-access point, the others as client for that access point.
A PC could in that act as a client and maybe also as gateway.
See the problem description: viewtopic.php?f=6&t=5790

A lot of thinks to discover with the TXT around network connectivity.

vleeuwen
Beiträge: 1560
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: mehrere Controller über USB verbinden

Beitrag von vleeuwen » 02 Mär 2020, 15:51

More information about:
the etc/network/interfaces
https://linuxhint.com/debian_etc_network_interfaces/

the etc/dhcpd.conf
https://manpages.debian.org/jessie/isc- ... .5.en.html

Antworten