Shop OBEX P1 Docs P2 Docs Learn Events
VB 2008 serial port object — Parallax Forums

VB 2008 serial port object

bambinobambino Posts: 789
edited 2009-03-11 15:18 in General Discussion
Hi all,
This is a question, but sort of a rant as well. Has anyone used the serial port object in the toolbox that ships with Visual Basic 2008?
I recently developed a program for a pocket PC 2003 HP to gather data remotely from a propeller chip device.
In the developement cycle I normally operate a port at 9600 baud ( leaveing speed errors out of the process until I have a working app). When I got ready to beef up the speed I am told by the IDE that the maximum value for baudrate is 65535!.............
This object is in Visual Studio for pete's sake!!!!!!!! I have run the·Propeller chip at > 400K and yet an object in an IDE made for XP and Vista Post OS's is limited to a 16 bit value!!!!! What are they smoking?

I have since resorted back to an object wrote by Ricard Grier called CfSerialClass that I used with Visual Basic 2003 When it didn't include a serial port object! It is a great object but lacks a Threshold paremeter that would be quite usefull!
Anyway, Does anyone have a better object or work around that will work on Smart Devices!

Thanks

Comments

  • QuattroRS4QuattroRS4 Posts: 916
    edited 2009-03-09 16:31
    This is Usually caused by Buggy Virtual Com port drivers ..

    see attached ..
    social.microsoft.com/Forums/en-US/netfxbcl/thread/3eeb427d-6540-4bc0-91af-b124d35e9075

    Regards,
    John Twomey

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'

    Those who can, do.Those who can’t, teach.

    Post Edited (QuattroRS4) : 3/9/2009 4:36:42 PM GMT
  • bambinobambino Posts: 789
    edited 2009-03-09 17:07
    Thanks QuattroRS4
    I don't understand though. With the CfSerial object I can run up in the 900k's, Same machine! I of course couldn't do that on the target machine. But I will look for an upgraded driver anyway.
    Thanks again.
  • bambinobambino Posts: 789
    edited 2009-03-11 15:18
    For what it's worth, If you open hyperterminal and set the baudrate for Com1 to the level you need the IDE want flag values higher that 65536, The PDA still flags the error after I deploy the program, But this at least confirms that it is something in the serial Port it'self and not wholly a mistake in Visual Studio!

    Thanks QuattroRS4
    So far as I know the PDA comport is adjusted solely by software and I have not found a property setting that will allow me to change the default baudrate for the device. I may end up having to Buy Richards book so I can see how his object gets around this limitation!
Sign In or Register to comment.