[Implemented] Serial port commands
MVCom works well for me. I made a routine to search for an active port over the range COM0 to COM9 then interrogated each working port for my hardware's signature. No problems... but I seem to remember ports numbered above 9 could not be used... grey cell failure for details... getting old
Customers never know what ports they have and USB converters seem to make up their own numbers so a port search was a good idea.

Customers never know what ports they have and USB converters seem to make up their own numbers so a port search was a good idea.
yeah I could use Com port / serial port routines and commands for various controllers that I want to talk to.
Intrigued wrote:Though I'm new to PB... I'm tossing in my vote for innate support in PB for COM port functions (procedures)
PB and PureVision XP Registered.
www.michaelwhitt.com
www.michaelwhitt.com
i'm agree. RS programming is still alive...
in my work, i need to drive some 'RS232' hardware like POS ( Point Of Sale system, Bank Card Reader, Cheque Printer ).
So i would be pleased to have a set of commands. :roll:
in my work, i need to drive some 'RS232' hardware like POS ( Point Of Sale system, Bank Card Reader, Cheque Printer ).
So i would be pleased to have a set of commands. :roll:
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
I've got to try the MVCom library, but I would love to see builtin serial support in 4.0. That would be totally awesome.
PB and PureVision XP Registered.
www.michaelwhitt.com
www.michaelwhitt.com
Here is the next vote for native COM commands.
I work for a company that develops medical equipment. Mostly all of this equipment uses RS232 connections for programming, updating, configuration, service and other things.
The reason is that the RS232 interface is easy to use, well known, robust, secure and allows for longer cables. In addition this interface is supported by neary all microcontrollers.
No other protocol can be monitored as easy as the RS232 protocol just by using any or your favourit terminal program!

I work for a company that develops medical equipment. Mostly all of this equipment uses RS232 connections for programming, updating, configuration, service and other things.
The reason is that the RS232 interface is easy to use, well known, robust, secure and allows for longer cables. In addition this interface is supported by neary all microcontrollers.
No other protocol can be monitored as easy as the RS232 protocol just by using any or your favourit terminal program!

- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
There is another protocol much more professional and with more capabilities for distances between equipments, and others.
I'm talking about RS422.
It sounds wierd to me the use of RS232 for that instead RS422 or another different intefaced systems using USB, optical, parallel-fiberchannel, firewire...
I'm talking about RS422.
It sounds wierd to me the use of RS232 for that instead RS422 or another different intefaced systems using USB, optical, parallel-fiberchannel, firewire...

I also vote for nativ COM commands and nativ USB handling.
Neither RS232 nor RS422 are protocols I think, they only describe the physical layer. It's up to the user to define his protocol. RS232 is as professional as RS422. Indeed RS422 more insensible to electric distortion and the better choice for long distances.
The MVCom library is fine, but only for windows. So nativ support would be a graete enhancement.
Neither RS232 nor RS422 are protocols I think, they only describe the physical layer. It's up to the user to define his protocol. RS232 is as professional as RS422. Indeed RS422 more insensible to electric distortion and the better choice for long distances.
The MVCom library is fine, but only for windows. So nativ support would be a graete enhancement.
- SimpleMind
- Enthusiast
- Posts: 112
- Joined: Sun May 18, 2003 12:40 pm
- Location: Netherlands
suposeably you can Write with this piece of assembly
p is the port address and n is the number to send out
althought it crashes here, im not sure why
not sure what input is thought
p is the port address and n is the number to send out
Code: Select all
MOV DX,p
MOV AL,n
OUT DX,AL
not sure what input is thought
~Dreglor