Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mcux Ethernet driver does not detect carrier anymore (it's alway on) #16089

Closed
tbursztyka opened this issue May 13, 2019 · 3 comments · Fixed by #17847
Closed

Mcux Ethernet driver does not detect carrier anymore (it's alway on) #16089

tbursztyka opened this issue May 13, 2019 · 3 comments · Fixed by #17847
Assignees
Labels
area: Drivers area: Ethernet area: Networking bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: medium Medium impact/importance bug

Comments

@tbursztyka
Copy link
Collaborator

tbursztyka commented May 13, 2019

Describe the bug
Mcux Ethernet driver used to be able to detect carrier state, but something somewhere has changed and it thinks the carrier is always on now.

To Reproduce
Do not plug the Ethernet cable to your device
Use samples/net/sockets/echo_client

  1. mkdir build; cd build
  2. Change the prj.conf so it becomes:
#CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::2"
#CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::1"
#CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.2"
#CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.1"
CONFIG_NET_DHCPV4=y
CONFIG_NET_L2_ETHERNET_MGMT=y
CONFIG_NET_MGMT_EVENT_LOG_LEVEL_DBG=y
CONFIG_NET_DHCPV4_LOG_LEVEL_DBG=y
  1. cmake -DBOARD=board\frdm_k64f
  2. make
  3. Dhcp starts right away to send discover
  4. Plug the Ethernet cable: no changes. Eventually the discover timeout will restart and dhcp will be successful but that's the wrong behavior: it should receive a if_up net_mgmt event then starts dhcp discover.

Expected behavior
Carrier on/off (and thus net if up/down state) should be detected

Impact
Unable to test properly code that rely on carrier off/on and net if up/down events on that device.

@MaureenHelm
Copy link
Member

@agansari can you take a look at this?

@ioannisg
Copy link
Member

ioannisg commented Aug 1, 2019

@tbursztyka pls, try the patch in #17847 and report if this fixes the bug :)

@tbursztyka
Copy link
Collaborator Author

I'll try to find some time next week, too busy atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Drivers area: Ethernet area: Networking bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants