Author Topic: Simple IP Adress Setup Interface  (Read 1610 times)

0 Members and 1 Guest are viewing this topic.

Offline dekra54Topic starter

  • Supporter
  • ****
  • Posts: 27
  • Country: de
Simple IP Adress Setup Interface
« on: February 25, 2017, 06:23:49 am »
Good morning (from germany  :D )

I'm currently working on an audio amplifier design and thinking of integrating some sort of DSP or discrete crossover/equalizer and want to adjust it via ethernet to avoid to have a complete user interface and display.
So my question is does anyone have a neat idea how to make a simple (and maybe) cheap interface to setup the IP adress and subnetmask (besides of a piano with dip switches  ;D )  ?
 
Greetings Dennis
 

Offline hendorog

  • Super Contributor
  • ***
  • Posts: 1617
  • Country: nz
Re: Simple IP Adress Setup Interface
« Reply #1 on: February 25, 2017, 06:35:01 am »
One way is to require an exclusive connection to a PC initially and run a captive portal or just a web page over that for setup.

If hardwired: the device issues an IP address via dhcp to the first device which it sees, and then responds to an http request with a config page. Once configured the dhcp server is disabled and device becomes operational.

If WiFi: the device provides an SSID for config only. Config over http as before and then device becomes operational.

Another option- configure over bluetooth with a phone app.
 

Offline DBecker

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: us
Re: Simple IP Adress Setup Interface
« Reply #2 on: February 25, 2017, 06:44:19 am »
DHCP has been standard for many years.  It's rare to find a network without a DHCP server.

For your specific application, adjusting a handful of parameter, a NFC EEPROM might be a better approach.  It's simpler and has the advantage of an appropriate security model -- anyone with the right application can adjust it if they have physical proximity.
 
 
The following users thanked this post: cgroen

Offline dekra54Topic starter

  • Supporter
  • ****
  • Posts: 27
  • Country: de
Re: Simple IP Adress Setup Interface
« Reply #3 on: February 25, 2017, 06:55:53 am »
It is actually just a one off for my little PA system but I always like to think "What if i want to make let's say a hundred and use it by myself" and try to design it accordingly.

The first thing i thougt of was an default IP adress and just a simple button to be able to set it to default again. But then i thought what if you have 10 of these in a rack wired up and want to setup. So DHCP would be the right choice. But i think i don't i get how do you  mean it. Does the AMP act  as a dhcp or the Notobook from where you try to setup ?

WIFI and Bluetooth is pretty much ruled out. I don't like wireless in such enviroments and i'm not sure if my current desing is able to handle one or maybe both of them hardware wise   

Edit to DBecker : Those NFC EEPROMS look very nice  :-+ never heard of them before. Defnitely worth experimenting with
« Last Edit: February 25, 2017, 07:00:13 am by dekra54 »
 

Offline hendorog

  • Super Contributor
  • ***
  • Posts: 1617
  • Country: nz
Re: Simple IP Adress Setup Interface
« Reply #4 on: February 25, 2017, 07:34:46 am »
Yeah I meant for the amp would  be shipped in config mode with a DHCP server and captive portal implemented - so it is very simple for the user. They can just plug in a laptop/PC and open a web browser and they will go straight to the config page. Once it is configured the DHCP server is disabled - unless they later reset the device.
You would want to make warn them to not plug it in to the LAN with that DHCP server enabled.

Regarding Wifi/BT, bear in mind a lot of laptops now do not have ethernet ports. Which is why I suggested Wifi or bluetooth for configuration even if you need ethernet to run the thing in operation. Wireless is not so easy though  if you have many devices in the rack as you need a way to identify the device that you are configuring - Something that is easy to do if you are plugging a cable into each device to configure it.

Agree with NFC, never seen it used but it would be a nice approach.


 

Offline nali

  • Frequent Contributor
  • **
  • Posts: 656
  • Country: gb
Re: Simple IP Adress Setup Interface
« Reply #5 on: February 25, 2017, 08:58:46 am »
Does your network interface have a valid MAC address?

Some older NICs used to use ARP & Ping: Use the arp command to pair an IP address with the MAC address of the card, then ping it. The card would see the incoming packets and would assume that IP address if its own was blank at least temporarily to allow you to go set it up fully.

Otherwise, if you have any sort of display on the device you could just use DHCP and then show the IP address so you can browse/telnet/ssh to it and set it up properly.





 

Offline JenniferG

  • Frequent Contributor
  • **
  • Posts: 411
  • Country: us
Re: Simple IP Adress Setup Interface
« Reply #6 on: February 25, 2017, 10:46:07 am »
lol @ "piano of dip switches".   :-DD
Test Equip: GDM-8251a, UT61E, Probemaster, Tektronix 2225
Power Supplies: GPD-3303S (w/o overshoot problem)
Soldering Station:  Hakko 926
 

Offline cgroen

  • Supporter
  • ****
  • Posts: 631
  • Country: dk
    • Carstens personal web
Re: Simple IP Adress Setup Interface
« Reply #7 on: February 25, 2017, 11:33:26 am »
DHCP has been standard for many years.  It's rare to find a network without a DHCP server.

For your specific application, adjusting a handful of parameter, a NFC EEPROM might be a better approach.  It's simpler and has the advantage of an appropriate security model -- anyone with the right application can adjust it if they have physical proximity.

Thanks (a lot!) for the "NFC EEPROM" tip, I can not believe that I have not seen this before!
 

Offline dekra54Topic starter

  • Supporter
  • ****
  • Posts: 27
  • Country: de
Re: Simple IP Adress Setup Interface
« Reply #8 on: February 25, 2017, 12:33:52 pm »

I'm using a .net Microcontroller right now ( G80 from GHI ) with an ENC28J60 so i am able to setup an MAC Adress to my need.
So I could use it as a kind of serialnumber/uniqe identifier and then i would be able to use dhcp since i am able to distinguish the amps.
Great idea  :-+
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf