English
Forum

Serielle interface too slow

 

Pedro
Miguel
Hi,

subesquent code lasts about 30 Seconds to the bytes the File of 30KBytes over The Serielle Schnistelle To Send
The Bautrate is on 57600 tuned
The cause is the commands WriteCom(porta_serie&,AUX$), if it auskommentiere lasts it 2 sec
To the word ENDE appear.
with the Baudrate, müssten about 5700 Bytes/second gesendet go, what on about under 8 sec with
30Kbytes ought to. what can made go it To speed, or make I what wrong?

greeting
Sato
CompileMarkSeparation
var datei$ = "c:67123.DAT"
Assign #1, "C:67123.DAT"
OpenRW #1
anzahl% =  @BlockRead(Datei$, Bereich#, 0, FileSize(Datei$))
Close #1
ANZAHL% = 30929  BYTES
pos& = 0

While anzahl% >= pos&

    aux& = @Byte(bereich#,pos&)

    if aux& <= 15

        aux$ = "0"+@hex$(AUX&)

    else

        aux$ = @hex$(AUX&)

    endif

    WriteCom(porta_serie&,AUX$)
    @ComError(porta_serie&)
    Print #8,aux$
    inc pos&

endwhile

Print "ENDE"
waitinput
END
 
03/08/10  
 




Detlef
Tussing
Hello
where send You your data (which unit is the Empfänger)

I work too occasionally with the seriellen (but over USB) and there Have I each a *.DLL File The I anspreche and the The Schnittstellenparameter recognize (Baud, Parität, Stoppbit etc.)

If you me egg little More Information give, can I you Maybe help.

with welchem system work You

have you got directly RS232 on the computer
 
Gruß Detlef Tussing
Windows XP, XProfan 10
03/08/10  
 




Pedro
Miguel
Hi,

The Empfänger, is a of me developed Platine with a Microcontroller the The data interrupt gesteuert assumes. on the computer is a USB/RS485 Adapter and the Platine get The data a integrierten RS485 IC How Max487. I can whom USB Adapter bagged let so the computer whom virtual Port opened can and the Platine Remove. to that XProfan further test the program and run by a Stopuhr can I insist the 30kbytes about 30 sec last. The Datenfluss can I too on the Led from the Adapter see. Fals I Writecom commands auskommentiere, go naturally The data not gesendet, but the Loop becomes volständig abgearbeite and whom drop lasts not time 2 sec
As I said, I can The File entire in my board received and reconstructed by the kontinuierten write the conceived Bytes on The SD ticket, The on the Platine is, only it lasts......

an idea moreover?

greeting
Pedro
 
03/08/10  
 




E.T.
Würd I sooner on the Adapter / pertinent driver type. I had too time so one part, there watts from the Gegenstelle on the RS even always aborted, because the data simply too slow arrived are.
Adapter incl. gerätespezifischer driver ausgetauscht, and already hats functions.

...and the Adapter observes neither, if You the RS-unit abziehst ??
So my "mault", if it The data not "weiterschicken" can...
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
03/09/10  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.823 Views

Untitledvor 0 min.
H.Brill05/15/23
Pedro Miguel02/25/16
maroro09/10/15
bloniTec06/12/14
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