how to send a signal to usb
Mostrar comentarios más antiguos
I have a output (i.e)traini8ng and testing the finger print images,if finger print matches i want to send that output to usb where i will connect ad device hardware,ai have completed till matching of fingerprint,and got an output,"fingerprint matching",now i want to send this to usb port,caan anyone guide me please
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 15 de Oct. de 2011
You could send it to a USB controller (if you worked hard enough at it), but the USB controller would just discard it as being an invalid command.
USB is not a COM port with a different connector. USB is a packetized serial multidrop interface with a strict protocol. Each item send to the USB controller must contain a device address specifying the destination, which can be that of the USB controller or that of a device attached to the controller, such as a webcam or hard disc. A webcam would not know what to do with an output of "fingerprint matching".
One of the type of devices that can be connected to a USB controller is a virtual serial communication (COM) port. To connect to one of those, you use
instrhwinfo ('serial')
to list the current serial object names; once you have found the right name, you proceed the same way as for any other serial object; see http://www.mathworks.com/help/techdoc/ref/serial.html
1 comentario
FIR
el 19 de Oct. de 2011
Categorías
Más información sobre Data Acquisition Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!