PB4.20Beta & SerialPort commands

Everything else that doesn't fall into one of the other PB categories.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

PB4.20Beta & SerialPort commands

Post by Psychophanta »

Hi,

Serial ports are:
- SATA & SATA2
- USB
- Firewire IEEE 1394
- Telephone-Modem (commonly linked using RJ-11 connectors)
- Ethernet communication (commonly linked using RJ-45 connectors)
- RS-232, RS-422, etc. protocols are also serial communication based
- Audio signals (one per aplification line, i.e. one per speaker)
- etc.

So then, to call simply SerialPort to the commands of the RS232, RS422... serial communications PB library is in any case ambiguous, and IMHO erroneous.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
maw

Post by maw »

Historically serial ports have always been RS-232. Just because USB, Firewire and whatever use a serial protocol doesn't make them serial ports.

http://en.wikipedia.org/wiki/Serial_port

Why do people actually go around trying to to find things to complain about?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Ok, you are right,
Dunno, but perhaps in the opinion of the PB team, it would be a bit ugly to call it OpenUART(), UARTError(), UARTTimeouts(), AvailableUARTInput(), AvailableUARTOutput(), etc. even it would be more exact.
There seems to not have any other more correct way to call it. :?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
freak
PureBasic Team
PureBasic Team
Posts: 5962
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Everyone knows what a serial port is. Nobody would get the idea it could mean USB, because if you mean USB, you say USB :P
quidquid Latine dictum sit altum videtur
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Why the focus so much on serial ports in the day and age when serial ports are vanishing? I mean, for example, Windows Vista has already dropped support for a lot of serial port devices that were used in WindowsXP, and serial ports are vanishing on current motherboards.

USB and firewire support for devices are far more plentiful then they are for serial ports.
leodh
Enthusiast
Enthusiast
Posts: 164
Joined: Sun Nov 06, 2005 6:07 am
Location: Perth Western Australia

Post by leodh »

Hi,

Serial ports are the most common form of attaching devices to computers in industry, (especially science laboratories) also alot of home automation uses serial ports for control.

It would be a pitty to see support for them disapear.
Regards
Leo
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Post by electrochrisso »

You can buy a USB to Serial DB9 Port Adapter for about $20. :)
PureBasic! Purely the best 8)
Berikco
Administrator
Administrator
Posts: 1330
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

electrochrisso wrote:You can buy a USB to Serial DB9 Port Adapter for about $20. :)

And it goes with a driver that emulates a serial port :D
Berikco
User avatar
dhouston
Enthusiast
Enthusiast
Posts: 430
Joined: Tue Aug 21, 2007 2:44 pm
Location: USA (Cincinnati)
Contact:

Post by dhouston »

Berikco wrote:
electrochrisso wrote:You can buy a USB to Serial DB9 Port Adapter for about $20. :)
And it goes with a driver that emulates a serial port :D
Even the ones that only cost $9 have such virtual serial port drivers.:D Embedded devices seldom have enough horsepower to act as USB hosts so RS232 is unlikely to disappear anytime soon.
robinhossain
New User
New User
Posts: 1
Joined: Fri Nov 06, 2009 5:45 am

Re: PB4.20Beta & SerialPort commands

Post by robinhossain »

The serial port function is such an important addition to the PB command set. All labs and scientific work use serial data - as do microcontrollers and many chipsets.

The best serial port readers are very low level realtime readers that allow one to determine accurate timing analysis of data flow.
Post Reply