hid with MacOS catalina

Status
Not open for further replies.

heimi

Active member
for many years I am using the hid.c code from the teensy website to communicate with teensy2 to teensy3.6 from MacOS.
With MaOS 10.15 Catalina this is no longer possible because of enhanced security standards.
Has anyone tried that?
 
rawhid with macos11 Big Sur

For many years, I am working on MacOSX with the USB-Functions provided by John de Witt at
https://github.com/jhdewitt/sltk/blob/master/hid_MACOSX.c
with no problems with Teensy2.0 to 3.6.
Now working on Big Sur with Xcode12 I run into troubles getting SIGABTRT's
In my Apps, I try opening the teensy at startup. If it is not already plugged in, the app complains and ask me to plug in the device; after that the teensy gets connected.
With Big Sur, the app crashed in that case with SIGABRT in rawhid_open on the line:
Code:
   IOHIDManagerScheduleWithRunLoop(hid_manager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
After the comment 'Start the HID-Manager'on line 256, I inserted
Code:
 // Start the HID Manager
   if (hid_manager) 
   {
      CFRelease(hid_manager);
      hid_manager = NULL;
   }
to get rid of an eventually already allocated hid_manager.
That fixed the problem.
 
Status
Not open for further replies.
Back
Top