Quantcast
Channel: Visual Studio 2005(Windows Mobileエミュレータ)のシリアルポート設定が異常です
Viewing all articles
Browse latest Browse all 16

Visual Studio 2005(Windows Mobileエミュレータ)のシリアルポート設定が異常です

$
0
0
 .net compact framewok v2 を使ってシリアル通信アプリを作っています。実機ではcom1,com2の2ポートを使います。

visual studio 2003のemulatorと自作ドライバ使用では問題なかったのですが、2005で .net V2のserial port class を使用して書き換えたところ、com1以外は実ポートに出力できません。

Public Class Form1

   Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim comports As String() = System.IO.Ports.SerialPort.GetPortNames()

        MsgBox(comports(0) + comports(1) + comports(2))

  End Sub
End Class

で、エミュレータのポート名を調べると、com3 com9 com1と表示されます。

本来、順番は別として、com1 com2 com3となると思うのですが。

ちなみに、com2 com9 ではopenできません。

com3はopenできるのですが、実ポートにマップされません。

なお、実ポートはcom1とcom4で、エミュレータのcom1からはどちらにも出力できました。

vs2005sp1βやemulatorV2βにおいても同じ現象です。

現状では、com1以外は使えないのですが、何か特別な設定があるのでしょうか。


Viewing all articles
Browse latest Browse all 16

Latest Images

Trending Articles





Latest Images