Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

No replies from DHCP requests

Posted by stemora on August 17, 2017

Hello there, I'm compiling FreeRTOS 9.0.0.0 + TCP 160919 for LPC1778. On the run of the board I send the DHSP request: sniffing with wireshark I see 3 DHCP requests and a number of ARP requests (?). No reply from the DHCP sever.

1003 68.228709 0.0.0.0 255.255.255.255 DHCP 309 DHCP Discover - Transaction ID 0x2ae6 1022 81.701502 0.0.0.0 255.255.255.255 DHCP 309 DHCP Discover - Transaction ID 0x2ae7 1029 91.951347 0.0.0.0 255.255.255.255 DHCP 309 DHCP Discover - Transaction ID 0x2ae8 4979 122.497600 Metrohm10:15:11 Broadcast ARP 60 Gratuitous ARP for 0.0.0.0 (Request) 8055 152.497153 Metrohm10:15:11 Broadcast ARP 60 Gratuitous ARP for 0.0.0.0 (Request) ....

Frame 1003: 309 bytes on wire (2472 bits), 309 bytes captured (2472 bits) on interface 0 Ethernet II, Src: Metrohm_10:15:11 (00:12:13:10:15:11), Dst: Broadcast (ff:ff:ff:ff:ff:ff) Internet Protocol Version 4, Src: 0.0.0.0, Dst: 255.255.255.255 User Datagram Protocol, Src Port: 68, Dst Port: 67 Bootstrap Protocol (Discover) VSS-Monitoring ethernet trailer, Source Port: 12

Checking on the DHCP server we don't see any request (?): possibile that the request is blocked by a switch ? If yes,why? My guess is that the package is not malformed .. is it ?

Thanks


No replies from DHCP requests

Posted by heinbali01 on August 17, 2017

Hi, I attached a simple DHCP conversation for comparison.

possible that the request is blocked by a switch

Switches will recognise DHCP packets and they will let them through.

Have you defined ipconfigUSE_DHCP_HOOK in your project? If so, what does your implementation of xApplicationDHCPHook() look like?

What you can try is install a temporary DHCP-server on your laptop:

https://sourceforge.net/projects/dhcp-dns-server/files/Dual%20DHCP%20DNS%20Server/

and see if your devices will get an answer from this DHCP server. When that works, you are one step further.

Can you ping your DHCP server from your laptop? Or, more complicated to test, if you give a fixed IP-address to your device, can it ping to the DHCP server?

Attachments

dhcp_packets.pcap (1327 bytes)

No replies from DHCP requests

Posted by heinbali01 on August 23, 2017

Hi there, did you get any further with DHCP ? If not, can you attach a PCAP that shows the DHCP packets ?


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists