Re: Open driver?

2003-07-07 Thread Dar Scott
On Sunday, July 6, 2003, at 03:27 AM, Christoph Pastl wrote:

How can I connect to my virtual serial port?
From the TD on open file:

You can use the open file command to open a serial port on Mac OS or 
Windows systems. On Mac OS systems, specify either “printer:” or 
”modem:“. On Windows systems, specify either “COM1:”, “COM2:”, or up 
to “COM9:”. Set the serialControlString property before opening the 
port to specify the baud rate and other settings.
From the TD on printer::

To use the modem port on Mac OS systems, use the modem: keyword. 
(Revolution does not support additional serial ports.) To use serial 
ports on Windows systems, use the COM1: through COM9: keywords.
From the TD on open driver:

Changes to Transcript:
Support for using serial drivers with OS X systems was added in 
version 2.0.
I think this says that you can't open your serial port on Mac OS 9, 
though I think you have a chance if you can convince it to look like 
the printer port.

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Open driver?

2003-07-06 Thread Christoph Pastl
Hello!

I´m using RR 2.0 on a PowerMac G4/400 with Mac OS 9.1.
I want to develop a program which connects to a USB interface
(an evaluation board). This USB board looks like a serial port for the Mac.
But: I don´t know how to connect to this hardware with RR.
The open driver command does not work.
I used many different names for the drivername, but no success.
(I took the drivername which appears in the Apple System Profiler too.)

The reason I know that my USB board is visible for the MacOS is,
that I can request its name using AppleScript. (With the SerialPort osax)
I can also send data to my module using this osax.

How can I connect to my virtual serial port?


Chris 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Open driver?

2003-07-06 Thread Dar Scott
On Sunday, July 6, 2003, at 03:27 AM, Christoph Pastl wrote:

The open driver command does not work.
I used many different names for the drivername, but no success.
(I took the drivername which appears in the Apple System Profiler too.)
I have been tinkering with a Keyspan usb-to-serial adaptor, today.  I 
have not been able to open this with Mac OS 9 and Revolution 2.0.1.

I have heard tales of others who have not been able to open 
usb-to-serial on Mac OS 9 and after a while have given up.

I have also experimented with 'open file' but it is hard to tell 
success, because I always get empty for the result.  I expect I will 
find that I have created all kinds of files.

I think some people have opened modem and printer (or is it 
modem: and printer:?).  If you can somehow force a name change, 
maybe that will work.


The reason I know that my USB board is visible for the MacOS is,
that I can request its name using AppleScript. (With the SerialPort 
osax)
I can also send data to my module using this osax.
I'm not very AppleScript savvy.  How can I get this name?  Can I use 
'do ... as AppleScript'?

I am curious about this evaluation board.

Dar Scott

**
  Dar Scott Consulting Programming Services [EMAIL PROTECTED]
**
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Open driver?

2003-07-06 Thread Sarah
Hi Chris,

It depends whether your USB interface mimics a printer port. If it does 
(like port 1 on Keyspan or similar adapters), then you can connect 
perfectly. If it uses another name, then I don't know whether you can 
do it at all in Transcript - you may have to stick to AppleScript. For 
testing purposes, you might like to try my Serial test stack which is 
available on my web site.

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
On Monday, July 7, 2003, at 07:38  am, Christoph Pastl wrote:

Hello!

I´m using RR 2.0 on a PowerMac G4/400 with Mac OS 9.1.
I want to develop a program which connects to a USB interface
(an evaluation board). This USB board looks like a serial port for the 
Mac.
But: I don´t know how to connect to this hardware with RR.
The open driver command does not work.
I used many different names for the drivername, but no success.
(I took the drivername which appears in the Apple System Profiler too.)

The reason I know that my USB board is visible for the MacOS is,
that I can request its name using AppleScript. (With the SerialPort 
osax)
I can also send data to my module using this osax.

How can I connect to my virtual serial port?

Chris


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Open driver?

2003-07-06 Thread Dar Scott
On Sunday, July 6, 2003, at 04:25 PM, Sarah wrote:

It depends whether your USB interface mimics a printer port. If it 
does (like port 1 on Keyspan or similar adapters), then you can 
connect perfectly.
This might not be the case on my Keyspan single port high speed 
adaptor, USA-19QW, or else I have something blocking it.

If I try this:

open file printer: for binary read

I get empty in the result.  (And zero in the sysError.)

(I open for read to avoid creating files and to get a good result.  I 
think.)

But the RTS and DSR lines don't light up on my little gadget as they do 
when the Keyspan is really opened.

Moreover, I get empty in the result even when the Keyspan is not 
plugged in.  I don't have a printer: serial port on my Blue  White 
G3 with Mac OS 9.2 unless there is some virtual dummy set up by the OS.

Dar Scott



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Open driver?

2003-07-06 Thread Dar Scott
On Sunday, July 6, 2003, at 09:24 PM, Dar Scott wrote:

It depends whether your USB interface mimics a printer port. If it 
does (like port 1 on Keyspan or similar adapters), then you can 
connect perfectly.
This might not be the case on my Keyspan single port high speed 
adaptor, USA-19QW, or else I have something blocking it.
I learned a little more for my case.  Due to a mental block on my part 
I didn't see the checkbox to have the Keyspan adaptor emulate the 
printer port in Keyspan Serial Assistant control panel.  (BTW, for you 
Windows PC folks, there are two classical serial ports on the Mac and 
one is named printer; this is not related to the parallel port on 
Windows PCs.)  I set that up and now an open for printer: takes a 
whole second to fail (syserror=-98).

So, on my Blue  White Mac OS 9.2 with no printer port that I know of:

Keyspan not plugged in--   open file printer: indicates success
Keyspan plugged in--   open file printer: indicates success
  but it does not open Keyspan
Keyspan in  set as printer--  open file printer: indicates error 
after 1 s

Dar Scott

**
  Dar Scott Consulting Programming Services [EMAIL PROTECTED]
**
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


open driver doesn´t work...

2003-06-07 Thread Christoph Pastl
Hi there!

I´m developing on a G4/400 with OS 9.0.4 and RR 2.0 and
I want to connect to a USB-to-Parallel module using the open driver
command.
As for the driver name, I use the name of the driver in the extensions
folder.
But when I want to connect to the driver, I get the can´t open that file
message.
I also tried to use the drivername, which appears in the
AppleSystemProfiler;
but it doesn´t work as well.

Because I can connect to the module using AppleScript and the Serial Port
OSAX,
I know that the module is recognized by the system.

Does anybody know how to connect to my USB interface?


Regards,
Chris 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Can´t open driver

2002-11-15 Thread Chris Pastl
I´m interested in developing applications on Mac OS 9
which can connect to a USB driver.
So tried to open a driver called USB Serial Driver
using the following code:

open driver USB Serial Driver for binary update

But the program says that it can´t open that file.

What´s wrong?

The Driver is successfully installed in the extensions folder.


Regards,
Chris 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Can´t open driver

2002-11-14 Thread Chris Pastl
I´m interested in developing applications on Mac OS 9
which can connect to a USB driver.
So tried to open a driver called USB Serial Driver
using the following code:

open driver USB Serial Driver for binary update

But the program says that it can´t open that file.

What´s wrong?

The Driver is successfully installed in the extensions folder.


Regards,
Chris 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Open driver?

2002-05-26 Thread Jean-Jacques Wagner

Hi,
Open Driver - can't open file

Well did you advance in solving your question? I am also stopped with the
same problem on a i-mac wanting to access a FTDI-device throught one of the
USB port.

Thanks for your help

Jean-Jacques Wagner

 Has anyone had any success with the open driver command on a Mac
 (OS 9.2)? I want to read data from the USB port and it certainly
 looks like the open driver command is what I want. However,  what are
 the drivers? Where are they? The docs make it sound like I can just
 call them by name (i.e. no mucking about with paths) but none of the
 files in my Extensions folder will open, even those that have
 driver in their names. Any file I name in the open driver command
 returns the Can't open that file message.
 
 Specifically I would like to read data from my Griffin iMic USB
 adaptor. It doesn't come with any drivers, but uses the built in
 Audio Manager and the Sound control panel. I assume that the Audio
 manager is a driver and that I should be able to read from it with
 the driver commands. That doesn't seem to be the case.
 
 I have fiddled a bit with OS X because the docs say that On OS X and
 Unix systems, you can obtain a list of available devices by reading
 the file /dev/tty. but I can't find such a file, or even a dev/
 directory. Any additional info would be helpful because I feel a bit
 lost.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Open driver?

2002-04-29 Thread Dar Scott


On Sunday, April 28, 2002, at 11:46 PM, Michael J. Lew wrote:

 Actually, I would like to use the iMic as a analog to digital 
 converter. I need to read the data values rather than record the 
 audio.

You could try writing out the file with the record command and then 
reading in the file.  Don't use any compression.  This will require 
reading up on QuickTime, I think.  (Or maybe you can figure out the 
format just by looking.)

Audio input normally does not have any 0 Hz (DC) response.  This is 
fine if you are looking at Morse code tones or maybe engine noise, 
but crumby if you are looking at power supply voltages or strain 
gauge amplifiers from scales.  In other words, normally audio only 
measures AC.  However, I don't know the particulars of iMic.

