I really want to send all the required log to you but as i mentioned, i cannot access internet or even local network. I am not sure how can i send the loglink to you. Is there any offline/local file that i can copy to flash drive and then send to you here ?
hello Nerd
I thought I could add to your info about my wifi usb by running your WiFi diagnostic script
I have downloaded the zipped file and unzipped it onto a microSD card which is plugged into a usb sb card reader in the Rpi2, however when I get to the point [quote=ānerd, post:74, topic:72576ā]
and extract it on your Volumio device.
[/quote]
I realise that my knowledge of terminal commands is severely lacking.
When you have a spare moment can you educate me with the few commands i need to do this and I hope this will be of help to others in the same position as me.
Thanks
Hi @JohnR
Just execute the following commands, when connected to your rPi via ssh:
cd ~
wget https://community.volumio.com/uploads/short-url/ArK0SsiEaFe14KwQky9OO6GbK1S.zip && miniunzip ArK0SsiEaFe14KwQky9OO6GbK1S.zip && rm ArK0SsiEaFe14KwQky9OO6GbK1S.zip && chmod +x wifi-info.sh && sudo bash wifi-info.sh
For the TP-Link Archer T3U:
=== WiFi Interface Summary ===
--- Interface: wlan0 ---
Device path: /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0
Bus info: usb
Physical device info:
E: MODALIAS=usb:v2357p012Dd0300dc00dsc00dp00icFFiscFFipFFin00
E: ID_VENDOR_FROM_DATABASE=TP-Link
E: ID_MODEL_FROM_DATABASE=Archer T3U [Realtek RTL8812BU]
Modalias: usb:v2357p012Dd0300dc00dsc00dp00icFFiscFFipFFin00
Extracted USB VID:PID = 2357:012D
Active kernel module: rtw_8822bu
(module info not available)
Supported PHY modes:
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
Supported bands:
Band 1:
Capabilities: 0x196f
Band 2:
Capabilities: 0x196f
HT/VHT/HE capabilities:
HT Max RX data rate: 300 Mbps
HT TX/RX MCS rate indexes supported: 0-15, 32
HT Max RX data rate: 300 Mbps
HT TX/RX MCS rate indexes supported: 0-15, 32
VHT Capabilities (0x03d071b2):
VHT RX MCS set:
VHT RX highest supported: 780 Mbps
VHT TX MCS set:
VHT TX highest supported: 780 Mbps
VHT extended NSS: not supported
HT Capability overrides:
@Wheaten
Added that one to the Odroid N2/N2+/C4, appears to be working fine locally, bookworm version pending
Hey @JohnR,
Here is a step-by-step guide your forum user can follow using only a Volumio system with an SD card or USB reader attached:
How to Run the WiFi Diagnostic Script from an Inserted microSD or USB Drive
1. Log in to Volumio Terminal
Use SSH to connect to Volumio:
ssh volumio@<your-volumio-ip>
- Default password is
volumio
2. Execute @Wheaten instructions:
cd ~
wget https://community.volumio.com/uploads/short-url/ArK0SsiEaFe14KwQky9OO6GbK1S.zip && miniunzip ArK0SsiEaFe14KwQky9OO6GbK1S.zip && rm ArK0SsiEaFe14KwQky9OO6GbK1S.zip && chmod +x wifi-info.sh && sudo bash wifi-info.sh
3. Find the Mounted Drive
List mounted drives:
ls /media
Example output:
MY_USB
Now change into that directory:
cd /media/MY_USB
Hey @JohnR,
Certainly. Hereās the revised section with both options clearly explained:
4. Locate or Share the Output
After the script runs, it creates the file:
/tmp/wifi-info.log
You have two ways to share this:
Option A: Copy to USB Stick
-
Identify your USB stick mount (example shown:
MY_USB
):cp /tmp/wifi-info.log /media/MY_USB/
-
Remove the USB and upload the file to your forum post.
Option B: Display and Copy-Paste Output
-
Show the contents directly in the terminal:
cat /tmp/wifi-info.log
-
Then copy the terminal output and paste it into your forum post between triple backticks:
```
[paste output here]```
Both methods are fine, but attaching the file is preferred if the output is long.
Kind Regards,
Hi @nerd !
A simple question? If I attach a rechargable RTC battery to Rpi 5, do I need to add some code lines or is the recharge function enabled by default in Volumio Beta 4.011?
Best regards/ C
Just execute:
Set the system clock first:
sudo date -s "$(curl -sI http://google.com | grep ^Date: | cut -d' ' -f2-)"
Write it to the RTC:
sudo hwclock -w
Synchronize hardware clock (RTC) ā system clock
sudo hwclock -s
View the hardware clock (RTC)
sudo hwclock -r
Hey @ClaesM,
Good question, and hereās a full breakdown:
Raspberry Pi 5 RTC Support:
The Raspberry Pi 5 includes a built-in RTC via its RP1 chip, with a 2-pin JST-PH (1.25 mm) connector labeled BAT. Volumio Beta 4.011 supports this RTC out of the box - no additional configuration needed if a battery is connected.
Battery compatibility:
- The built-in RTC does not support rechargeable batteries.
- It is designed exclusively for non-rechargeable 3V lithium coin cells, such as the CR2032.
- Connecting a rechargeable cell (like LIR2032 or ML2032) directly to the BAT header is unsafe, as the Pi 5 does not include a charge circuit and cannot manage recharge cycles.
Rechargeable RTC support:
You can use an external I2C-based RTC module that includes a charging circuit, such as the DS3231SN with LIR2032 support. Many of these modules safely manage the battery charging and include protection diodes and resistors.
Example: Using a DS3231 RTC Module with Rechargeable Battery
-
Connect the module to the I2C pins:
- SDA to GPIO2 (pin 3)
- SCL to GPIO3 (pin 5)
- VCC to 3.3V (pin 1)
- GND to ground (pin 6)
-
Ensure the module supports charging (typically LIR2032) and uses a diode-resistor charge circuit.
-
Edit Volumio config to enable the external RTC:
-
Add the following line to
/boot/userconfig.txt
:dtoverlay=i2c-rtc,ds3231
-
-
Disable the internal RTC to prevent conflicts:
-
Add the following to
/boot/userconfig.txt
:dtparam=rtc_disabled
-
-
First boot handling:
On first boot after adding the overlay, Volumio will auto-detect and register the RTC under/dev/rtc0
.
Summary:
- Raspberry Pi 5 built-in RTC: Use CR2032 only - no recharge support.
- Want to use rechargeable batteries: Use an external I2C RTC module with charge support (like DS3231 + LIR2032).
- Disable internal RTC with
dtparam=rtc_disabled
if using external.
This setup will work reliably with Volumio Beta 4.011.
Kind Regards,
Thanks @Wheaten !
I will stick with rpi 5 built-in 2-pin jst-ph rtc so the commands you showed me work just fine!
Best Regards/ C
Thanks @nerd !
I will use the simplest way right now. I stick with 2-pin jst-ph built in.
Later on I will go for some external module with a charging circuit. Thanks for your breakdown on this!
Best Regards / C
I just found this on raspberrys own site, is this not working?
Add a backup battery
Lithium-manganese rechargeable RTC battery
The official battery part is a rechargeable lithium manganese coin cell, with a pre-fitted two-pin JST-SH plug and an adhesive mounting pad. This is suitable for powering the RTC when the main power supply for the board is disconnected. Since the current draw when powered down measures in single-digit µA, the retention time measures in months.
Note We do not recommend using a primary (non-rechargeable) lithium cell for the RTC. The RTC backup current consumption is higher than most dedicated RTC modules and will result in a short service life.
Warning Do not use a Lithium Ion cell for the RTC.
Enable battery charging
The RTC is equipped with a constant-current (3mA) constant-voltage charger.
Charging of the battery is disabled by default. There are sysfs
files that show the charging voltage and limits:
/sys/devices/platform/soc/soc:rpi_rtc/rtc/rtc0/charging_voltage:0 /sys/devices/platform/soc/soc:rpi_rtc/rtc/rtc0/charging_voltage_max:4400000 /sys/devices/platform/soc/soc:rpi_rtc/rtc/rtc0/charging_voltage_min:1300000
To charge the battery at a set voltage, add rtc_bbat_vchg
to /boot/firmware/config.txt
:
dtparam=rtc_bbat_vchg=3000000
Reboot with sudo reboot
to use the new voltage setting. Check the sysfs
files to ensure that the charging voltage was correctly set.
it works have the same on my rpi5
Hey @ClaesM,
I thought I mentioned it, yet I did not.
Just to clarify for others following this thread: I didnāt mention the RTC battery charging capability in my original post for a good reason.
With confirmed issues when enabling the charge feature on the Raspberry Pi 5 RTC, such as:
- RTC stops functioning when charging is enabled (
dtparam=rtc_bbat_vchg=...
) - Missing sysfs entries to confirm charging status
- Battery not charging as expected
- Compatibility problems outside Raspberry Pi OS
Things are improving, however Iām avoiding it in production setups for now. Please share your experiences.
Kind Regards,
Hi again!
Did you put dtparam=rtc_bbat_vchg=3000000 in config or userconfig?
Yes I did.
Also found that the given commands donāt work:
/sys/devices/platform/soc/soc:rpi_rtc/rtc/rtc0/charging_voltage:0 /sys/devices/platform/soc/soc:rpi_rtc/rtc/rtc0/charging_voltage_max:4400000 /sys/devices/platform/soc/soc:rpi_rtc/rtc/rtc0/charging_voltage_min:1300000
Went by:
/sys/devices/platform/soc@107c000000/soc@107c000000:rpi_rtc/rtc/rtc0
cat /sys/devices/platform/soc@107c000000/soc@107c000000:rpi_rtc/rtc/rtc0/charging_voltage
3000000
cat /sys/devices/platform/soc@107c000000/soc@107c000000:rpi_rtc/rtc/rtc0/charging_voltage_max
4400000
cat /sys/devices/platform/soc@107c000000/soc@107c000000:rpi_rtc/rtc/rtc0/charging_voltage_min
1300000
cat /sys/devices/platform/soc@107c000000/soc@107c000000:rpi_rtc/rtc/rtc0/battery_voltage
3078629
cat /sys/devices/platform/soc@107c000000/soc@107c000000:rpi_rtc/rtc/rtc0/battery_voltage
3079484
Ok! Thanks!
I donāt know if I am brave enough to test it
Regards/ C
Ok,
I understand that, Iām just curious about this. I would be great if it could work without problems.
Personally I donāt want to set actual time if my pi5 have been out of power for a day or two.
Regards /C
Hi there!
I thougt I would give it a try so I added your code above (rtc charging) .
I seems to work! Thanks!
Regads/ C
Wheaten VS Nerd => 01 - 231789