WIN32 Serial Port

Is it possible to access the serial port using ruby on windows? If so,
where can I find some example code on doing so?

Thanks,
Travis Whitton whitton@atlantic.net

File.open("COM1:") { |io|
    io.puts "ATDT5551212"
    puts io.readline
}

???

-- Dossy

···

On 2003.01.07, Travis Whitton <whitton@atlantic.net> wrote:

Is it possible to access the serial port using ruby on windows? If so,
where can I find some example code on doing so?

--
Dossy Shiobara mail: dossy@panoptic.com
Panoptic Computer Network web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)

Is it possible to access the serial port using ruby on windows? If so,
where can I find some example code on doing so?

File.open(“COM1:”) { |io|

Oops, slight omission:

File.open(“COM1:”, “r+”) { |io|

io.puts "ATDT5551212"
puts io.readline

}

– Dossy

···

On 2003.01.07, Dossy dossy@panoptic.com wrote:

On 2003.01.07, Travis Whitton whitton@atlantic.net wrote:


Dossy Shiobara mail: dossy@panoptic.com
Panoptic Computer Network web: http://www.panoptic.com/
“He realized the fastest way to change is to laugh at your own
folly – then you can let go and quickly move on.” (p. 70)

Should have tested this before I sent it to the list. It doesn’t seem
to work under WinXP … not sure why, though.

– Dossy

···

On 2003.01.07, Dossy dossy@panoptic.com wrote:

On 2003.01.07, Dossy dossy@panoptic.com wrote:

On 2003.01.07, Travis Whitton whitton@atlantic.net wrote:

Is it possible to access the serial port using ruby on windows? If so,
where can I find some example code on doing so?

File.open(“COM1:”) { |io|

Oops, slight omission:

File.open(“COM1:”, “r+”) { |io|

io.puts "ATDT5551212"
puts io.readline

}


Dossy Shiobara mail: dossy@panoptic.com
Panoptic Computer Network web: http://www.panoptic.com/
“He realized the fastest way to change is to laugh at your own
folly – then you can let go and quickly move on.” (p. 70)

“Dossy” dossy@panoptic.com wrote in message
news:20030106212600.GP5932@panoptic.com

Is it possible to access the serial port using ruby on windows? If
so,
where can I find some example code on doing so?

File.open(“COM1:”) { |io|

Oops, slight omission:

File.open(“COM1:”, “r+”) { |io|

io.puts "ATDT5551212"
puts io.readline

}

Should have tested this before I sent it to the list. It doesn’t seem
to work under WinXP … not sure why, though.

– Dossy


Dossy Shiobara mail: dossy@panoptic.com
Panoptic Computer Network web: http://www.panoptic.com/
“He realized the fastest way to change is to laugh at your own
folly – then you can let go and quickly move on.” (p. 70)

One thing great about the *nix side…everything is a file. Not so on
Windows.

···

On 2003.01.07, Dossy dossy@panoptic.com wrote:

On 2003.01.07, Dossy dossy@panoptic.com wrote:

On 2003.01.07, Travis Whitton whitton@atlantic.net wrote:

Windows NT/2000/XP all insist that you use the Windows API to access
devices like that. I bet that Ruby is trying to use BIOS to do it. It’s
all part of the Windows “security” model… funny, they didn’t get any of
the other security right, but they sure broke loads of legacy apps…
(Including mine. bastards!)

Take Care,

Mark

···

At 06:26 07/01/2003 +0900, you wrote:

Should have tested this before I sent it to the list. It doesn’t seem
to work under WinXP … not sure why, though.

– Dossy


Dossy Shiobara mail: dossy@panoptic.com
Panoptic Computer Network web: http://www.panoptic.com/
“He realized the fastest way to change is to laugh at your own
folly – then you can let go and quickly move on.” (p. 70)