Aller au contenu


firened

Inscrit(e) (le) 12 juil. 2020
Déconnecté Dernière activité sept. 28 2026 04:09
*****

Sujets que j'ai initiés

[Test] microphone background noise and SNR test

24 septembre 2026 - 09:18

Hello i tested multiple microphones and complied it into a video:
Mic_test.mp4   137,15 Mo


The microphones:
Fichier joint  20260923_145831.jpg   72,96 Ko   10 téléchargement(s)
1) cheap generic black mini mic from china ~1$
2) Orange-AI mic ~9$
3) BOYA BY-M100 21$
4) ?
5) ?
6) ?
7) robot-maker mic v1
8) robot-maker mic v2
9) robot-maker mic v1

The amplification gains used were [dB]:
+40 +36 +31 +6 +37 +29 +57 +13 +55

The primary metric by which i'd judge them, is how quiet the silent periods are.

The results:
In my opinion, the best microphone is:
#8 robot-maker mic v2.

Also good are:
#2, #3 and #7/#9, although the #7/#9 are very quiet.

Interestingly, #4, while it was the loudest out of the box, has a non-stop loud buzzing noise.

Result frame used in the video:Fichier joint  mic_test_20260924102531.png   201,49 Ko   9 téléchargement(s)

vigiUPSv2 / IP2312 Charger and charge cable tests

24 septembre 2026 - 08:34

Problem:

The IP2312 charge module reduces charge current if the usb input voltage drops.
From the datasheet:
Fichier joint  IP2312.pdf   5,45 Mo   47 téléchargement(s)

The relevant table:
Fichier joint  Screenshot_20260413_165610_Drive.jpg   38,36 Ko   9 téléchargement(s)

What can happen is, if the robot's idle current consumption is large enough that the usb input voltage drops to around 4.5V, the IP2312 will not charge at all.

The magnetic plug with its added resistance doesn't help here.

Here i test various combinations of cables and chargers to analyze which combinations will still charge the battery:

Fichier joint  20260415_113401.jpg   224,25 Ko   10 téléchargement(s)Fichier joint  20260415_113542.jpg   154,44 Ko   10 téléchargement(s)Fichier joint  20260415_113635.jpg   151,02 Ko   11 téléchargement(s)Fichier joint  20260415_113735.jpg   197,63 Ko   10 téléchargement(s)Fichier joint  20260415_113843.jpg   126,6 Ko   10 téléchargement(s)Fichier joint  20260415_115115.jpg   142,91 Ko   10 téléchargement(s)Fichier joint  20260415_115212.jpg   168,74 Ko   11 téléchargement(s)Fichier joint  20260415_113204.jpg   140,25 Ko   9 téléchargement(s)Fichier joint  20260415_115023.jpg   146,08 Ko   9 téléchargement(s)Fichier joint  20260417_095406.jpg   160,06 Ko   10 téléchargement(s)Fichier joint  20260417_095616.jpg   137,36 Ko   10 téléchargement(s)Fichier joint  20260417_095624.jpg   133,39 Ko   11 téléchargement(s)Fichier joint  20260417_095920.jpg   104,88 Ko   9 téléchargement(s)Fichier joint  20260417_095934.jpg   115,84 Ko   10 téléchargement(s)

how to use the e3372h with stick firmware (instead of hilink firmware)

16 novembre 2025 - 15:20

The e3372h comes in multiple versions as well 2 different firmwares.
 
How to tell them apart:
A. the hilink firmware is plug and play on raspbian. Once inserted, run `ifconfig` and you'll see a new `eth1` interface. Usually with an assigned IP of 192.168.8.100.
 
B. the stick firmware, once inserted, run `ifconfig` and you'll see a new `wwan0` interface, as well as these new devices: /dev/cdc-wdm0 , /dev/cdrom and probably /dev/sg0 , /dev/sg1 and /dev/sr0 .
 
How to set them up:
A. hilink firmware is plug and play
 
B. stick firmware needs setup. I found 2 methods that are supposed to work:
B.1. using mbimcli:
This does not work reliably. It fails silently from time to time.
B.1.1. Run
sudo apt install libmbim-utils
sudo mbimcli -d /dev/cdc-wdm0 --query-device-caps
sudo mbim-network /dev/cdc-wdm0 start
B.1.2. If it works (takes up to 90 seconds), automatically start it on boot:
Run
sudo nano /etc/mbim-network.conf
Insert
APN="internet"
USERNAME=""
PASSWORD=""
IP="dhcp"
Apn `internet` might be different for your ISP.

B.1.3.
sudo nano /etc/systemd/system/mbim-network.service
Insert
[Unit]
Description=MBIM network connection
After=network.target usb-devices.target
Wants=network.target

[Service]
Type=simple
ExecStart=/usr/bin/mbim-network /dev/cdc-wdm0 start
ExecStop=/usr/bin/mbim-network /dev/cdc-wdm0 stop
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
B.1.4. Enable service:
sudo systemctl daemon-reload
sudo systemctl enable --now mbim-network.service
B.2. using network-manager
sudo apt update
sudo apt install modemmanager modem-manager-gui-help network-manager
nmcli connection add type gsm ifname cdc-wdm0 con-name stick apn internet (gsm.pin ****)
sudo nmcli connection modify stick connection.autoconnect yes
nmcli connection up stick
Entry apn `internet` might be different for your ISP.

