The Energy Detective Forums

General Category => Developer Support => Topic started by: ricoued on November 15, 2011, 09:43:02 AM

Title: UDP auto discover for TED5000
Post by: ricoued on November 15, 2011, 09:43:02 AM
Hi all,

Is there a way to auto-discover a TED5000 on the local network? I'm thinking UDP broadcast?

Thanks,
Eric
Title: Re: UDP auto discover for TED5000
Post by: TedDev on November 15, 2011, 08:27:24 PM
The TED5000 sends out a UDP multicast every minute. Set up a listener on Port 30303 and you will receive a string from the TED that contains the IP address, etc.
Title: Re: UDP auto discover for TED5000
Post by: TedDev on November 15, 2011, 11:16:59 PM
I've attached a sample Jave code snippet on how to listen and parse the packets (much like we are doing w/ the installer). Its older code so you probably want to drop the StringTokenizer and just use .split when parsing everything out.
Title: Re: UDP auto discover for TED5000
Post by: ricoued on November 16, 2011, 06:28:08 AM
Great! Thx much.