English
Forum

RS232 Pins directly steer

 
- Page 1 -



Paul
Glatz
Hi,
is it somehow with XProfan possible DTR, RTS, TxD directly To settle? PureBasic View source [...] 
 
12/05/10  
 



 
- Page 5 -


If it none were then were it Yes none. say but self: is not. with Detlef but GEHTS - So how kanns there none Difference give? oO
 
12/07/10  
 




Paul
Glatz
it giebt nunmal none.....
 
12/07/10  
 



means GEHTS with you?
 
12/07/10  
 




Paul
Glatz
No
 
12/07/10  
 



how long since is a system where it functions unterschiedlos to one where not functions?
 
12/07/10  
 




Paul
Glatz
in a. i'll it tommorrow again on a others computer without USB-RS232 Adapter (means on the real 'RS232 of board) testing.
 
12/07/10  
 




Heiko
Dix

CompileMarkSeparation
'den Quellcode aus der Hilfe kopiert -> [K]18.2 - Die serielle Schnittstelle[/K]
'Null-Modem-Kabel mit drei LED (rot gelb grün) bestückt
'und schon leuchten die LED's so wie im Fenster...
Declare a$, f%, ende%, x$,x%

Proc GetComInput

    Parameters id%
    Declare x$
    x$ = @ReadCom$(id%, 1)
    @ComError(id%)
    'Print x$;

    WhileNot x$ = ""

        x$=@ReadCom$(id%, 1)
        @ComError(id%)
        'Print x$;

    EndWhile

EndProc

proc texxt

    clear x$

    whileloop rnd(1000)

        x$ = x$+chr$((rnd(65))+65)

    endwhile

endproc

proc gruen

    'GRÜN
    locate 5,15
    color 0,10
    print "       "

endproc

proc gruenloesch

    'GRÜN löschen
    locate 5,15
    color 0,00
    print "       "

endproc

proc gelb

    'Gelb
    locate 7,15
    color 15,14
    print "       "

endproc

proc gelbloesch

    'Gelb löschen
    locate 7,15
    color 0,0
    print "       "

endproc

proc rot

    'Rot
    locate 9,15
    color 0,12
    print "       "

endproc

proc rotloesch

    'Rot löschen
    locate 9,15
    color 0,0
    print "       "

endproc

Window 330, 50 - 533,333
randomize
cls 0
color 14,0
locate 1,5
print "BEENDEN MIT ESC"
locate 5,5
print "DTR"
locate 7,5
print "CTS"
locate 9,5
print "TXD"
locate 20,5

WhileNot ende%

    f% = @OpenCom("COM1", 1024, 1024)
    'GRÜN löschen
    gruenloesch
    'Gelb
    gelb
    sleep 1333
    @SetCom("COM1:2400,N,8,1")
    @WriteCom(f%, "ATZ\n")' Modem initialisieren
    @ComError(f%)
    GetComInput f%' Antwort abwarten und anzeigen
    ende% = 0
    'Rot
    rot
    texxt
    @WriteCom(f%,x$)
    sleep rnd(555)
    'Rot löschen
    rotloesch
    color 14,0
    locate 3, 5
    print "Zeichen gesendet:";
    print x%
    inc x%
    sleep rnd(100)
    gelbloesch
    a$ = @Inkey$()' Tastatur abfragen

    If a$ = chr$(027)' Ende mit ESC

        ende%=1

    Else

        IfNot x$ = ""' Zeichen ans Modem

            'GRÜN löschen
            gruenloesch
            'Gelb
            gelb
            'Rot
            rot
            'sleep rnd(555)
            texxt
            @WriteCom(f%,x$)
            sleep rnd(55)
            'Rot löschen
            rotloesch
            sleep 55
            'Gelb löschen
            gelbloesch
            'GRÜN
            gruen

        Endif

        GetComInput f%' empfangene Zeichen lesen

    Endif

    @CloseCom(f%)
    sleep rnd(5100)
    'Gelb
    gelb
    'GRÜN löschen
    gruenloesch

EndWhile

End

60 kB
Hochgeladen:12/08/10
Downloadcounter182
Download
 
+Windows XP Home Edition + Profan² 7.5 & Win 7 mit XProfan 11 +
12/08/10  
 



[offtopic]Argh, Please code-Tags benützen... have the time eingefügt.

PS: Very coole Description![/offtopic]
 
12/08/10  
 




Paul
Glatz
so Klappts
 
12/08/10  
 




Stefan
M.
Caillet
Hello Profaner,
Yes. with the obigen code shine The LED's, but with direktemAnsteuern the Ausgangs-Pins has not really plenty To do, because The LED's shine resp. glint apparently willkürlich.
what I urgently need, is the Possibility, The exits TXD, DTR and RTS aimed on 1 or 0 To settle, and as long as (To short to Prog.end)on the jeweiligen stood To let, and then again zurückzusetzen and the COM again To close.
means a real single Pin Control.
with the RSAPI.dll have I unfortunately too yet no success had.
knows of/ one of you, How I this in XProfan solve can?
the Program should under win XP (32bit) walk and the COM2 address.
for eure Help be I very grateful.
Stefan
 
Ich habe grosses Glück, weil ich Mitmenschen helfen darf.
Entwicklungsumgebung:
XProfan11 , Win XP Pro 32Bit , Win XP Home ,Win7 HomePremium 64Bit
PC: P4/3GHz , 2GB RAM , 1700GB HD
Laptop: Intel Core 2 Duo /2,2GHz , 4GB RAM , 500GB HD
08/25/11  
 



functions these function not?

Help
SetComExt(n1,n2,n3,n4,n5,n6,n7)

n1: LongInt - lever the seriellen interface
n2: Integer - RlsTimeOut in ms (only 16 bit)
n3: Integer - CtsTimeOut in ms (only 16 bit)
n4: Integer - DsrTimeOut in ms (only 16 bit)
n5: Integer - ? Happen?:
$0001: Binärer mode
$0002: Parity Check ON
$0004: CTS Handshaking ON
$0008: DSR Handshaking ON
$0010: DTR signal ON
$0020: DTR signal Handshaking
$0040: DSR check ON
$0080: XOFF continues Tx
$0100: XON/XOFF spending ON
$0200: XON/XOFF input ON (rather always $0300 for One- and spending settle)
$0400: Error Replacement ON
$0800: zero Stripping ON
$1000: RTS signal ON
$2000: RTS signal Handshake ($3000: RTS signal Toggle)
$4000: exits Read/Write with Error
($8000: without weight)
n6: Integer - Minimalzahl of characters in the Empfangsschlange,
before Xon gesendet becomes
n7: Integer - Maximalzahl of characters in the Empfangsschlange,
before Xoff gesendet becomes

lt. the Description in the Helpfile power these function still very what You describe.
 
08/25/11  
 



functions the PureBasic-Program because?
 
08/25/11  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

71.922 Views

Untitledvor 0 min.
H.Brill05/20/23
Ralf Netz05/22/21
Torsten Boo09/14/20
Falk Fallenstein04/08/19
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie