Search found 1391 matches

by Pito
Tue Aug 22, 2017 4:48 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 68
Views: 1172

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

Because of 3secs between the packets when the bufsize in the sketch is 256bytes (or 512, 1024 etc).. That is even visible in TT as the 4kB chunks always nap for 3secs.. Another test - counting bytes - logged into TT file. To make it simple I've TXed 1.280.000 bytes #define bufsize 64 #define TXCHARS...
by Pito
Tue Aug 22, 2017 1:52 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 68
Views: 1172

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

Problem: STM32Generic with CDC_BUF 128, and bufsize = 256 (speed ???) 3seconds between packets STM32Generic CDC_BUFF 128 bufsize 256.JPG And STM32Generic with CDC_BUF 4096, and bufsize = 64 (speed 420kB/sec) STM32Generic CDC_BUFF 4096 and bufsize 64.JPG STM32Generic with CDC_BUF 4096, and bufsize = ...
by Pito
Tue Aug 22, 2017 1:19 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 68
Views: 1172

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

This is with MMini, Libmaple F1, with this vitor_boss' mod of my sketch (Serial.write(buf..): void loop() { uint32_t i; uint8_t x = 85; uint32_t elapsed = micros(); uint8_t buf[bufsize]; for (i = 0; i < bufsize; i++) { buf[i] = x; } elapsed = micros(); for (i = 0; i < TXCHARS; i+=bufsize) { Serial.w...
by Pito
Tue Aug 22, 2017 9:08 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 68
Views: 1172

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

@Rick: I tried with HyperTerminal (the same result - see above) and with minicom (ubuntu in virtualbox). With minicom I did not make any captures. @Victor: the "4096b buffer" could be some misinterpretation of data by the USBlyzer, or handshake.. UPDATE: it seems the usbser.sys requests 4kB bulk IN....
by Pito
Mon Aug 21, 2017 6:24 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 68
Views: 1172

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

FYI - this is how the "USBlyzer" (not free, 33d eval) shows the transfer between MMini and TeraTerm (Libmaple F1). The USBlyzer provides huge amount of info, so I had to cut off a small chunk only - which fits as the attachment. You may see the payload UUUU data are fragmented into 1-16/414-426bytes...
by Pito
Mon Aug 21, 2017 9:43 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 68
Views: 1172

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

The Serial.something comes historically from RS232-like serial UART communication, where the handshaking with the Host is managed by RTS/CTS, DTR/DSR etc., or via XON/XOFF, or done at application level via XYZMODEM/KERMIT etc. Without such handshaking it could come to data loss with RX/TX. But that ...
by Pito
Sun Aug 20, 2017 10:47 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 68
Views: 1172

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

From user's point of view I do not see any buffers (the internal one in the stm core or in the Host) and I "do not care about what buffers are inside the black box(es)". I have the Host, which can be unable to receive fast (for any reason). I do Serial.something (1byte or 1kB or 1MB) from my sketch....
by Pito
Sat Aug 19, 2017 6:32 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 68
Views: 1172

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

TX: What if the Serial.write (and friends) will check whether the Host is NAKing, and it timeouts while returning 0 ??
by Pito
Sat Aug 19, 2017 12:38 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 68
Views: 1172

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

FYI: Upload via DFU (maple_loader v0.1, host, from Sloeber) into MapleMini (dev 2.39.0) - the payload packets (1052bytes) with some handshaking (only a small chunk of data shown, no anomalies there till the end, all clean, only 2 Malformed packets out of about ~60 during enum/init phase): MapleMini ...
by Pito
Sat Aug 19, 2017 10:15 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem
Replies: 68
Views: 1172

Re: [STM32GENERIC/HAL] SerialUSB TX/RX speed problem

Libmaple F1 against HyperTerminal (227kB/s) Libmaple F1 against HyperTerminal.JPG . What are the two sources/destinations 2.10.0 and 2.10.1 ?? It could be all that Ethernet errors are USB Packet capture limitations/features/bugs?? http://desowin.org/usbpcap/capture_limitations.html Btw HyperTerminal...