Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6048

General • Re: Transfer data over wifi for pico for a high sampling rate

$
0
0
An alternative will be to use another computer and check what is the culprid!
I tend to be pointing to your Pi4 which is maybe loaded with a lot of stuff, maybe too much peripheral on the USB port or a very slow SD card.

This is on my second Pi4 which perform exactly the same has the first one

In 7Min 42 seconds I got 177MB of data of 92596200 data points
This is exactly 200000 samples/sec

Code:

daniel@Pi4B:~ $ lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription:    Debian GNU/Linux 12 (bookworm)Release:        12Codename:       bookwormdaniel@Pi4B:~ $ uname -aLinux Pi4B 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linuxdaniel@Pi4B:~ $ free -h               total        used        free      shared  buff/cache   availableMem:           7.6Gi       235Mi       5.6Gi       1.2Mi       1.9Gi       7.4GiSwap:           99Mi          0B        99Midaniel@Pi4B:~ $daniel@Pi4B:~/pico/picoADC_UDP/picoADC_USB$ time cat /dev/ttyACM0 | ./usb2bin >capture5.bin^C154326 block in sequence0 block out of sequencereal    7m42.980suser    0m1.839ssys     0m10.562sdaniel@Pi4B:~/pico/picoADC_UDP/picoADC_USB$ ls -l -h capture5.bin-rw-r--r-- 1 daniel rad 177M Feb 22 15:49 capture5.bindaniel@Pi4B:~/pico/picoADC_UDP/picoADC_USB$ ./bin2csv capture5.bin /dev/nullGot 92596200 data pointsAll Done!daniel@Pi4B:~ $ awk '{printf "%f\n", 92596200 / ( 7*60+42.98)}'200000.431984

Statistics: Posted by danjperron — Thu Feb 22, 2024 9:13 pm



Viewing all articles
Browse latest Browse all 6048

Trending Articles