Post not yet marked as solved
I have a CH340g connected to my M1 MacBook Air running the latest Big Sur 11.2.3.
It appeared only one time in /dev, and now will not re-appear. I've tried plugging it in to both ports, unplugging everything except for the CH340g, and also kextunload, kextload on AppleUSBSerial.kext. It does not appear in /dev
Has anyone had any luck with this device? Or perhaps some advice?
Post not yet marked as solved
how to obtain information about transmission errors such as overrun, framing, parity, and
break signals?
Post not yet marked as solved
we are developing USB hid library to interact with HID device, however we're facing on memory lacking when we calling IOCreatePlugInInterfaceForService then calling IODestroyPlugInInterface, the memory is not released and each time of calling it take about 0.3 MB Ram, after long time running, the program crash because runout of memory.
what should we do in this case to avoid memory leak?
// Create a device interface/HANDLE
static BOOL CreateHidDeviceInterface(io_object_t deviceObject, HANDLE* pHandle)
{
BOOL retVal = FALSE;
IOCFPlugInInterface** ppPluginInterface = NULL;
SInt32 score = 0;
IOReturn pluginResult;
HRESULT interfaceResult;
// Create a plugin so we can create an interface
pluginResult = IOCreatePlugInInterfaceForService(deviceObject, kIOHIDDeviceUserClientTypeID, kIOCFPlugInInterfaceID, &ppPluginInterface, &score);
if (pluginResult == kIOReturnSuccess)
{
// Create the interface (HANDLE)
interfaceResult = (*ppPluginInterface)->QueryInterface(ppPluginInterface, CFUUIDGetUUIDBytes(kIOHIDDeviceInterfaceID), (void**)pHandle);
if (interfaceResult == S_OK)
{
retVal = TRUE;
}
IODestroyPlugInInterface(ppPluginInterface);
}
return retVal;
}
Post not yet marked as solved
I'm new to iOS development. I have some devices that needs to be connected via serial port (read&write, chipset cp210x).
I want to know if I can connect the device just using common lightning-usbc cables? Should get MFI first? Or I just using a MFI authenticated lightning-usbc cable is OK?
Few more question... where the MFI chipset located? Embedded in the device or in the cable?
Post not yet marked as solved
why does it show that my MacBook is jailbroken when I open partner pro?
Post not yet marked as solved
Dear All,
I have looked for on this forum an answer to this question : it seems complicated and also depend of the MAC OS version.
In fact, my team has developed an USB device.
This device works on Windows OS. We have sold the product, it works on different OS versions (7, 10 and 11)
This device works also on raspberry PI (linux core).
Into these both OS, the product is detected like a serial port : I can use basic application of check that my product is perfectly functional.
Now I want use it on MAC OS, my device appears into the list of USB components connected to my MAC.
However I'm not able to indicate (or force) the serial port.
I read lot of things, kext? ,,, could depend of MAC version however I cannot found a clear process to help me to install a virtual COM on my MAC OS.
Do you have link to other forum (more hardware may be)?
Do you have any technical documentation about this topic?
regards,
fu154
Post not yet marked as solved
I want know how to set IOTTYBaseName in USBSerialDriverKit.We try to use SetProperties method inherit from IOService, but the method return -301 error code.