powtac / Autarc_LAN_User_Stats

Autarc LAN/Wifi and Network Device Statistics, by an Arduino UNO with Ethernet Shield (Wiznet w5500).
6 stars 3 forks source link

General discussion about Setup/Configuration #31

Closed powtac closed 10 years ago

powtac commented 10 years ago

The goal is to make it as easy as possible to setup a new Autarc LAN Scanner. Those information are needed to run the Scanner:

Parameter Device/Hardware specific? Networks specific? Required? Can be set in advance? Description
MAC address :white_check_mark: :red_circle: :white_check_mark: :white_check_mark: Printed on hardware
Assigned IP address :red_circle: :white_check_mark: ? :red_circle: Given by local router
Gateway :red_circle: :white_check_mark: ? ?
Subnet :red_circle: :white_check_mark: ? ?
Use DHCP :red_circle: :white_check_mark: ? ?
Nr of pings :red_circle: :red_circle: ? :white_check_mark: IS this pingrequest?
Use Subnetting :red_circle: :white_check_mark: :red_circle: :white_check_mark:
IP range :red_circle: ? :white_check_mark: ?
Key for Server storage (AVRID) :red_circle: :red_circle: :white_check_mark: :white_check_mark: A short string that identifies the scanner, like "Tim00" or "Simon"

The column "Required" shows if we really need the value of this parameter. This means we could omit all the other values and set default values if we can.

@PcTim can you check what can be set for the missing ("?") values of the "Required" column? I want to use this matrix to figure out what can be improved in the setup.

PcTim commented 10 years ago

If we use a DHCP server "Assigned IP address" is not required. Most modern networks uses DHCP so we could make this optional. The same with "Gateway" and "Subnet".

If we use subnetting, the IP range can be calculated. I think we should make a "normal" configuration and an advanced configuration.

The process for the normal configuration could be:

(- Ask for AVRID) (Maybe we could get it from the server at first startup)

In advanced configuration everything can be set up. Yes, Nr of pings is pingrequest. We could use a default value.

PcTim commented 10 years ago

Yeah! :) We can set up a connection only with MAC and IP. We get the Gateway and Subnetmask from the network. But we should test it with a router which doesn't support DHCP. Maybe this is the reason why it works?

PcTim commented 10 years ago

I found an option to deactivate DHCP in my router. And tested it successful! So Gateway and Subnetmask aren't necessary. We could delete them from all setups, or?

powtac commented 10 years ago

I'm not sure, does the Ethernet Shield require an IP address? Will the shield get an IP address without DHCP?

Am 01.07.2014 um 10:54 schrieb Tim notifications@github.com:

I found an option to deactivate DHCP in my router. And tested it successful! So Gateway and Subnetmask aren't necessary. We could delete them from all setups, or?

— Reply to this email directly or view it on GitHub.

PcTim commented 10 years ago

Without an IP adress, we call the function for getting the IP from DHCP. And this fails, without an DHCP server. I've tested it.

So we require an IP address.

PcTim commented 10 years ago

If we have no DHCP, or it fails, we need the gateway, dns and subnetmask. Otherwise we would use wrong defaults:

gateway: defaults to the device IP address with the last octet set to 1 subnet: defaults to 255.255.255.0 (http://arduino.cc/de/Reference/EthernetBegin)

PcTim commented 10 years ago

We also have to set the dns server now. (see #12)

PcTim commented 10 years ago

retry of server connecection was also added (retryHost)

PcTim commented 10 years ago

I've created a diagram: d1e4d3e517840f00d77a2ed0cf62125725210453

Should we add a setup page on the arduino server?

PcTim commented 10 years ago

setup menu is like in the diagram. 7e69ba54207715086a1ef58e1c6825916cbd0b20

powtac commented 10 years ago

Wow! Cool!