Re: [lwip-users] LWIP IPV6 UDP STM32f746

2019-12-19 Thread ajnlwip
Is a mention in my first post I have used CubeMx and configured LWIP for raw
API and IPV6. 
I used my MAC address and generated (via a website) this IPV6 address
FE80::8000:0:0:E1
I then tried to ping the device but I cannot reach it. 

I am not sure I have correctly configured my IPV6 address, and if my PC with
IP address 
Link-local IPv6 Address . . . . . :fe80::b034:7349:9aec:332e%5should be
able to reach it. 

Does anyone have some code example to share? or some information how to get
started with
IPV6 and with LWIP raw API?

Just now I think too many things might be wrong to get Ping and UDP up and
running. 

  



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] LWIP IPV6 UDP STM32f746

2019-12-18 Thread Simon Goldschmidt



On 18.12.19 08:00, ajnlwip wrote:

Is there anyone that is using ipv6 with LWIP and raw udp interface?
If so, it would be nice if you can share some code. I am using stm32f746


Depending on which kind of problems you see, it might be better to ask a
more generic question. I don't see why IPv6 on that stm32 should be much
different from any other platform.

Regards,
Simon

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] LWIP IPV6 UDP STM32f746

2019-12-17 Thread ajnlwip
Is there anyone that is using ipv6 with LWIP and raw udp interface?
If so, it would be nice if you can share some code. I am using stm32f746







--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] LWIP IPV6 UDP STM32f746

2019-11-24 Thread ajnlwip
Hi,I have a STM32F746 that I am able to send/receive IPV4 UDP messages and it
working just fine. Now I try to move from IPV4 to IPV6. I am using CubeMx to
configure my STM32F746.The first step is to ping the device but I cannot
reach the STM32F746. According to the print out in MX_LWIP_Init() the IPV6
address is FE80::8000:0:0:E1So I tried the the following but failed:
C:\Users\ajn>ping FE80::8000:0:0:E1Pinging fe80::8000:0:0:e1 with 32 bytes
of data:Destination host unreachable.The ip address of the PC is:  
Connection-specific DNS Suffix  . :   Link-local IPv6 Address . . . . . :
fe80::b034:7349:9aec:332e%5   IPv4 Address. . . . . . . . . . . :
192.168.0.101   Subnet Mask . . . . . . . . . . . : 255.255.255.0   Default
Gateway . . . . . . . . . : 192.168.0.1I am little bit lost when it comes to
this IPV6 addresses, so may I am not using the correct ones.Do you have any
suggestion how I can solve this problem? *I have following code in: *
int *main*(void){  ...   MX_LWIP_Init();  ...  while (1)  {  /* Read a
received packet from the Ethernet buffers and send it to the lwIP for
handling */  ethernetif_input(_gnetif);// Checks if Ethernet link is 
up
or down  ethernetif_set_link(_gnetif); /* Handle timeouts */  
sys_check_timeouts();   }  }void *MX_LWIP_Init*(void){  /* Initilialize the
LwIP stack without RTOS */  lwip_init();  /* add the network interface
(IPv6) without RTOS */  netif_add(, NULL, _init,
_input);  /* Create IPv6 local address */ 
netif_create_ip6_linklocal_address(, 0); 
netif_ip6_addr_set_state(, 0, IP6_ADDR_VALID); 
gnetif.ip6_autoconfig_enabled = 1;  my_printf("%s: ",
ip6addr_ntoa(netif_ip6_addr(, 0)));  /* Registers the default network
interface */  netif_set_default();  if (netif_is_link_up())  {   
/* When the netif is fully configured this function must be called */   
netif_set_up();  }  else  {/* When the netif link is down this
function must be called */netif_set_down();  }  /* Set the link
callback function, this function is called on change of link status*/ 
netif_set_link_callback(, ethernetif_update_config);  /* Create the
Ethernet link handler thread *//* USER CODE BEGIN 3 *//* USER CODE END 3 */}



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users