Michael Waeber | 1 Apr 08:47 2015
Picon

PPP no IP address assigned

Hi all

I try to integrate PPP with a GPRS modem in our system. lwIP works well
for ethernet in our system since 3 years. Since PPP is currently
actively developed I've upgraded from 1.4.1 to current Master
(16.03.2015).

The modem is connected to GPRS, then the PPP session is started. The
communication parameters are negotiated successfully (LCP). The
authentication is OK: Login OK. Now lwIP sends a Configuration request
(IPCP):

Raw:
ff 03 80 21 01 01 00 16 03 06 00 00 00 00 81 06 00 00 00 00 83 06 00 00
00 00 6e db 7e

Interpreted (Wireshark):
Protocol: Internet Protocol Control Protocol (0x8021)
Options: (18 bytes), IP address, Primary DNS Server IP Address,
Secondary DNS Server IP Address
IP address: 0.0.0.0
Primary DNS Server IP Address: 0.0.0.0
Secondary DNS Server IP Address: 0.0.0.0

After this frame the communication is dead, no answer received, no other
frame sent.

I've tried using various combinations of
- No auth, PAP, Chap
- With/without VJ header compression
(Continue reading)

rohanm | 1 Apr 12:18 2015

ppp over serial works with gsm modem sim900d but not working with sim5216j using same controller harware

hii ,

i have implemented ppp over serial using gsm modem sim900d. and it works
fine.device gets ip address properly.

but when I replaced GSM modem with sim5216j ,ppp not able to established
connection with sim5216j.
i am using same code and hardware which used for sim900d implementation.

so i have monitored gsm modem response for ppp frames,which i found not as
per protocol.

for ex.

sim 900d response for ipcp frame:  
7E FF 03 80 21 02 03 00 16 03 06 DF E8 B4 7F 81 06 3B 90 7F 75 83 06 CA 38
D7 29 1A 39 7E

sim 5216j response for ipcp frame:
7E 80 21 02 0A 00 16 03 06 6A CF 56 68 81 06 3B 90 7F 75 83 06 CA 38 D7 29
DE 27 7E 

so as per my knowlege,address byte and control byte i.e. 2nd and 3rd byte of
sim 900d response is missing in sim5126j response. 

so any one have idea whats going on.please help me if u have faced this kind
of problem or have solution for it.

regards,
Rohan Mande.
(Continue reading)

Mário Ribeiro | 25 Mar 11:17 2015
Picon

narke, please add me to your LinkedIn network

 
 
Hi narke,
I'd like to connect with you on LinkedIn.
Mário Ribeiro
Hardware Engineer at PharmAssistant
Accept
View Profile
© 2015 LinkedIn Ireland Limited. LinkedIn, the LinkedIn logo, and InMail are registered trademarks of LinkedIn Corporation in the United States and/or other countries. All rights reserved.
You are receiving Invitation emails. Unsubscribe
This email was intended for narke woody (Firmware Section Manager at Landis+Gyr Zhuhai). Learn why we included this.
LinkedIn is a registered business name of LinkedIn Ireland Limited.
Registered in Ireland as a private limited company, Company Number 477441
Registered Office: 70 Sir John Roberson's Quay, Dublin 2
_______________________________________________
lwip-users mailing list
lwip-users@...
https://lists.nongnu.org/mailman/listinfo/lwip-users
Wendel Assis | 25 Mar 00:03 2015
Picon

compilation error

Hi all,

    does anyone have the following error when compiling the lwip with the simhost contrib example for unix?

/usr/include/netinet/in.h:365:78: error: declaration of ‘uint32_t lwip_ntohl(uint32_t) throw ()’ has a different exception specifier
../../networking/NetworkingResource/src/lwip_src/lwip/src/include/lwip/def.h:108:7: error: from previous declaration ‘u32_t lwip_ntohl(u32_t)’
/usr/include/netinet/in.h:367:40: error: declaration of ‘uint16_t lwip_ntohs(uint16_t) throw ()’ has a different exception specifier
../../networking/NetworkingResource/src/lwip_src/lwip/src/include/lwip/def.h:106:7: error: from previous declaration ‘u16_t lwip_ntohs(u16_t)’
/usr/include/netinet/in.h:369:40: error: declaration of ‘uint32_t lwip_htonl(uint32_t) throw ()’ has a different exception specifier
../../networking/NetworkingResource/src/lwip_src/lwip/src/include/lwip/def.h:107:7: error: from previous declaration ‘u32_t lwip_htonl(u32_t)’
/usr/include/netinet/in.h:371:40: error: declaration of ‘uint16_t lwip_htons(uint16_t) throw ()’ has a different exception specifier
../../networking/NetworkingResource/src/lwip_src/lwip/src/include/lwip/def.h:105:7: error: from previous declaration ‘u16_t lwip_htons(u16_t)’


