KurtE
Senior Member+
Sorry, I am not really following this here? If it is setup for Dual Serial ports and it actually creates two USBSerial objexts...My problem is that I can't send/receive data to/from the interface 1 and recently I was reading some previous forums, and I found this forum: https://forum.pjrc.com/index.php?th...-issues-with-silabs-cp2105.75211/#post-344623
This person was facing exactly the same issue I am facing and someone replied to him that "Judging from the screenshot of the hardware properties, the enhanced port is interface 0 and the standard port is interface 1. From what I can tell the CP210x driver in the USBHost_t36 library only uses interface 0, it would require a bunch of changes to use interface 1". This means that teensy 4.1 still does not have the capability to use the interface 1 completely.
Is there some place here, where you plugged it in, and had debug turned on in USBHost, with the output shown here in
code tags?
As for bigbuffer version:
Code:
USBHub hub1(myusb);
USBSerial_BigBuffer userial1(myusb, 1, 1024); // Assume Interface 0 = CLI
USBSerial_BigBuffer userial2(myusb, 1, 1024); // Assume Interface 1 = Data
I don't think these will work, that is the parameters for the big buffer constructor are:
Code:
// host - reference to the main USB object
// min_rxtx - defaults to 65, set to 1 if you wish for it to also handle all USB to Serial objects
// vid_to_claim - Vendor ID Normally 0, but if you have device that is not supported you might specify it here.
// pid_to_claim - Product ID - only used with VID above
// vid_pid_sertype - Again not normally used unless pid, vid - then one of the following FTDI, PL2303, CH341, CP210X
// void_pid_claim_at_type = like above but 0 if claim at interface (default) or 1 claim whole device
But your 1024 is not the Product ID of your device (I don't think) so it won't connect.
Note: you might not necessarily rely on which of the objects will be claimed for what. That is I don't remember if they come out LIFO or FIFO.
And if something claims and releases, ...
But if you try running, this with the debug turned on, there should be some information printed by each of the objects, when/if it asks
the object if it wants to claim it or not...