Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


Serial2.dll error (V6.01 .Net2)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2008, 09:11 AM
Newbie
 
Join Date: Jan 2008
Posts: 3
Default Serial2.dll error (V6.01 .Net2)

Hi,

I have seen a binary bute transfer error in the Serial2.dll:
It seems, that using binary transfer (InputArray) the
incoming byte values 0x11 and 0x13 (decimal 17 and
decimal 19) can not be read in, these values will not
appear in the reasult array.
The serial port settings was 9600-8-N-1, but other
settings produced the same error. Other byte values are
coming perfectly, only these two bytes values are missing.
The place of these two bytes in the input stream is not
relevant: the same error comes at the beginning, middle
and at the end of the stream.

In the "old version" (V5.8, .Net 1.1, DBComm.dll, SerialDesktop.dll) this error was not present.

Please, colud you help solving this problem?

Thanks,
Bela
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 11:08 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,314
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Those are the Xon/Xoff control byte values. It looks like you have Serial2. XonXoffHandshaking set to true.
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 09:39 PM
Newbie
 
Join Date: Jan 2008
Posts: 3
Default

Quote:
Originally Posted by agraham View Post
Those are the Xon/Xoff control byte values. It looks like you have Serial2. XonXoffHandshaking set to true.
Hi,
Thanks for the fast answer.

No, XonXoffHandshaking was explicite set to False. It seems, that the command which sets it to False has no effect. The program below put the "XonXoff True" message on the screen, so confirming that the False setting was not performed correctly:

Sport.XonXoffHandshaking = False
If Sport.XonXoffHandshaking = True Then
Msgbox("XonXoff True")
Else
Msgbox("XonXoff False")
End If

I guess, it is an error in the DLL.
Or is there any other kind of way to set the XonXoffHandshaking to False?

Bye,
Bela
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 08:27 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,780
Default

Bela you are right.
There is a problem with the XonXoff property.
You could download the fixed library here : http://www.basic4ppc.com/forum/showt...=8720#post8720
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 08:32 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,314
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by almasi View Post
I guess, it is an error in the DLL.
It seems to be an error in the DLL! A workaround is to not set XonXoffHandshaking at all as setting it always sets it True. To be sure you could also use:-
Code:
  Sport.CTSHandshaking = False
This explicitly sets the Handshake to None if set False.


Edit :- B****r - Erel got in while I was testing and writing this

Last edited by agraham : 01-18-2008 at 08:41 AM.
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 11:03 AM
Newbie
 
Join Date: Jan 2008
Posts: 3
Default

Thanks for the fast solution, it works fine.
Really great work!!!

Bye,
Bela
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial2 update - V1.2 Erel Official Updates 0 01-18-2008 08:26 AM
B4PPC automatic loads net2 ? Put Claude Questions & Help Needed 4 11-28-2007 04:44 PM
Serial2 problem Henry Questions & Help Needed 2 11-28-2007 09:52 AM
Serial2.dll alfcen Bug Reports 2 08-13-2007 07:04 PM


All times are GMT. The time now is 06:22 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0