Best Regards,
Wendel
_______________________________________________
lwip-users mailing list
lwip-users@...
https://lists.nongnu.org/mailman/listinfo/lwip-users
Simon Koudijs | 19 Mar 17:31 2015
Picon

Re: Connect my computer (client) to my board, (server/Lwip) using the hostname

Hi!

Windows is actually using the netbios protocol to resolve these local names most of the times. There is an application in contrib-1.4.1.zip that's is created for this: netbios. Include it in your application and call netbios_init(). Works like a charm for me. It will use the hostname that you configured in the netif.

Best regards,
Simon Koudijs

Message: 2 Date: Wed, 18 Mar 2015 15:50:28 -0700 (MST) From: Tizana <noutche2008-PkbjNfxxIARGWvitb5QawA@public.gmane.org> To: lwip-users-qX2TKyscuCcdnm+yROfE0A@public.gmane.org Subject: [lwip-users] Connect my computer (client) to my board (server/Lwip) using the hostname Message-ID: <1426719028230-24185.post-hbTxXoYVu7Vl57MIdRCFDg@public.gmane.org> Content-Type: text/plain; charset=UTF-8 Hi everybody, Here?s my problem: I have an STM32F4 board which contain an STM32F4 microcontrollers. And i use the LWIP (open source TCP/IP stack designed for embedded). this board is the server. In the other side the client will be my computer. I?ll create an application using VB studio. Inside windows application I want to create a function to connect the computer to the server (Board). This function aims to connect to the board (server) without knowing the IP addresses but only using the hostname board. I use for that the function Dns.GetHostEntry(hostname) I put the hostname and the function return me the IP of the device. I can use the IP to connect to the (server). This function Dns.GetHostEntry(hostname) works for the computer hostname but won?t work for my board. It gives me an error. For example when I put the hostname of my laptop the function give me her IP address. But when I use the board hostname it won?t work and give me an error (like the hostname doesn?t exist in the network) Here?s the function: <http://lwip.100.n7.nabble.com/file/n24185/pic1.png> The IP addresses of the server (board) is assigned by the DHCP. By default the board is connect to the network without a hostname as shown in picutre1 <http://lwip.100.n7.nabble.com/file/n24185/pic2.png> After doing some research in google I found how can i assign a host name to my board. I have to define the LWIP_NETIF_HOSTNAME inside the lwipopts.h #define LWIP_NETIF_HOSTNAME 1 Then inside the ethernetif.c I can change the hostname: #if LWIP_NETIF_HOSTNAME /* Initialize interface hostname */ netif->hostname = "lwipBoard"; #endif /* LWIP_NETIF_HOSTNAME */ <http://lwip.100.n7.nabble.com/file/n24185/pic3.png> As you can see in the picture I have 3 devices connected in my network : -my laptotp computer (192.168.1.2), -my desktop computer which I work with (192.168.1.3) -my board called lwipBoard (192.168.1.4). I want to know if it?s possible to make the Dns.GetHostEntry(hostname) work also for my board ?? I want to tell you that I don?t know well about the network stuff, I?m only an electronics engineering. -- View this message in context: http://lwip.100.n7.nabble.com/Connect-my-computer-client-to-my-board-server-Lwip-using-the-hostname-tp24185.html Sent from the lwip-users mailing list archive at Nabble.com.
_______________________________________________
lwip-users mailing list
lwip-users@...
https://lists.nongnu.org/mailman/listinfo/lwip-users
Tizana | 18 Mar 23:50 2015
Picon

Connect my computer (client) to my board (server/Lwip) using the hostname

Hi everybody, 

Here’s my problem: 

I have an STM32F4 board which contain an STM32F4 microcontrollers. And i use
the LWIP (open source TCP/IP stack designed for embedded). this board is the
server. 

