Re: AW: [Hbasic-userinfo] Serial Port
Status: Beta
Brought to you by:
mengels
From: LMT <luc...@ya...> - 2003-11-05 01:17:09
|
Sorry to get in the middle of teh conversatiosn, but isnt in linux the serial port justa nother file? something like /dev/stty-x Tullio, you may check this, like gooogling for "serial tty on linux" or something... I´m guessing that HB has some file standara I/O... hope this helps "Engels, Marcus" <Mar...@SP...> wrote: @page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 2.0cm 2.0cm 2.0cm; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; mso-paper-source: 0; }P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"}LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"}DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"}A:link { COLOR: blue; TEXT-DECORATION: underline; text-underline: single}SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline; text-underline: single}A:visited { COLOR: purple; TEXT-DECORATION: underline; text-underline: single}SPAN.MsoHyperlinkFollowed { COLOR: purple; TEXT-DECORATION: underline; text-underline: single}SPAN.StileMessaggioDiPostaElettronica17 { COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial}SPAN.SpellE { mso-style-name: ""; mso-spl-e: yes}DIV.Section1 { page: Section1}Hello Tullio, I don't know very much about serial ports. I tried to find some info in the "Serial HOWTO" but it didn't help me very much to find the API functions that will be required to read or write to the serial port with linux. Currently I want to implement support for all classes of the Qt library but I couldn't find some classes that may be used for serial IO in this library. Maybe it's usefull to call shell functions like settty with the system() method in HBasic but I'm not sure about that. I'm not sure how you mean with using API calls in VB (maybe because I don't know every feature of VB). To call functions of another library that has been created with C or C++ code HBasic needs some additional C++ wrapper-code to understand how HBasic function calls to the API methods should be converted to C++ methods. I call this wrapper code a package. A package may be loaded dynamically at runtime of HBasic and add's the implemented API interface to HBasic. The normal widgets like Button or Label for example are functions that connect to the appropriate Qt API functions. This means if you want to use new API functions you will have to create some wrapper code in C++ first. You may take a look at the HBasic docu at http://hbasic.sourceforge.net/user_guide/shared_lib/components.html http://hbasic.sourceforge.net/user_guide/shared_lib/libdesc_program.html to get some information how this might be done. Marcus Engels -----Ursprüngliche Nachricht----- Von: Idropan [mailto:in...@id...] Gesendet: Dienstag, 4. November 2003 06:00 An: hba...@li... Betreff: [Hbasic-userinfo] Serial Port I'm new to HBasic because i discovered it reading a mail from Lindows.com. Currently I'm developing in VB and Windows but I would really like to start my migration to Linux and HBasic. I have few question to the list: How is supported in HBasic the serial port? In my code I'm often using API calls. Is there something similar in HBasic and Linux? Where I can find more about? Tanking in advance Best regards Tullio Servida |