[Implemented] Serial communication
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
[Implemented] Serial communication
Restored from previous forum. Originally posted by wcardoso.
:)Hey Fred!, can you add commands or functions in the compiler or an external library to use the serial ports ?.
I use frequently communications with peripheral devices and I need some commands to use the PC serial ports.
Think in commands like: OpenCom(#Port,BaudRate,etc...)
Send(#Port,Variable,etc..) Read(#Port,Variable,etc) SetCTS ResetCTS Etc, etc.
:)Hey Fred!, can you add commands or functions in the compiler or an external library to use the serial ports ?.
I use frequently communications with peripheral devices and I need some commands to use the PC serial ports.
Think in commands like: OpenCom(#Port,BaudRate,etc...)
Send(#Port,Variable,etc..) Read(#Port,Variable,etc) SetCTS ResetCTS Etc, etc.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
I think this is not so easy, very different even on the Windows OS'ses NT vs 9X and what about linux portability? On NT must go via API.
there are many packages out there that can do this, maybe you can try some.
http://www.programmersheaven.com/zone15 ... /21498.htm
I use another one, TvicHW32 for hardware poking under NT, but no serial com in there.
Regards,
Berikco
http://www.benny.zeb.be
I think this is not so easy, very different even on the Windows OS'ses NT vs 9X and what about linux portability? On NT must go via API.
there are many packages out there that can do this, maybe you can try some.
http://www.programmersheaven.com/zone15 ... /21498.htm
I use another one, TvicHW32 for hardware poking under NT, but no serial com in there.
Regards,
Berikco
http://www.benny.zeb.be
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by pusztry.
Fred,
That is going to be AWSOME. I realy use the serial port daily at my job. I could realy use that so that I develope great software with PureBasic. PLEASE let me know if I can help. I don't know the API calls because I you another package but I need PB to be used for the future.
- Ryan
WinXP, PIII 800 MHz, 512MB RAM, SB Live 5.1, NVidia TNT 2 Ultra
Fred,
That is going to be AWSOME. I realy use the serial port daily at my job. I could realy use that so that I develope great software with PureBasic. PLEASE let me know if I can help. I don't know the API calls because I you another package but I need PB to be used for the future.
- Ryan
WinXP, PIII 800 MHz, 512MB RAM, SB Live 5.1, NVidia TNT 2 Ultra
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by plouf.
about the commands i think wcardoso
say the needed commands ie open/send/receive
and somehow set/reset pins except RxD TxD
since these are controller by send/receive
plus somehow be able set comm state
and get the events like buffer full
(if you dont use rtc for handshaking )etc
Christos
about the commands i think wcardoso
say the needed commands ie open/send/receive
and somehow set/reset pins except RxD TxD
since these are controller by send/receive
plus somehow be able set comm state
and get the events like buffer full
(if you dont use rtc for handshaking )etc
Christos
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Pupil.
I think Rings proposed to make an example so that it would be easier to see what's necessary to have included in a PB Serial lib(which Fred does for all supported OS:s). Am i totally off Rings?Originally posted by wcardoso
Rings, like Fred I think your Win-API example will gonna great, but don't forget that PB is a multi-OS tool and that implies a library to work with Linux and Amiga too.
![]()
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
In win32 most api wil be the same i think
Regards,
Berikco
http://www.benny.zeb.be
Well i whas somewhere lost to, i dit some serial communications in the past for Packet radio over CB, it whas very different in Win3.11 an win95I think this is not so easy, very different even on the Windows OS'ses NT vs 9X and what about linux portability?
In win32 most api wil be the same i think
Regards,
Berikco
http://www.benny.zeb.be