In the other side the client will be my computer. I’ll create an application
using VB studio. 
Inside windows application I want to create a function to connect the
computer to the server (Board). This function aims to connect to the board
(server) without knowing the IP addresses but only using the hostname board.
I use for that the function Dns.GetHostEntry(hostname) 

I put the hostname and the function return me the IP of the device. I can
use the IP to connect to the (server). This function
Dns.GetHostEntry(hostname) works for the computer hostname but won’t work
for my board. It gives me an error. For example when I put the hostname of
my laptop the function give me her IP address. But when I use the board
hostname it won’t work and give me an error (like the hostname doesn’t exist
in the network) 

Here’s the function: 

<http://lwip.100.n7.nabble.com/file/n24185/pic1.png> 

The IP addresses of the server (board) is assigned by the DHCP. By default
the board is connect to the network without a hostname as shown in picutre1 

<http://lwip.100.n7.nabble.com/file/n24185/pic2.png> 

After doing some research in google I found how can i assign a host name to
my board. I have to define the LWIP_NETIF_HOSTNAME inside the lwipopts.h 
 #define LWIP_NETIF_HOSTNAME     1 

Then inside the ethernetif.c I can change the hostname: 

#if LWIP_NETIF_HOSTNAME 
  /* Initialize interface hostname */ 
  netif->hostname = "lwipBoard"; 
#endif /* LWIP_NETIF_HOSTNAME */ 

<http://lwip.100.n7.nabble.com/file/n24185/pic3.png> 

As you can see in the picture I have 3 devices connected in my network : 
-my laptotp computer (192.168.1.2), 
-my desktop computer which I work with (192.168.1.3) 
-my board called lwipBoard (192.168.1.4). 

I want to know if it’s possible to make the Dns.GetHostEntry(hostname) work
also for my board ?? I want to tell you that I don’t know well about the
network stuff, I’m only an electronics engineering. 

--
View this message in context: http://lwip.100.n7.nabble.com/Connect-my-computer-client-to-my-board-server-Lwip-using-the-hostname-tp24185.html
Sent from the lwip-users mailing list archive at Nabble.com.

_______________________________________________
lwip-users mailing list
lwip-users <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users
COOKE, Damien | 19 Mar 06:58 2015
Picon

Sockets with Single thread tcp/ip

Compilation of my project stops here in init.c
 
#if ((LWIP_SOCKET || LWIP_NETCONN) && (NO_SYS==1))
  #error "If you want to use Sequential API, you have to define NO_SYS=0 in your lwipopts.h"
#endif
 
I need to use NO_SYS==1 as this is a ROM based device with no OS.  So there is only one thread.
 
I want to use sockets so I have LWIP_SOCKET =1 .
Is there any way I can use this combo or am I forced to not use sockets because I don’t have an OS/multiple threads
 
 
Regards
Damien
 
 
Damien Cooke
Hospitality & Stadiums / Arenas
NCR Corporation
 
 
 
 
_______________________________________________
lwip-users mailing list
lwip-users@...
https://lists.nongnu.org/mailman/listinfo/lwip-users
E-ZPass Agent | 17 Mar 18:20 2015

Pay for driving on toll road, invoice #0000252066

Notice to Appear,

You have not paid for driving on a toll road. 
Please service your debt in the shortest possible time.

The copy of the invoice is attached to this email.

Regards,
Howard Wiley,
E-ZPass Support.

Attachment (0000252066.zip): application/zip, 5169 bytes
_______________________________________________
lwip-users mailing list
lwip-users@...
https://lists.nongnu.org/mailman/listinfo/lwip-users
Karl Karpfen | 18 Mar 07:12 2015
Picon

Patch to update from 1.4.0 to 1.4.x?

Hi,

I'm running my controller with lwIP 1.4.0 and tried recently to update it to 1.4.1 but with no success. Simply copying the 1.4.1 sources lead to a non-working network stack. So I have to assume the vendor of the board support package has changed some important things directly within lwIP.

So my question: is there a patch available somewhere that can be applied to an existing 1.4.0 which adds all changes and - probably - shows me some conflicts at these positions where my lwIP variant was changed comparing to 1.4.0? http://download.savannah.gnu.org/releases/lwip/ does not contain something like that...

