I have the PIC32 Ethernet starter kit and expansion board and was hoping someone might have the code to convert serial to ethernet / ethernet to serial. I looked at the sample code and it doesn't look horrible but I'm assuming someone has already done this and maybe I could save a few days worth of time. I am pretty much just trying to do this (create an ethernet to serial gateway):
Preferably, I would like to have a 6Mbps baud rate as well. Thanks!
I have tried to re-configure the new IP into TCPIPConfig.h which is "192.168.x.xx" instead the default one come together with Microchip code and enable--> "# define STACK_USE_UART2TCP_BRIDGE" and disable --> "#define STACK_USE_HTTP2_SERVER" I expected to "off" port 80 which is running for web application and expect to "open" port 9761 for TCP<-->serial PORT. Complied is done successfully BUT still have problem with telnet 192.168.x.xx 9761, this means that the port is not opend yet. I do not see also the different when I enable/disable (to operate as server or client) --> #define USE_REMOTE_TCP_SERVER "192.168.2.50" or even change to 192.168.x.x instead according to TCPIPConfig.h Can someone advice me please? Thanks
#define STACK_USE_UART2TCP_BRIDGE // UART to TCP Bridge application example
//#define STACK_USE_HTTP_SERVER // Old HTTP server
//#define STACK_USE_HTTP2_SERVER // New HTTP server with POST, Cookies, Authentication, etc.
//#define STACK_USE_SSL_SERVER // SSL server socket support (Requires SW300052)
//#define STACK_USE_SSL_CLIENT // SSL client socket support (Requires SW300052)
//#define STACK_USE_GENERIC_TCP_CLIENT_EXAMPLE // HTTP Client example in GenericTCPClient.c
#define STACK_USE_GENERIC_TCP_SERVER_EXAMPLE // ToUpper server example in GenericTCPServer.c
//#define STACK_USE_TELNET_SERVER // Telnet server
#define STACK_USE_ANNOUNCE // Microchip Embedded Ethernet Device Discoverer server/client
#define STACK_USE_DNS // Domain Name Service Client
#define STACK_USE_NBNS // NetBIOS Name Service Server
//#define STACK_USE_REBOOT_SERVER // Module for resetting this PIC remotely. Primarily useful for a Bootloader.
//#define STACK_USE_SNTP_CLIENT // Simple Network Time Protocol for obtaining current date/time from Internet
//#define STACK_USE_UDP_PERFORMANCE_TEST // Module for testing UDP TX performance characteristics. NOTE: Enabling this will cause a huge amount of UDP broadcast packets to flood your network on various ports. Use care when enabling this on production networks, especially with VPNs (could tunnel broadcast traffic across a limited bandwidth connection).
//#define STACK_USE_TCP_PERFORMANCE_TEST // Module for testing TCP TX performance characteristics
//#define STACK_USE_DYNAMICDNS_CLIENT // Dynamic DNS client module
#define STACK_USE_BERKELEY_API // Berekely Sockets APIs are used