Hi Casey,
Does the device show up in IPconfig if you’re using the default SDK? Can you try and run this section of code and see if you can get onto the web server using the device’s IP address?
. This code was based off of UpdateIpAddress function seen in the same appl_abcc_handler.c file and should print the ip address to the debug console
/*------------------------------------------------------------------------------
** Forward declarations
**------------------------------------------------------------------------------
*/
static ABCC_CmdSeqRespStatusType HandleExceptionResp( ABP_MsgType* psMsg );
static ABCC_CmdSeqRespStatusType HandleExceptionInfoResp( ABP_MsgType* psMsg );
static ABCC_CmdSeqCmdStatusType ReadExeption( ABP_MsgType* psMsg );
static ABCC_CmdSeqCmdStatusType ReadExeptionInfo( ABP_MsgType* psMsg );
static ABCC_CmdSeqCmdStatusType UpdateNodeAddress( ABP_MsgType* psMsg );
static ABCC_CmdSeqCmdStatusType UpdateIpAddress( ABP_MsgType* psMsg );
static ABCC_CmdSeqCmdStatusType UpdateNetmask( ABP_MsgType* psMsg );
static ABCC_CmdSeqCmdStatusType UpdateGateway( ABP_MsgType* psMsg );
static ABCC_CmdSeqCmdStatusType UpdateDhcp( ABP_MsgType* psMsg );
static void UpdateAddressDone( void );
static ABCC_CmdSeqCmdStatusType UpdateBaudRate( ABP_MsgType* psMsg );
static void UpdateBaudRateDone( void );
static ABCC_CmdSeqCmdStatusType ReadSerialNum(ABP_MsgType* psMsg);
static ABCC_CmdSeqCmdStatusType PrintSerialNumber(ABP_MsgType* psMsg);
static ABCC_CmdSeqCmdStatusType ReadIpAddress(ABP_MsgType* psMsg);
static ABCC_CmdSeqCmdStatusType PrintIpAddress(ABP_MsgType* psMsg);
/*------------------------------------------------------------------------------
** User init sequence. See abcc_cmd_seq_if.h
**------------------------------------------------------------------------------
*/
static const ABCC_CmdSeqType appl_asUserInitCmdSeq[] =
{
ABCC_CMD_SEQ( UpdateIpAddress, NULL ),
ABCC_CMD_SEQ( UpdateNetmask, NULL ),
ABCC_CMD_SEQ( UpdateGateway, NULL ),
ABCC_CMD_SEQ( UpdateDhcp, NULL ),
ABCC_CMD_SEQ( UpdateNodeAddress, NULL ),
ABCC_CMD_SEQ( UpdateBaudRate, NULL ),
ABCC_CMD_SEQ( ReadSerialNum , PrintSerialNumber ),
ABCC_CMD_SEQ( ReadIpAddress , PrintIpAddress ),
ABCC_CMD_SEQ_END()
};
//
// Function to grab the IP address of the device
//
static ABCC_CmdSeqCmdStatusType ReadIpAddress(ABP_MsgType* psMsg)
{
ABCC_GetAttribute(psMsg, ABP_OBJ_NUM_NC, 3, ABP_NC_VAR_IA_VALUE, ABCC_GetNewSourceId());
return (ABCC_SEND_COMMAND);
}
//
// Response for the IP Address grab
//
static ABCC_CmdSeqRespStatusType PrintIpAddress(ABP_MsgType* psMsg)
{
UINT32 dipaddr;
if (ABCC_VerifyMessage(psMsg) != ABCC_EC_NO_ERROR)
{
APPL_UnexpectedError();
return(ABCC_EXEC_NEXT_COMMAND);
}
ABCC_GetMsgData32(psMsg, &dipaddr, 0);
//Do whatever you need to do with the response
ABCC_PORT_DebugPrint((“IP Address from Tim: %X\n\n”, dipaddr));
return (ABCC_EXEC_NEXT_COMMAND);
}