[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to access COM Port with Octave?
From: |
John Swensen |
Subject: |
Re: How to access COM Port with Octave? |
Date: |
Wed, 22 Sep 2010 09:20:22 -0400 |
On Sep 22, 2010, at 9:03 AM, CdeMills wrote:
>
>
> John Swensen wrote:
>>
>>
>>
>> Another option involve(s) using the ser2net library. Octave already has a
>> sockets package and the ser2net server allows you to connect over a socket
>> and then send and receive over the serial port. I know that this package
>> used to be available on Cygwin (I haven't used cygwin in 5-6 years so
>> don't know whether it is still available). I also know of one lab that
>> had a very old PC that they put a tiny Linux distribution on whose sole
>> purpose was to run ser2net and connect to their device over serial. Then
>> they could control the device from any networked machine.
>>
>>
>
> Another option is to use the Win32 API which doesn't seem too complicated:
> http://msdn.microsoft.com/en-us/library/aa363258%28v=VS.85%29.aspx
>
> look for GetCommModemStatus. But could those functions be used under cygwin
> ?
>
> Pascal
> -
I should have qualified my response as being a solution if they don't feel
comfortable writing MEX/OCT files and programming in C. The ser2net + sockets
package is a solution that may be amenable for such a user.
John Swensen