TXT's in a stand alone wireless ip-network

Fussballroboter, Autofabrik...
Modellideas &- presentation - Soccerrobot, Carfactory...
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
vleeuwen
Beiträge: 1557
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

TXT's in a stand alone wireless ip-network

Beitrag von vleeuwen » 19 Jan 2020, 21:16

Idea for a project to create a combination of a couple of TXT in a private stand alone netwerk.
One TXT (m) could act as a WLAN access point.
One or more TXT's could act as clients in this same network.
A other device could also be part of this network.

Points of research:
1) how the DHCP server of (m) can be set up to make this possible?
2) can a TXT also act as router between USB and the LAN?

When this kind of network between TXT would be possible, the TXT's can also use web sockets/ Berkeley sockets/ MQTT for there mutual information exchange.
For this a set of RoboPro SLI based elements can be developed for the end user; this makes the use of RoboPro as basic development system possible.
Nice for use in educational projects.

A TXT as access point with the full Civetweb server on it can be powerful. However more then one accespoint with the same sub-network could give problems at an event or convention,
Point of research:
How to change the sub-network address of the access-point

richard.kunze
Administrator
Beiträge: 583
Registriert: 26 Dez 2015, 23:49
Wohnort: Rhein-Main-Gebiet

Re: TXT's in a stand alone wireless ip-network

Beitrag von richard.kunze » 20 Jan 2020, 11:54

vleeuwen hat geschrieben:
19 Jan 2020, 21:16
Points of research:
1) how the DHCP server of (m) can be set up to make this possible?
2) can a TXT also act as router between USB and the LAN?
1) should work out of the box, as long as you don't attach more than 11 clients to a single TXT. DHCP configuration is in /etc/dhcp/dhcpd.conf, and the default setup for the WLAN AP network on the TXT is to give out addresses in the range of 192.168.8.100 through 192.168.8.110. If you need more clients, just modifiy the address range in dhcpd.conf

2) should be possible as well, with normal Linux routing commands ('ip route ...'). But you have to make sure that the other side of the USB connections (e.g. your PC) has appropriate routing set up as well, and attaching more than one TXT by USB at the same time is a bit difficult because they will by default all use the same address (192.168.7.2) on the USB connection.
vleeuwen hat geschrieben:
19 Jan 2020, 21:16
Point of research:
How to change the sub-network address of the access-point
Edit /etc/network/interfaces (the entry for wlan1 is used in AP mode) and add an entry for the new subnet to /etc/dhcp/dhcpd.conf (so that clients on the network will get addresses from the changed network)

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

Re: TXT's in a stand alone wireless ip-network

Beitrag von vleeuwen » 20 Jan 2020, 18:21

@Richard,
thanks,
I hope that the practice is doing this. My expectation is yes.
The USB address can set in the same two files, but I didn't test it yet.

On Windows there exists a routing table, probably on UNIX too.

I hope to have everything, including the Civetweb SLI, ready at the North-convention.

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

Re: TXT's in a stand alone wireless ip-network

Beitrag von vleeuwen » 21 Jan 2020, 10:56

A new point of research in this project could be:
Can a TXT in the access point mode also act as IP-router?
This functionality is necessary when 2 or more clients are connected and client A will be communicate with client B.
To test if this kind of commands will work.
https://linuxcommando.blogspot.com/2008 ... table.html
http://linux-ip.net/html/routing-tables.html

Antworten