Re: [lwip-users] LPC1769 ethernet problem

2016-09-09 Thread Fotis Panagiotopoulos
Hi, As it turned out it was a problem with the MAC address, that I cannot understand at all. I changed the MAC address and it worked like a charm. The odd part is that previously I had tried at least 20 different MAC addresses that didn't work. Most of them were from online MAC generators, but

Re: [lwip-users] LPC1769 ethernet problem

2016-08-17 Thread Sergio R. Caprile
Can you please write down all involved IP addresses and MACs and attach a wireshark capture file ? And the lwIP version, and where did you get it from. ___ lwip-users mailing list lwip-users@nongnu.org

Re: [lwip-users] LPC1769 ethernet problem

2016-08-16 Thread Fotis Panagiotopoulos
Today I also did the same tests at my home network. Obviously different router, and devices on the network. Here happens something different. The router sends ARP requests to my microcontroller (the exact opposite), the microcontroller responds normally, but the router doesn't seem to receive the

Re: [lwip-users] LPC1769 ethernet problem

2016-08-16 Thread Fotis Panagiotopoulos
No the ARP requests are send at the beginning of the transmission. As I stated the problem appears only when I try to access a server outside of my local network. I coded LWIP to send some data through UDP. Before the UDP connection, as it is normal it decides that the traffic should be send to

Re: [lwip-users] LPC1769 ethernet problem

2016-08-16 Thread Fotis Panagiotopoulos
The ARP request is valid. It is a normal broadcast send to ff:ff:ff:ff:ff:ff:, and the source is the MAC address that I have set to the code. As it seems there is no problem there. *Fotis Panagiotopoulos* *--* *AMCO S.A.* 25 Amfiaraou st. PO 10442, Athens, Greece Tel: +30 210 5907000 ext.

Re: [lwip-users] LPC1769 ethernet problem

2016-08-12 Thread goldsi...@gmx.de
Fotis Panagiotopoulos wrote: As I see in wireshark, when my microcontroller sends an ARP request about my gateway it does not receive any response. It continues sending the same request for about 30 secs (the time I wasn't seeing any UDP traffic), and then it starts sending the UDP packet.

Re: [lwip-users] LPC1769 ethernet problem

2016-08-12 Thread Chris Williams
Quoting Fotis Panagiotopoulos : Look at the wireshark ARP packet: It should send to the broadcast MAC address (ff:ff:ff:ff:ff:ff) Look at your send MAC address. This should be valid. I have seen problems if your MAC address is 0. Chris. Well, it seems I narrowed down the

Re: [lwip-users] LPC1769 ethernet problem

2016-08-12 Thread Fotis Panagiotopoulos
Well, it seems I narrowed down the problem. As I see in wireshark, when my microcontroller sends an ARP request about my gateway it does not receive any response. It continues sending the same request for about 30 secs (the time I wasn't seeing any UDP traffic), and then it starts sending the UDP

Re: [lwip-users] LPC1769 ethernet problem

2016-08-12 Thread Fotis Panagiotopoulos
OK I bought a managed switch, so I can now monitor the traffic on my network correctly. I set up the port mirroring function, to forward all traffic from the ethernet port the uC is connected, to the port that my PC is connected. I started wireshark but the problems persist. First my code starts

Re: [lwip-users] LPC1769 ethernet problem

2016-08-01 Thread goldsi...@gmx.de
Fotis Panagiotopoulos wrote: I am asking for the brand/model number of the one that you are successfully using, to search for a new or used one. As you can image buying lots of switches in the hope that randomly one of them will have this functionality, is not an good idea :) You don't have

Re: [lwip-users] LPC1769 ethernet problem

2016-07-29 Thread Chris Williams
Quoting "Sergio R. Caprile" : Agreed, although I have not seen a 100M hub! (Maybe I have not looked). I also have a hub I use sometimes for this purpose as well as the big but cheap switch that works at 100M. Interesting working at 10M. When you are not sure of the

Re: [lwip-users] LPC1769 ethernet problem

2016-07-29 Thread Sergio R. Caprile
Chris, There is no 10/100 in the definition of "hub"; probably some technical constraints and technology evolution force that situation. (AFAIK) However, I *DO* recommend working on 10baseT to develop a driver, speed can cover up for many mistakes. And working at 10M on an embedded system won't

Re: [lwip-users] LPC1769 ethernet problem

2016-07-29 Thread JZarnow
I've just bought excellent small switch with port mirroring option: NetGear ProSafe Plus GS105E-200PES managable via embedded web server. -Original Message- Aha... HUB... I missed that point... I 'll search for one. ** *Fotis Panagiotopoulos * *-- *

Re: [lwip-users] LPC1769 ethernet problem

2016-07-29 Thread Fotis Panagiotopoulos
Aha... HUB... I missed that point... I 'll search for one. *Fotis Panagiotopoulos* *--* *AMCO S.A.* 25 Amfiaraou st. PO 10442, Athens, Greece Tel: +30 210 5907000 ext. -34 <%2B30%20210%205907000%20ext.%20-36> | Fax: +30 210 5912711 e-mail: f.pa...@amco.gr | web: http://www.amco.gr On Fri,

Re: [lwip-users] LPC1769 ethernet problem

2016-07-29 Thread Sergio R. Caprile
I said I saved (and use) _hubs_; any one will do, they are just repeaters. I don't particularly know of any affordable switch model, maybe you have more luck hunting for a hub. On Fri, Jul 29, 2016 at 9:47 AM, Sergio R. Caprile wrote: > Sorry, I saved one or two hubs for

Re: [lwip-users] LPC1769 ethernet problem

2016-07-29 Thread Fotis Panagiotopoulos
Lending?? No I am asking for the brand/model number of the one that you are successfully using, to search for a new or used one. As you can image buying lots of switches in the hope that randomly one of them will have this functionality, is not an good idea :) *Fotis Panagiotopoulos* *--*