Dar Scott


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Open driver?

2002-04-29 Thread Michael D Mays

Which suit of XCMDs?

michael

David Vaughan of [EMAIL PROTECTED] wrote the following on 4/28/02 11:14 PM

 I can run HyperCard in the Classic environment under OS X and
 communicate through the USB using a suite of XCMDs, but nothing directly
 in OS X yet.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Open driver?

2002-04-29 Thread David Vaughan


On Tuesday, April 30, 2002, at 11:03 , Michael D Mays wrote:

 Which suite of XCMDs?

Harold Chesley's Serial Port Toolkit V2.6, comprising about fifteen 
separate XCMDs and XFCNs and dated 19 Feb 1990.

Kevin Calhoun (XFCN SerialHandler from the Dartmouth collection) and 
Danny Goodman (XCMD Comm) both do it in one handler (Harry even has a 
separate XFCN to return the version number) but I had some problems with 
each of them - doing nothing or crashing. Probably something wrong with 
my versions because there is nothing wrong with the people behind them. 
The Chesley kit is quite easy to use and seems to cover everything. I am 
doing receive only.

regards
David


 michael

 David Vaughan of [EMAIL PROTECTED] wrote the following on 4/28/02 
 11:14 PM

 I can run HyperCard in the Classic environment under OS X and
 communicate through the USB using a suite of XCMDs, but nothing 
 directly
 in OS X yet.

 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Open driver?

2002-04-28 Thread Dar Scott


On Sunday, April 28, 2002, at 07:02 PM, Michael J. Lew wrote:

 Specifically I would like to read data from my Griffin iMic USB 
 adaptor.

You don't want to open the USB driver.  (Well, somebody might want 
to, but that is unlikely.)  That is a lower level driver.  
Normally, you would open a higher level driver that does what you 
want.

However, in this case, you probably just want the Revolution record 
command.

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Open driver?

2002-04-28 Thread David Vaughan

Stephen

Further to my last response, my understanding consistent with my 
experience is that an app does not need to be carbonised to run under 
Classic. Carbonisation allows them to run either under OS X or 9.x as 
you please, but does not present the interface features or additional OS 
functions of a Cocoa app. Cocoa is OS X only. Some other apps I commonly 
use include Nisus, ithink, Data Desk and Analytica. As far as I know, 
none of these is carbonised. In fact, I can even run Resolve which was 
last updated in 1992. I very much doubt that Claris (or Informix who 
even earlier built the WingZ engine on which it was based) were thinking 
about Carbon then.

You may receive a more comprehensive and precise definition from a 
developer on the list.

regards
David

On Monday, April 29, 2002, at 02:29 , Stephen Barncard wrote:

 Did you say you could run Hypercard in Classic? I thought it wouldn't 
 run at all because it wasn't carbonized!


 I can run HyperCard in the Classic environment under OS X and 
 communicate through the USB using a suite of XCMDs, but nothing 
 directly in OS X yet.

 regards
 David
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Open driver?

2002-04-28 Thread Sarah

Classic will run nearly all old apps - they don't have to be carbonized. 
If you want to run an app in OS X itself, taking advantage of the better 
memory management  multi-tasking, the app needs to be either carbonized 
or written natively in Cocoa or Java.

Sarah


On Monday, April 29, 2002, at 02:32  pm, Stephen Barncard wrote:

 Did you say you could run Hypercard in Classic? I thought it wouldn't 
 run at all because it wasn't carbonized!


 I can run HyperCard in the Classic environment under OS X and 
 communicate through the USB using a suite of XCMDs, but nothing 
 directly in OS X yet.

 regards
 David
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Open driver?

2002-04-28 Thread Michael J. Lew

At 11:45 PM -0400 28/4/02, [EMAIL PROTECTED] wrote:
   Specifically I would like to read data from my Griffin iMic USB
  adaptor.

You don't want to open the USB driver.  (Well, somebody might want
to, but that is unlikely.)  That is a lower level driver. 
Normally, you would open a higher level driver that does what you
want.

However, in this case, you probably just want the Revolution record
command.

Dar Scott

Actually, I would like to use the iMic as a analog to digital 
converter. I need to read the data values rather than record the 
audio.

 From the sound of the other replies to my question, it sounds like 
this is not going to be possible.

So what is the open driver command for? What would be an example of 
a driver that it can open?




-- 
Michael J. Lew

Senior Lecturer
Department of Pharmacology
The University of Melbourne
Parkville 3010
Victoria
Australia

Phone +613 8344 8304

**
New email address: [EMAIL PROTECTED]
**
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution