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
Ethernet and BLE Mesh Conflicting #72431
Comments
Hi @wwilkins21! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
To clarify, DHCP does not start up Ethernet interface in any way, the interface needs to be already up for DHCP to work (the only interaction with the network interface is assigning IP address to it). The interface should've been brought up on boot, unless you configured it otherwise explicitly. But anyway, I can't really think of any direct relationship between enabling Maybe try to enable |
The carrier detection PR #68752 for this driver was merged in Feb so it should be able to detect the cable status. |
Yeah sorry I should have been more specific. The logs aren't very verbose even at dbg
@jukkar Yeah I've used that commit, just on my working Ethernet sample using what I provided above, I can detect the link status. Once I include CONFIG_BT is when the interface is never brought up |
Same code without CONFIG_BT
|
I still don't see how [00:00:02.263,610] <inf> eth_w5500: w5500@0: Link up
[00:00:02.263,671] <dbg> net_ethernet: carrier_on_off: (sysworkq): Carrier ON for interface 0x20001380
[00:00:02.263,793] <dbg> net_if: update_operational_state: (sysworkq): iface 0x20001380, oper state UP admin UP carrier ON dormant OFF It seems that the link detection in the driver takes place in a separate thread ( zephyr/drivers/ethernet/eth_w5500.c Line 314 in 5f9a9ed
|
Added some logs around that. When in a normal working state: Hot plugging the cable works fine. When I enable CONFIG_BT it's failing to read anything from the register. [00:00:05.764,495] eth_w5500: Update link status: 0 Phycfgr: 0x00 The really odd part is that at boot, it does manage to initialize the w5500 when BT is enabled |
I did a couple changes to my board though nothing related to Ethernet. I'm no longer running into this issue anymore. I did have to write up a static pm file due to BT creating a child image causing my partition definitions to be ignored, I don't think this is relevant but the only thing in my changes related to either Ethernet or BT. Closing this issue as it seems to be an issue with my first revision board. |
Describe the bug
I've been able to get BLE Mesh project and Ethernet project working separately but was failing to integrate them together.
So I decided to start slowly adding configs over to my working Ethernet project. Using CONFIG_BT as a prerequisite to CONFIG_BT_MESH, when I add just this configuration to my prj.conf is when the issue below happens.
DHCP Fails to initialize and start up Ethernet interface when CONFIG_BT=y is enabled.
I have a duplicate ticket opened in devzone ticket, which they recommended I come ask over here.
To Reproduce
Steps to reproduce the behavior:
Simple ethernet sample:
.overlay
.conf
main
Then once you get a working Ethernet sample add the config
CONFIG_BT=y
To the .conf file, and DHCP will begin failing to initialize the Ethernet interface.
Expected behavior
Ethernet and Bluetooth/BLE Mesh coexist together.
Impact
Showstopper
Logs and console output
Output:
Environment (please complete the following information):
Setup:
HW: Fanstel-WT02C40C (nrf5340/7002), WIZ5500 Ethernet Module
Additional context
I've tried increasing all possible connections with
CONFIG_NET_IF_MAX_IPV4_COUNT=2
CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=2
But can't find any such coexistence API's for Eth and BLE.
The text was updated successfully, but these errors were encountered: