Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PHY status API for ethernet drivers#8784

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
d-a-v merged 8 commits intoesp8266:masterfromd-a-v:w5500PHYStatus
Jan 5, 2023

Conversation

@d-a-v
Copy link
Collaborator

@d-a-vd-a-v commentedJan 3, 2023
edited
Loading

Implementation of::isLinked() for ethernet drivers:
This function returns true when the ethernet chip is physically connected.

(edited) It currently works and has been tested with W5500 and ENC28J60, and it seems it is not implementable with W5100.
An additional::isLinkDetectable() tells when::isLinked() is not trivially implemented.

(edited)::connected()is software only and is left unmodified for backward compatibility is updated to check link status tosolve compatibility with WiFi API.

Closes#8099

@d-a-v
Copy link
CollaboratorAuthor

@JAndrassy Do you know if Link/PHY status can be read by software for W5100 and ENC28j60 ?

@JAndrassy
Copy link
Contributor

@d-a-v yes it is possible
https://github.com/JAndrassy/EthernetENC/blob/9428b5e970dbc9882ac2aeed94725a1dd87615b9/src/utility/Enc28J60Network.cpp#L629

PHY register 0x11 bit 10
1 = Link is up
0 = Link is down

@d-a-v
Copy link
CollaboratorAuthor

@JAndrassy Thanks !
I successfully used your code on my testboard.

It seems W5100 can't deliver link status readable by software ?
The Arduino driverdoes not provide it.
I can't seem to find the right register in thedatasheet.

@mcspr
Copy link
Collaborator

mcspr commentedJan 4, 2023
edited
Loading

@d-a-v
Copy link
CollaboratorAuthor

Yes, we do !

@d-a-vd-a-v merged commit7cfb551 intoesp8266:masterJan 5, 2023
@d-a-vd-a-v mentioned this pull requestJan 5, 2023
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull requestNov 18, 2024
* PHY status API for W5500 & ENC28J60 drivers* move linkStatus() from ArduinoEthernet:: to LwipIntfDev::* LwipIntfDev: include PHY status into ::connected()
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

LwipIntfDev::connected() does not reflect connection

3 participants

@d-a-v@JAndrassy@mcspr

[8]ページ先頭

©2009-2025 Movatter.jp