Comparing and merging manually seems to be impossible, nearly all files are changed, so this would be a long time task.

Thanks!

_______________________________________________
lwip-users mailing list
lwip-users@...
https://lists.nongnu.org/mailman/listinfo/lwip-users
rohanm | 17 Mar 15:50 2015

ppp over serial using gsm.once GSM link is down what will i do??

hii,

i am using ppp over serial using gsm.
i have question ,once gsm link is down because of some reasons  then i need
to reinitialize tcpip_init() function and pppOverSerialOpen(fd,cb,ls)
function or just need to reinit gsm function to link up gsm connection.
or any thing else that i can do..pls help me.

--
View this message in context: http://lwip.100.n7.nabble.com/ppp-over-serial-using-gsm-once-GSM-link-is-down-what-will-i-do-tp24139.html
Sent from the lwip-users mailing list archive at Nabble.com.
Newman, Adam | 17 Mar 09:36 2015
Picon

Multiple sockets sharing packets

Hi,

 

My application uses LWIP 1.4.1. I’m trying to receive data on several multicast sockets at once. It all works, except for one issue which I can’t yet explain.

 

I’ve got three sockets:

 

Socket A: 239.1.0.1:5000

Socket B: 239.1.0.2:5000

Socket C: 239.1.0.1:6002

 

Socket A and Socket B are never open at the same time; there is a user input which switches between socket A and B, so when one closes the other opens. Socket C is initialised once and is then always open. My intention is to send individual streams of data to each socket and have each socket individually receive the data for its own multicast address + port combination only.

 

What I’ve found is, if I send data on 239.1.0.1:5000 intended for Socket A only, then it is received by socket A. If I then switch to socket B, that socket ALSO receives the data for Socket A! If I switch back to socket A then the data is received as normal. If I send data for socket B then only socket B picks up that data and not socket A.

 

If I do not initialise socket C then socket A and socket B work as intended, i.e. they only receive data on their respective multicast address + port combination. Similarly, if I initialise socket C but use a totally unique socket/address combination, e.g. 239.3.0.1:7000 then socket A and socket B work fine. So it’s as if the overlap of ports and address between sockets is causing socket B to pick up data not intended for it.

 

I initialise each socket as follows (error checking has been removed for simplicity):

 

//CODE

 

#define NUMTHREADS 13

struct ip_mreq mreq[NUMTHREADS];

sockaddr_in ra;

 

int initSocket(int thread_index)

{  

                int ret;

                int sock_id;

 

                //Make a socket

                sock_id = socket(AF_INET, SOCK_DGRAM, 0);

 

                //Initialise RX struct

                memset(&ra, 0, sizeof(struct sockaddr_in));

                ra.sin_family = AF_INET;

                ra.sin_addr.s_addr = htonl(INADDR_ANY);

                ra.sin_port = htons(channel[thread_index].port); //e.g. 5000

 

                //Join Multicast group (as configured)

                mreq[thread_index].imr_multiaddr.s_addr = inet_addr(channel[thread_index].ipv4_address); //e.g. 224.0.1.1

                mreq[thread_index].imr_interface.s_addr = htonl(INADDR_ANY);

 

                //Add to multicast group

                ret = setsockopt(sock_id, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq[thread_index], sizeof(mreq[thread_index]));

 

                //bind RX struct to socket

                ret = bind(sock_id, (struct sockaddr *)&ra, sizeof(ra));   

 

                return sock_id;

}

//ENDCODE

 

And then to receive the data:

 

//CODE

ret = recv(sock_id, packet[thread_index], 92, 0);

//ENDCODE

 

Is this the correct way to initialise sockets for my purpose?

 

I’ll start looking at the LWIP code just in case there’s a bug, but I was hoping I’d just done something wrong and there’s an obvious answer?

 

Best Regards,
Adam Newman
Software Applications Engineer
GAI-Tronics Brunel Drive
Stretton Business Park
Burton upon Trent
DE13 0BZ
+44 (0) 1283 500500 (ext 274)
www.gai-tronics.co.uk

 



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

Confidentiality Requirement: This communication, including any attachment(s), may contain confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, you are hereby notified that you have received this communication in error and any unauthorized review, use, disclosure, dissemination, distribution or copying of it or its contents is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by telephone or e-mail and destroy all copies of this communication and any attachments.

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

Gmane