4G Antenna tests for mobile data connections like Huawei e3372h

16 novembre 2025 - 14:58

In this Thread: various external antennas for 4G connections and their RSSI signal reception strength.
 
1) huawei e3372h hilink firmware how to read  
2) huawei e3372h stick firmware how to read  
3) antenna tests 
 
1) signal strength hilink fw
Run command:

HUAWEIROUTERIP='192.168.8.1'
RESPONSE=`curl -s -X GET http://$HUAWEIROUTERIP/api/webserver/SesTokInfo`
COOKIE=`echo "$RESPONSE" | grep SessionID= | cut -b 10-147`
TOKEN=`echo "$RESPONSE" | grep TokInfo | cut -b 10-41`
curl --silent -b $COOKIE -c $COOKIE -H "X-Requested-With: XMLHttpRequest" http://$HUAWEIROUTERIP/api/monitoring/status --header "__RequestVerificationToken: $TOKEN" --header "Content-Type:text/xml"

Source: https://forums.raspb...c.php?p=2116154

2) signal strength stick fw

sudo mbimcli -d /dev/cdc-wdm0 --query-signal-state

3) antenna tests

Fichier joint  20251005_155509.jpg   148,48 Ko   23 téléchargement(s)
Fichier joint  20251005_154618.jpg   125,93 Ko   23 téléchargement(s)
Fichier joint  20251005_154940.jpg   145,71 Ko   25 téléchargement(s)
Fichier joint  20251005_160250.jpg   91,65 Ko   26 téléchargement(s)
Fichier joint  20251005_155200.jpg   164,47 Ko   24 téléchargement(s)
Fichier joint  20251005_155344.jpg   118,68 Ko   24 téléchargement(s)


Fichier joint  20251115_164614.jpg   102,21 Ko   23 téléchargement(s)
Fichier joint  20251115_165432.jpg   86,36 Ko   23 téléchargement(s)
Fichier joint  20251115_171842.jpg   71,48 Ko   28 téléchargement(s)
Fichier joint  20251115_171640.jpg   96,12 Ko   23 téléchargement(s)
Fichier joint  20251115_171403.jpg   75,61 Ko   24 téléchargement(s)
Fichier joint  20251115_170727.jpg   77,52 Ko   25 téléchargement(s)
Fichier joint  20251115_170424.jpg   85,03 Ko   25 téléchargement(s)
Fichier joint  20251115_170204.jpg   92,37 Ko   26 téléchargement(s)


Add your own antenna tests into the comments ↓


Thermal camera on internet controlled robot

25 octobre 2024 - 10:33

feel free to try the thermal camera and robot «CakeOnIce» (online during GMT day) on https://vigibot.com

got the infiray p2 pro thermal camera.
connected to PC it works like a webcam.
it recalibrates every 10s with an audible click, so i needed a way to turn it off when not in use.

i used uhubctl from https://github.com/m...raspberry-pi-4b
off:
sudo uhubctl -l 1-1 -a off  
sudo uhubctl -l 2 -a off
all 4 usb are switched together, turning off the usb microphone meant restarting the vigibot client every time.

fortunately the 4B allows usb host on the "power in" type c, to which i connected the microphone to keep it powered. `otg_mode=1`
https://forums.raspb...ic.php?t=246348

wrote a script `vim thermal_power_manager.sh`:
#!/bin/bash                              
# Function to handle cleanup on SIGTERM
cleanup() {
    echo "Stopping FFmpeg process..."
    kill $ffmpeg_pid
    wait $ffmpeg_pid 2>/dev/null

    echo "Disabling power to USB hub and thermal camera..."
    uhubctl -l 1-1 -a 0 > /dev/null
    uhubctl -l 2 -a 0 > /dev/null
    exit 0
}

# Enable power to USB hub and thermal camera
echo "Enabling power to USB hub and thermal camera..."
uhubctl -l 1-1 -a 1 > /dev/null
uhubctl -l 2 -a 1 > /dev/null

# Start FFmpeg stream
sleep 2
echo "Starting FFmpeg stream..."
ffmpeg -loglevel warning -i /dev/video1 -c:v h264_omx -profile:v baseline -b:v 1500000 -flags:v +global_header -bsf:v dump_extra -f rawvideo -vf 'scale=640x480' tcp://127.0.0.1:8043 &
ffmpeg_pid=$!

# Trap SIGTERM signal and execute the cleanup function
trap cleanup SIGTERM SIGINT

# Wait for the FFmpeg process to finish
wait $ffmpeg_pid

# Disable USB hub power for thermal camera after ffmpeg exits
uhubctl -l 1-1 -a 0 > /dev/null
uhubctl -l 2 -a 0 > /dev/null

echo "Stream stopped and USB power disabled."
exit 0
compiled it `shc -f thermal_power_manager.sh`, `chmod +x thermal_power_manager.sh.x`

and added to CMDDIFFUSION in /boot/robot.json

Fichier joint  IMG_20241022_144754.jpg   133,07 Ko   46 téléchargement(s)