Controlling an external device
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 10127
- Joined: Fri Feb 19, 2010 10:17 am
Re: Controlling an external device
Obviously THIS is a log-standing sore-point:
"In terms of explicitly talking to a USB device, everyone who asks is told to
use the "open driver" command; but followup questions about what to pass to
it - ie the driverName - appear to have gone unanswered."
http://metacard.runrev.narkive.com/wNgc ... sb-devices
2003 !!!!
"In terms of explicitly talking to a USB device, everyone who asks is told to
use the "open driver" command; but followup questions about what to pass to
it - ie the driverName - appear to have gone unanswered."
http://metacard.runrev.narkive.com/wNgc ... sb-devices
2003 !!!!
-
- Livecode Opensource Backer
- Posts: 10127
- Joined: Fri Feb 19, 2010 10:17 am
Re: Controlling an external device
If the driver does not exist, the result function is set to "Can't open that file." On OS X and Unix systems, you can obtain a list of available devices by reading the file "/dev/tty".
Really? How does one do that?
Really? How does one do that?
-
- Livecode Opensource Backer
- Posts: 10127
- Joined: Fri Feb 19, 2010 10:17 am
Re: Controlling an external device
Well . . .
I have "the program identifier string to establish connection to the API" and it is:
"SilvaElm.R2CommandInterface.R2Command"
and the PDF I have gives examples of VB and C#:
VB: Set objApp = CreateObject("SilvaElm.R2CommandInterface.R2Command")
C#: IR2Command m_r2Command = null;
Type type = Type.GetTypeFromProgID("SilvaElm.R2CommandInterface.R2Command");
m_r2Command = Activator.CreateInstance(type, true) as IR2Command;
My PROBLEM is how to establish the connection using LiveCode.
I have "the program identifier string to establish connection to the API" and it is:
"SilvaElm.R2CommandInterface.R2Command"
and the PDF I have gives examples of VB and C#:
VB: Set objApp = CreateObject("SilvaElm.R2CommandInterface.R2Command")
C#: IR2Command m_r2Command = null;
Type type = Type.GetTypeFromProgID("SilvaElm.R2CommandInterface.R2Command");
m_r2Command = Activator.CreateInstance(type, true) as IR2Command;
My PROBLEM is how to establish the connection using LiveCode.
-
- Livecode Opensource Backer
- Posts: 10127
- Joined: Fri Feb 19, 2010 10:17 am
Re: Controlling an external device
So, the Roamer arrived and I jacked it into the Macintosh and got this:
BUT how can I use that info to find how to perform and "open . . . to write" ?
Which is very jazzy indeed.
BUT how can I use that info to find how to perform and "open . . . to write" ?
-
- Livecode Opensource Backer
- Posts: 10127
- Joined: Fri Feb 19, 2010 10:17 am
Re: Controlling an external device
getting nowhere at all, and not for lack of trying.
-
- Livecode Opensource Backer
- Posts: 10127
- Joined: Fri Feb 19, 2010 10:17 am
Re: Controlling an external device
Just found this: http://www.runrev.com/pipermail/use-liv ... 72471.html
"On Windows 7 :-
Using USB - RS232 adapter and/or BLUETOOTH/USB - RS232 adapter
My Serial RS232 Script works on Version 3.5.0
Sarah Reichelt's Serial Test script works on Version 3.5.0
My Serial RS232 Script fails to receive on Version 4.6.4
Sarah Reichelt's Serial Test script fails to receive on Version 4.6.4"
I intend to install Runtime Revolution 4.0 on my Windows 7 box tomorrow.
If that works then RunRev have got some very funny questions to answer.
"On Windows 7 :-
Using USB - RS232 adapter and/or BLUETOOTH/USB - RS232 adapter
My Serial RS232 Script works on Version 3.5.0
Sarah Reichelt's Serial Test script works on Version 3.5.0
My Serial RS232 Script fails to receive on Version 4.6.4
Sarah Reichelt's Serial Test script fails to receive on Version 4.6.4"
I intend to install Runtime Revolution 4.0 on my Windows 7 box tomorrow.
If that works then RunRev have got some very funny questions to answer.
-
- Livecode Opensource Backer
- Posts: 10127
- Joined: Fri Feb 19, 2010 10:17 am
Re: Controlling an external device
I went and installed Runtime Revolution 4.0 on my Windows 7 box and then made the same
stack that I had made in LiveCode 7.0 in 4.0 with an identical script in the single button.
The picture says quite a lot: RR 4.0 on the left, LC 7.0 on the right.
This would seem to indicate something has been broken and never repaired.
Sarah's 'Serial.rev" was able to SEND to the COMx: ports on the Windows box under RR 4.0, it was quite unable to under LC 7.0.
stack that I had made in LiveCode 7.0 in 4.0 with an identical script in the single button.
The picture says quite a lot: RR 4.0 on the left, LC 7.0 on the right.
This would seem to indicate something has been broken and never repaired.
Sarah's 'Serial.rev" was able to SEND to the COMx: ports on the Windows box under RR 4.0, it was quite unable to under LC 7.0.
Re: Controlling an external device
Hi Richmond,
Did you try older versions of Revolution (1.0 to 3.5)
and MetaCard (2.x to 2.5) to test this code?
Al
Did you try older versions of Revolution (1.0 to 3.5)
and MetaCard (2.x to 2.5) to test this code?
Al
-
- Livecode Opensource Backer
- Posts: 10127
- Joined: Fri Feb 19, 2010 10:17 am
Re: Controlling an external device
Not yet 
Tomorrow, as the weather is lovely, I'll be up the hill in our villa pruning the fruit trees, weeding, and so on:
and, as usual, that's when the best programming ideas come to me.

Tomorrow, as the weather is lovely, I'll be up the hill in our villa pruning the fruit trees, weeding, and so on:
and, as usual, that's when the best programming ideas come to me.
Re: Controlling an external device
Ok.
Why don't you post the content of html file "Roamer-COM3.html"?
Could you share the file "SEROTA-199Roamer-API-Specification.pdf" with this forum?
Al

Why don't you post the content of html file "Roamer-COM3.html"?
Could you share the file "SEROTA-199Roamer-API-Specification.pdf" with this forum?
Al
-
- Livecode Opensource Backer
- Posts: 10127
- Joined: Fri Feb 19, 2010 10:17 am