USB Device

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

USB Device

Post by Neurox66 » Thu Jul 03, 2014 3:40 pm

Hi,
I need to connect to a device via USB on iMac with OSX Maverick.
I've used the command

Code: Select all

put shell ("system_profiler SPUSBDataType-xml") into tUsbList
for a list of USB devices.

I know the Vendor ID and Product ID and so I can get all the information.
But now?

I've tried using "Open driver" but with no results :(

Any tips?
Someone has already did something like?
Some samples? :)

Thanks,
Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: USB Device

Post by [-hh] » Fri Jul 04, 2014 8:52 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 3:20 pm, edited 1 time in total.
shiftLock happens

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Re: USB Device

Post by Neurox66 » Fri Jul 04, 2014 11:10 am

Hi,
thank's for sample but I don't want connect to my keyboard or mouse or webcam or data storage device.

Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: USB Device

Post by [-hh] » Fri Jul 04, 2014 11:42 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 3:19 pm, edited 1 time in total.
shiftLock happens

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Re: USB Device

Post by Neurox66 » Fri Jul 04, 2014 1:06 pm

[-hh] wrote:What is your post? A guessing game for us?
Sorry? Are you joke with me? :shock:
I'm serious!

My problem is a communicate with a device connected to iMac via USB.
The device is similar to Blink(1) of ThingM
With "system_profiler" I can get all the data of USB device but I don't know how to send data to device.

Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: USB Device

Post by [-hh] » Fri Jul 04, 2014 1:34 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 3:19 pm, edited 1 time in total.
shiftLock happens

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Re: USB Device

Post by Neurox66 » Fri Jul 04, 2014 1:52 pm

Hi Hermann,
thanks for the informations.
was 50% joking, because your answer seemed joking of this amount to me.
yes you're right :)
Did you already try this command-line tool ?
Yes I've already used blink1-tool via shell and blink1control with command "put url("http://localhost:8934/blink1/fadeToRGB?rgb=%2300FF00")".
I've made two app for use Blink(1) with LiveCode
but the question is comunicate with USB device directly without using shell or url commands.

Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

Post Reply