Lantronix Developer Forums  

Go Back   Lantronix Developer Forums > XPort, xPico Ethernet, UDS, xDirect > Standard Firmware Questions

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-17-2017, 08:59 PM
tpm1510 tpm1510 is offline
Member
 
Join Date: May 2017
Posts: 10
Default set XPort IP based on GPIOs

I'm interested in setting or changing my XPort's IP address based on input from the three GPIO pins. Has anyone tried that before? Is the source code for the firmware load available for me to look at or modify?

I'm guessing it can't be done, but I figured I'd ask here... any help would be greatly appreciated!
Reply With Quote
  #2  
Old 05-18-2017, 03:59 PM
edlandell edlandell is offline
Expert
 
Join Date: Apr 2008
Posts: 51
Default

Why not use the serial interface to set the IP address?

Do you want to send the XPort a new IP address by communicating over the GPIO pins?

There is a C Programmer's Kit to develop you own firmware for the XPort and sample applications are provided, but the factory source code is not available.
Reply With Quote
  #3  
Old 06-01-2017, 05:49 PM
tpm1510 tpm1510 is offline
Member
 
Join Date: May 2017
Posts: 10
Default

Hi Ed,

Thanks for the reply. To clarify, we'd like to have the XPort sense the state of the GPIOs on startup, and then set it's IP to one of two addresses based on what it finds. Unfortunately, using the serial interface won't be an option.

You mention a programmers kit, is that the same as the Evolution SDK? If so, that only works for the XPort Pro (and not the regular XPort), correct?

Thanks,
Tim
Reply With Quote
  #4  
Old 06-02-2017, 01:02 PM
mariano mariano is offline
Lantronix FAE
 
Join Date: Aug 2012
Posts: 384
Default

To program the XPort, you need the CPK. Please see this post for how to get the CPK:

http://forums.lantronix.com/showthread.php?t=1243
Reply With Quote
Reply

Tags
firmware, gpio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:24 PM.


Copyright Lantronix, Inc. 2013. All rights reserved.
Powered by vBulletin® Copyright ©2000 - 2017, vBulletin Solutions, Inc.