USBsearch

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - USB Interface
Introduced first in SolidGeometry 2.8, Creation date: 2015-12-01, Last change: 2025-08-18

searches for specific USB serial devices on a MAC

Description

On OSX/Mac all connected USB devices are detected by the command:
[~,out]=system('ioreg -p IOUSB')
Nevertheless, only if a device driver is installed, the device could be found in the directory:
dir '/dev/tty*'
Therefor, this function uses an array consisting of Device name, Driver-Name, Driver source.
Afterwards, a serial port object is defined by com1=serial('devicedriver')
Afterwards, this serial object is used to open or close a fh=fopen(com1); fh=fclose(com1)

Currently the following devices are supported:
- NDI Host USB Converter
- Pololu Mini Maestro 12-Channel USB Servo Controller
- Keyspan USA-19H
- Arduino Mega

See Also: USBhelp , USBpololu

Example Illustration

 missing image of USBsearch()

Syntax

USBsearch([])

Examples

just type
USBsearch: % Searches for a couple of useful USB serial devices




Copyright 2015-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21