Re: [lwip-users] LPC1769 ethernet problem

2016-07-29 Thread Sergio R. Caprile
Sorry, I saved one or two hubs for this very purpose. I guess you are a bit too far for lending... You'll have to go hunting down one of these beasts. Meanwhile, can you double check and/or post your network config ? Maybe you overlooked a mask or address: lwIP address, mask, gateway router

Re: [lwip-users] LPC1769 ethernet problem

2016-07-28 Thread Fotis Panagiotopoulos
Sergio can you suggest me such a switch with debugging port? Something you have tried maybe? My intention wasn't to change the WAN, but essentially the router, thinking it may block the traffic. I have followed the code extensively, I did tried to place various brakepoints, and to turn on the

Re: [lwip-users] LPC1769 ethernet problem

2016-07-28 Thread Fotis Panagiotopoulos
Yes the gateway is correctly set. I was expecting to see the traffic using the promiscuous mode of my adapter, as I am able to capture packets that their destination is other than my PC. Running the server on the same PC is not an option, since as I stated everything works perfectly then. The

Re: [lwip-users] LPC1769 ethernet problem

2016-07-25 Thread Sergio R. Caprile
1: you need a hub or a switch with debugging/monitor port to see traffic from all ports. Connect your PC and your device to a hub or one of those switches (correctly configured) and you will see what happens in your network. If you need help, post a capture file. 2: trying different WANs does

Re: [lwip-users] LPC1769 ethernet problem

2016-07-25 Thread Chris Williams
Quoting Fotis Panagiotopoulos : You talk about wireshark. If you are running wireshark on a PC, you will not see the attempt to connect to a remote server from your device. The switch or router you are using will not send any of that traffic to the PC unless you provide a

[lwip-users] LPC1769 ethernet problem

2016-07-25 Thread Fotis Panagiotopoulos
Hi, I am using LWIP 1.4.1 for a microcontroller project, based on the NXP LPC1769 MCU. I do not use an RTOS and thus I am using the raw API. I created the device drivers mostly based on the examples provided by NXP. While a try any connection to my LAN, everything works perfect. However each