USB-ECM Enumeration over USB for STM32L072
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-06-25 11:06 PM
Using B-L072Z-LRWAN Board, I'm trying to Enumerate the USB Port as a Ethernet Adapter.(As Device not Host)
Thereby I integrated just the USB-ECM Stack provided by the STM32 itself.
I initially had issues with Driver, Post Following the Guide/Post from @tjaekel , i.e USB ECM demo - how to setup host? I used Belcarra USBLAN Driver, Though it got installed and is shown under Network Adapter, I see a Warning Sign for it
On Linux though, It gets identified as Android Tethering Device but doesn't show up on Wireshark nor Control Panel(Under Network).
So Below are my Issues:
- Is it Compulsory to Implement a Server Logic(LwIP, etc etc.) over the ECM Driver?
- Agenda of the Project is to USB Should be Enumerated as Ethernet Adapter on all OS Platforms, So Is ECM the Right Option?
- Can Someone Give me a Brief on, if I am to use ECM to achieve my agenda how and What are those Mandatory Components I need to include in the project.
- Keeping in mind the Board/Controller, STM32L072CZx, Wouldn't Implementing Server Logic use too much of memory? Just ECM Driver Integration alone uses 45.51% of RAM. As based on requirement we need RAM for other implementation too.
- Labels:
-
STM32L0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-06-27 06:04 AM
@Pavan_LohiaGroup wrote:The Device is expected to be connected to PLC's, Motor Drives and Other Industrial Machines
So do those things have USB Host sockets, and support USB-ECM on them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-06-27 06:08 AM
@Andrew Neil, Thanks but Not at the privilege to have them, We wanted to have it enumerated through software.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-06-27 06:11 AM
Yes, They have USB Ports, But Not Sure and Clear about what you meant by USB-ECM on them.
My assumptions/beliefs are if our devices gets detected as a Ethernet Port, I should just redirect the Data from Actual Ethernet Port to my Device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-06-27 07:04 AM
@Pavan_LohiaGroup wrote:Yes, They have USB Ports, .
and you're sure that they are USB Host ports
@Pavan_LohiaGroup wrote:Not Sure and Clear about what you meant by USB-ECM on them.
I mean, do they support USB-ECM ?
@Pavan_LohiaGroup wrote:if our device gets detected as an Ethernet Port
If the "OS platforms" don't support USB-ECM, then that's not going to happen ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-06-27 07:48 AM
> So would both need a IP Stack? I understand if TCP/IP might probably need as It needs to Connect first before any Communication.
Wait a second... If your device will just passively move raw ethernet packets from host to the "LoRA radio" (translate ethernet to PPP or SLIP?) the latter will handle TCP or UDP connection, and your device does not need IP stack. If your device must do translation from TCP/UDP on behalf of the "radio", it's a different story.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-06-27 08:44 PM
> and you're sure that they are USB Host ports
Yes, I have confirmed they are USB Host Ports
> I mean, do they support USB-ECM ?
Not Out of the Box, As in General How we will be in need to install Drivers for Windows and Linux, The Same can be used too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-06-27 08:47 PM
@Pavel A., Would it be possible to brief a little more on Ethernet to PPP or SLIP.
As You have understood, I just need to Passively move the raw ethernet packets from host to LoRa radio, I shall not modify interpret or do anything with raw Ethernet data.
- « Previous
- Next »