New serial library - beta version

Discussion in 'Announcements' started by Erel, Jul 3, 2007.

  1. Erel

    Erel Administrator Staff Member Licensed User

    The old Serial library has some problems when used in .Net CF 2.0 applications.
    This is a beta release of a new library that is based on .Net CF 2.0 and therefore should work properly.
    See this instructions for targeting .Net CF 2.0: www.basic4ppc.com/netcf2.html
    These instructions are not required for WM6 devices.

    The library functionality is the same as the old library.
    It supports both the desktop and the device.
    Currently, it doesn't support IR communication.
    Please use it and post any question or feedback about it.
     

    Attached Files:

  2. alfcen

    alfcen Well-Known Member Licensed User

    Thank you very much for your restless support and improvements.
    Quick'n sweet: Does Serial2.dll also run with Framework 1.0? You explained it is BASED on 2.0
    Cheers
    Robert
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    No, if you are working with .Net Framework 1.0 you should stay with the old library,
     
  4. alfcen

    alfcen Well-Known Member Licensed User

    Confirmed.
    I swapped the DLLs in two of my B4PPc apps. No problems encountered so far. Actually, I feel as if I get a faster fix on GPS with serial2.dll
     
  5. alfcen

    alfcen Well-Known Member Licensed User

    Sorry to bother again, Erel
    Would it be possible to assign other object name to the serial2.dll (such as serial2)?
    That would enable switching between old and new using the hardware library's NetVersion command.
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    It won't help as devices installed with .Net CF 1.0 will show an error when during loading.
    You should create two setup files, one for WM6 devices and another for all other devices.
     
  7. JJM

    JJM Active Member Licensed User

    Hi Erel,

    I got error with this new serial2.dll.
    For example if, in the program Autodet2, i replace Serialdevice.dll by serial2.dll and launch the program it explores the port 1 but at the begining of exploration of the port 2 i get an error:
    An error occured at line number 35:
    Serial.portopen=true
    If i give back serialdevice.dll there is no more error.

    Best regards

    JJ M

    HP ipaq 2490
     
  8. Steve

    Steve Member Licensed User

    Erel,

    Thank you for your hard work on the new serial library. Regretably, I am having problems using it with the exising GPS libs. Aside from the serial.portOpen error already reported, I am receiving numerous target invocation messages whenever I try to interface the serial library, E.G. inputString, with GPS. If you need more info, I will post the source of my program as it currently stands.

    - All my best,
    - Steve
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    What device are you using?
    Does the SerialTerminal example work properly?
     
  10. Steve

    Steve Member Licensed User

    Erel,

    I am using a PPC6700 running AKU3.5 and the .net CF 2.0. I don't have a link to the specific ROM image I'm running, but I could get it if you think it would be useful. When I try to conect to my GPS device with the serial terminal example, I receive an error which says something like, "Error on line 41. Basic4PPC cannot display an error message because an optional resource assembly cannot be found. Continue? Yes/No." Line 41 reads
    serial.PortOpen = true
     
  11. Erel

    Erel Administrator Staff Member Licensed User

  12. davelew1s

    davelew1s Active Member Licensed User

    DTREnable

    I am using serial2.dll when I try:-
    serial.DTREnable = true
    I get an error message ...Property set method not found
    This doesn't happen in the old serial.dll.
    Any help or suggestions?
    Dave.
     
  13. Erel

    Erel Administrator Staff Member Licensed User

  14. davelew1s

    davelew1s Active Member Licensed User

    Thanks Erel, works fine now.
    Dave.
     
Loading...