Replies: 5 comments 1 reply
-
|
@noe2505 I've split up the discussion. |
Beta Was this translation helpful? Give feedback.
-
|
Please use the Automatic switching between VCP and CDC needs an overhaul. Meanwhile you need to set it during compilation. |
Beta Was this translation helpful? Give feedback.
-
|
So, looks like the device is properly detected and mounted (added several debug points locally to trace the whole process and all the right places fire up all the way to send), after a few hours of tinkering I discovered that the device expects a modbus RTU frame coming in through the serial port, fed that in and got some data flowing (yay)! However it seems like i'm just getting back the same bytes that I put in. We will see what tomorrow brings. |
Beta Was this translation helpful? Give feedback.
-
|
So it's actually a Modbus RTU device with UART over USB. |
Beta Was this translation helpful? Give feedback.
-
|
You can have a look here for inspiration: https://github.com/eModbus/eModbus |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Device Index Position: 12
Device Name: N1050
[Device Description]
Device Location ID: 0x144400
Device Set Speed: Full
Device Set Address: 0x0013
Port Information: 0x0x0018
Not Captive
External Device
Connected
Enabled
[Number Of Endpoints (includes EP0)] ✅✅
Total Endpoints for Configuration 1 (current): 4
[Device Descriptor]
Descriptor Version Number: 0x0200
Device Class: 2 (Communication)
Device Subclass: 0 ()
Device Protocol: 0 ()
Device MaxPacketSize: 8
Device MaxPacketSize: 8
Device VendorID/ProductID: 0x2044 0x1020
Device not found
Device Version Number: 0x0100
Number of Configurations: 0001
Manufacturer String (1 "Novus"):
Product String (2 N1050����):
Serial Number String (0 (none)):
[Configuration Descriptor (current config)]
Length (and contents): 67
Number of Interfaces: 2
Configuration Value: 1
Attributes: 0xC0 (self-powered)
MaxPower: 200 mA
Alternate Setting 0
Number of Endpoints 1
Interface Class: 2 - Communications-Control ✅✅
Interface Subclass: 2 -
Interface Protocol: 1 -
Interface #0 - @Communications-Control
Comm Class Header Functional Descriptor
Comm Class Abstract Control Management Functional Descriptor
Comm Class Union Functional Descriptor
Comm Class Call Management Functional Descriptor
Endpoint Descriptor
Address: 0x82 (IN)
Attributes: 0x03 (Interrupt)
Max Packet Size: 0x0008 (8 x 1 transactions opportunities per microframe)
Polling Interval: 2 (2 microframes (250 microsecs) )
Alternate Setting 0
Number of Endpoints 2
Interface Class: 10 - Communications-Data
Interface Subclass: 0 - Unknown Comm Class Model
Interface Protocol: 0 -
Interface #1 - @Communications-Data/Unknown Comm Class Model
Endpoint Descriptor
Address: 0x03 (OUT) ✅
Attributes: 0x02 (Bulk) ✅
Max Packet Size: 64
Polling Interval: 0 ( Endpoint never NAKs)
Endpoint Descriptor
Address: 0x83 (IN) ✅
Attributes: 0x02 (Bulk) ✅
Max Packet Size: 64
Polling Interval: 0 ( Endpoint never NAKs)
Beta Was this translation helpful? Give feedback.
All reactions