Author Topic: UDP auto discover for TED5000  (Read 3878 times)

ricoued

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
UDP auto discover for TED5000
« 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

TedDev

  • TED Software Developent
  • Administrator
  • Full Member
  • *****
  • Posts: 158
  • Karma: +0/-0
Re: UDP auto discover for TED5000
« Reply #1 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.

TedDev

  • TED Software Developent
  • Administrator
  • Full Member
  • *****
  • Posts: 158
  • Karma: +0/-0
Re: UDP auto discover for TED5000
« Reply #2 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.

ricoued

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: UDP auto discover for TED5000
« Reply #3 on: November 16, 2011, 06:28:08 AM »
Great! Thx much.