RS232 Librarie - MVCOM

Share your advanced PureBasic knowledge/code with the community.
Marc
User
User
Posts: 28
Joined: Mon Jun 16, 2003 9:02 pm
Location: Paris - Villemer
Contact:

RS232 Librarie - MVCOM

Post by Marc »

:D RS 232 MVCOM Library has been updated:

1: Compatible with PB 3.91 new linker
2: New function to set Xon and Xoff characters
3: New function to set Txd in break state

To download: http://perso.wanadoo.fr/marc.vitry
Marc from PARIS - MVCOM Library
chio
User
User
Posts: 30
Joined: Thu Jun 24, 2004 1:55 pm
Location: New York City
Contact:

Excellent thanks

Post by chio »

Can you please help me.

I am trying to attach my Uniden Scanner which works through the RS232 fine with its onw software but I can't get a thing with the test scripts.

Anything I should do differently. I am a total novice and intrigued by this.

Thanks,
chio
Marc
User
User
Posts: 28
Joined: Mon Jun 16, 2003 9:02 pm
Location: Paris - Villemer
Contact:

Post by Marc »

Your Uniden Scanner has certainly Communication Specifications that not implemented in the test software.

You have to chek the communication specification and write a new software with MVCOM Library.

Test software was only designed to show how to use MVCOM (With a loop connector on the serial port)

Regards.
Marc from PARIS - MVCOM Library
Klonk
Enthusiast
Enthusiast
Posts: 173
Joined: Tue Jul 13, 2004 2:17 pm

Post by Klonk »

Marc,
really nice library. Just for your wishlist (just in case you don't have one :D ):
- Possibility of higher speeds (at least 115200 or even more, some serial ports are capable of higher speeds)
- Possibility to change the speed while the port is open (or is it possible by calling openport several times)
- Possibility to set the address and IRQ of the desired port

I would like to use your library for a small terminal program.
I hope you do not use the windows APIs for that. I found a very strange behaviour beginning with WinME and Win2000 (haven't tested on others) when I used Hyperterminal: sending a file (around 500k) as ASCII with no flow control and a speed of 57600 took about 15 minutes which was far too long (effective speed somewhere around 8000bps).
I assume there is some driver layer in between at the newer windows versions.
I used Teraterm as an alternative which worked OK, but is rather old and well I thought this would be a good project, which I could also use in the office.
Main usage why this is important: We have several pieces of hardware whose flash could be updated by serial transmission (without flow control).
And because of the described problem I had several days of hard work at the customers site till I found the reason and got another terminalsoftware.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

thx Marc :D
chio
User
User
Posts: 30
Joined: Thu Jun 24, 2004 1:55 pm
Location: New York City
Contact:

CHR(13)

Post by chio »

My issue was simple, I had to add Chr(13) to make the <CR> for each line sent. Otherwise the scanner would not respond.

Code: Select all

Chaine.s = "LCD"+Chr(13)
By the way is working great. Will send you a copy when finished.

Thanks,
chio
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

Re: RS232 Librarie - MVCOM

Post by TronDoc »

Marc wrote:To download: http://perso.wanadoo.fr/marc.vitry
dead link :(
peace
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]
chio
User
User
Posts: 30
Joined: Thu Jun 24, 2004 1:55 pm
Location: New York City
Contact:

Post by chio »

works fine here

then click on PureBasic
chio
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

Post by TronDoc »

it is working now here too
peace
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Nice work, Marc :wink:
Post Reply