|
-
Feb 28th, 2008, 07:56 PM
#1
Thread Starter
New Member
Serial port access in WM6 Standard via SerialPort - TX works fine, RX crashes
Hello,
This is the first time I've ever used VB.NET. I'm used to VB6. I am trying to create a serial terminal program for my WM6. I have a bluetooth serial adaptor connected to a microcontroller development board. I have created a textbox. When there is a keypress event I use 'serialport.write(e.keychar)' That works fine. I'm having problems with the SerialPort_DataReceived method. There are a few methods that seem to do what I want for receiving:
serialport.
read
readbyte
readchar
readline
readexisting
I've tried readbyte, readchar, readline and readexisting and they all throw an exception.
All I want to do is get a single byte from the serial port and place it in txtTerminal (My 'terminal' window).
The serial connection is via a bluetooth adaptor.
-
Feb 29th, 2008, 02:30 PM
#2
Frenzied Member
Re: Serial port access in WM6 Standard via SerialPort - TX works fine, RX crashes
Hi,
have you tried it in the full framework?
What is it crashing with?
What is ReceivedBytesThreshold set to?
There is an article on using the serial port here
Last edited by petevick; Mar 1st, 2008 at 04:05 AM.
-
Apr 4th, 2009, 02:25 AM
#3
New Member
Re: Serial port access in WM6 Standard via SerialPort - TX works fine, RX crashes
Dear Daniel,
I am trying to do the same with WM6 and VB.NET 2008. So far i didnt have any success at all. Please let me know if you succeeded in having a bidirectional communication between your mobile and the remote bluetooth device using the serial port? If yes, can you share with me your work? This will be a great deal of help as i have been trying and trying for days without having a clue.
Sincerely,
MedianIX.
 Originally Posted by DanielTTurner
Hello,
This is the first time I've ever used VB.NET. I'm used to VB6. I am trying to create a serial terminal program for my WM6. I have a bluetooth serial adaptor connected to a microcontroller development board. I have created a textbox. When there is a keypress event I use 'serialport.write(e.keychar)' That works fine. I'm having problems with the SerialPort_DataReceived method. There are a few methods that seem to do what I want for receiving:
serialport.
read
readbyte
readchar
readline
readexisting
I've tried readbyte, readchar, readline and readexisting and they all throw an exception.
All I want to do is get a single byte from the serial port and place it in txtTerminal (My 'terminal' window).
The serial connection is via a bluetooth adaptor.
-
Apr 14th, 2009, 07:10 AM
#4
Re: Serial port access in WM6 Standard via SerialPort - TX works fine, RX crashes
Could you post the exption that you get?
-
Apr 14th, 2009, 03:12 PM
#5
Frenzied Member
Re: Serial port access in WM6 Standard via SerialPort - TX works fine, RX crashes
Did you look at the article I pointed at - that contains working code for the serial port.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|