New serial library - beta version

Erel

B4X founder
Staff member
Licensed User
Longtime 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.b4x.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.
 

Attachments

  • Serial2.zip
    3.5 KB · Views: 419

alfcen

Well-Known Member
Licensed User
Longtime 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
 

alfcen

Well-Known Member
Licensed User
Longtime 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
 

alfcen

Well-Known Member
Licensed User
Longtime 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.
 

JJM

Active Member
Licensed User
Longtime 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
 

Steve

Member
Licensed User
Longtime 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
 

Steve

Member
Licensed User
Longtime 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
 

Erel

B4X founder
Staff member
Licensed User
Longtime User

davelew1s

Active Member
Licensed User
Longtime 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.
 
Top