JenNet-IP WPAN Stack. Transmissions error

cancel
Showing results for 
Search instead for 
Did you mean: 

JenNet-IP WPAN Stack. Transmissions error

200 Views
gennadytanchin
Contributor I

Hello everyone!

MCU JN5168
JenNet-IP WPAN Stack

I send packets from COORDINATOR to END_DEVICE:
Debug output:

--------------------------------------

Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 10)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 14)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 13)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 12)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 14)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 10)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 22)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 15)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 11)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 10)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 14)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 13)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 12)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 14)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 10)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 22)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 15)
Module: <Sent>
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 8)
Module: H->N (101)
Module: i6LP_SendTo(0xfe800000:0:2158d00:540de4, Port = 1190, Len = 11)
Module: <Send Fail> ErrNo: 57859
Module: <RXD>
Module: i6LP_RecvFrom( Socket=2, 0xfd040bd3:80e80002:2158d00:540de4, Len = 22)
Module: H->N (101)
----------------------

What is this error: "... Module: <Send Fail> ErrNo: 57859 ..." (ErrNo 0xE203)

In "JenNet-IP WPAN Stack User Guide" this error not present.

Answer me, please, anyone.

Tags (3)
0 Kudos
1 Reply

91 Views
limcb
Contributor IV

Hi could you add this to have more info ?

uint32 u32ErrCode = 0;
if (iSendToResult != 0) {
     u32ErrCode = u32_6LP_GetErrNo();
     DBG_vPrintf(TRUE, "\nError: %d\ncode: %d\ninfo: %d", iSendToResult,
                    (u32ErrCode & 0xff), ((u32ErrCode >> 8) & 0xff));
}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

iSendToResult = result from Send command.

Example 

int iSendToResult;

iSendToResult= i6LP_SendTo();

How fast are you sending the data ?

Can you check u16_6LP_GetNumberOfAvailableIPv6Buffers ? Make sure u16_6LP_GetNumberOfAvailableIPv6Buffers less than u16_6LP_GetNumberOfIPv6Buffers.

Is the END DEV sleepy or always on?

Is there a router to buffer the message in between the COORD and END DEV ?

0 Kudos