| |
|
|
- Page 1 - |
|
Paul Glatz | Hi, is it somehow with XProfan possible DTR, RTS, TxD directly To settle? PureBasic View source [...] |
|
|
| |
|
|
| |
|
- 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 |
|
|
| |
|
|
|
Paul Glatz | it giebt nunmal none..... |
|
|
| |
|
|
|
| |
|
| |
|
|
|
Paul Glatz | |
|
| |
|
|
|
| how long since is a system where it functions unterschiedlos to one where not functions? |
|
|
| |
|
|
|
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. |
|
|
| |
|
|
|
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
|
|
|
| +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] |
|
|
| |
|
|
|
Paul Glatz | |
|
| |
|
|
|
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. |
|
|
| |
|
|
|
| functions the PureBasic-Program because? |
|
|
| |
|
|