Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

SerialEx - an "improved" Serial2 library

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 04-15-2009, 10:18 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 762
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Andrew, I am returning to battle with the problems I was having with binary serial data acquisition last year (now having retired...).

So am delighted to find this library that may enable me to overcome my problem that could have been Ctrl-Z related.

BTW the "Help" with this library mentions Ctl-Z four times and each time gives its value as 0x0a whereas I'm sure it is 0x1a as given in the separate discussion.

Also, a plea: could the "Help" give the default values of the properties, espcially the new SerialEx ones? The we can avoid cluttering code with default settings that are spurious.
Reply With Quote
  #12 (permalink)  
Old 04-15-2009, 11:41 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by mjcoon View Post
BTW the "Help" with this library mentions Ctl-Z four times and each time gives its value as 0x0a whereas I'm sure it is 0x1a as given in the separate discussion.
Yes it is. The perils of cut and paste multiplying an original typo

Quote:
could the "Help" give the default values of the properties, espcially the new SerialEx ones?
Aren't the defaults detailed in the descriptions of New1 and New2 sufficient?
Reply With Quote
  #13 (permalink)  
Old 04-15-2009, 06:03 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 762
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
Aren't the defaults detailed in the descriptions of New1 and New2 sufficient?
Hi again Andrew; I think the answer must be "almost"! Really, I think I should be able to guess the default values of: EnableOnComm (True); EnableOnEof (True because this was the old behaviour); EnableOnPinChanged (False because it is new behavour); EnableOnPinChanged (False because it is new behavour).

Best regards, Mike.
Reply With Quote
  #14 (permalink)  
Old 04-15-2009, 06:34 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by mjcoon View Post
I think I should be able to guess the default values
I assume you meant EnableOnError instead of one of the EnablePinChangeds. You could always read them back instead of guessing - but in fact they are all False .

Your reasoning is sound except that as Serial2.dll defaults to EnableOnComm = False I made SerialEx the same. I didn't set EnableOnEof = True as I didn't want to automatically enable the deviant behaviour which was the reason for this new library. I wanted to be able drop SerialEx into a problematic Serial2 app without changing any code and for it to just work.
Reply With Quote
  #15 (permalink)  
Old 11-08-2009, 12:53 AM
Newbie
 
Join Date: Nov 2009
Posts: 1
Thumbs up

Quote:
Originally Posted by agraham View Post
I produced this library to overcome a few shortcomings with the Serial2 library
thank you, this saved my project as Serial2 was translating into "?"s a number of different characters making incoming strings unusable
Reply With Quote
  #16 (permalink)  
Old 03-11-2010, 04:17 PM
Basic4ppc Veteran
 
Join Date: May 2008
Location: Newcastle Upon Tyne - England
Posts: 269
Awards Showcase
Beta Tester 
Total Awards: 1
Default

SerialEx.GetPorts on the Desktop reports some of my ports with the suffix "i". Why is this?

Ports 4,5,6, & 7 in this case.
Reply With Quote
  #17 (permalink)  
Old 03-11-2010, 04:55 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I've no idea. What GetPorts gives you is the array of serial port names that the .NET SerialPort class returns.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot start B4PP anymore on desktop: "A problem was encountered" Frank Questions (Windows Mobile) 5 11-11-2008 11:03 AM
"AddEvent" and "buttonUp/buttonDown" Byak@ Questions (Windows Mobile) 12 09-10-2008 04:04 PM
Is there any thing like Visual Basic "Tabbed dialog control" in Basic4ppc? mozaharul Questions (Windows Mobile) 6 03-23-2008 12:07 PM
calling the device's "Programs" or "settings" screens HarleyM Questions (Windows Mobile) 0 12-05-2007 03:59 AM
Network "library" agraham Additional Libraries 2 11-11-2007 10:32 AM


All times are GMT. The time now is 04:48 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0