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:
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?
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.
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.
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 ...
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.
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.
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.