Keyboard Shortcuts
Likes
- RaspberryPi-4-HamRadio
- Messages
Search
Re: Micropython I2S audio library?
开云体育
Hui Dan,
I'm curious...? ?why use Micropython on a Raspberry Pi when you can use full blown Python ?
73 - Bill KA8VIT/W8COD
From: [email protected] <[email protected]> on behalf of Dan Romanchik KB6NU <cwgeek@...>
Sent: Tuesday, August 17, 2021 8:39 AM To: [email protected] <[email protected]> Subject: [RaspberryPi-4-HamRadio] Micropython I2S audio library? ?
I'm working on a project (well, that's not strictly trure; I'm just playing around with it :) ) that's not strictly ham-radio related.It uses a Raspberry Pi Pico and a
?to produce sounds. I'm wondering if any of you are doing something similar and have perhaps found a MicroPython I2S audio library to run the thing.
73,? Dan KB6NU |
Cant get full screen hamclock on 7 inch touchscreen
I finally got hamclock to work, but i cant get a full screen on my ebay 7;inch touchscreen
|
Re: Micropython I2S audio library?
Hi Dan,
toggle quoted message
Show quoted text
Are you looking for something like midi or a music synthesizer? I am interested in that, too. 73, Bill KU8H bark less - wag more On 8/17/21 8:39 AM, Dan Romanchik KB6NU wrote:
I'm working on a project (well, that's not strictly trure; I'm just playing around with it :) ) that's not strictly ham-radio related.It uses a Raspberry Pi Pico and a MAX98357 D-A/amp board <>?to produce sounds. I'm wondering if any of you are doing something similar and have perhaps found a MicroPython I2S audio library to run the thing. |
Re: MiniProSC sound card info for BAP 3.0.8
73 On Tue, Aug 17, 2021, 02:45 Dinoburb <fsgorman@...> wrote: I have been attempting to set-up a G90, MiniProSC, Raspberry Pi remote set-up and I am flummoxed (technical term) on what the MiniPro returns as the sound card.? When attempting to set-up WSJX I use the Icom 7100 as the radio and cannot figure out which of the 23 options presented.? Having tried anything the indicated a USB sound card resulted in no successful set-up. |
Micropython I2S audio library?
Dan Romanchik KB6NU
I'm working on a project (well, that's not strictly trure; I'm just playing around with it :) ) that's not strictly ham-radio related.It uses a Raspberry Pi Pico and a ?to produce sounds. I'm wondering if any of you are doing something similar and have perhaps found a MicroPython I2S audio library to run the thing.
73,? Dan KB6NU |
Re: MiniProSC sound card info for BAP 3.0.8
Most of the BAP users running the G90 hang out in this forum /g/KM4ACK-Pi/topics
I don't own the MiniProSC but I believe it is similar to the Signalink. Look for the sound card that has "Codec" in the name. 73, de KM4ACK |
Re: MiniProSC sound card info for BAP 3.0.8
开云体育I would suggest getting a terminal window up, and typing aplay -l and seeing what you get, and then arecord -l and looking at the output from that. ? The output can still take a bit of deciphering, but it will hopefully give you a better idea of what to look for for your USB Audio. ? 73 Phil 2E0HGU |
MiniProSC sound card info for BAP 3.0.8
I have been attempting to set-up a G90, MiniProSC, Raspberry Pi remote set-up and I am flummoxed (technical term) on what the MiniPro returns as the sound card. ?When attempting to set-up WSJX I use the Icom 7100 as the radio and cannot figure out which of the 23 options presented. ?Having tried anything the indicated a USB sound card resulted in no successful set-up.
I have the G90 set-up with VOX and I/O via LINE. ?The program cannot/will not read the radio. I’ve tried Julian’s set-up for FLRIG and here I cab select the Xeigu G90 but when it comes to the the sound card I’m presented with over 50 options starting with ?/dev/tty, /dev/tty0 on to /tty9 then its /dev/ttyAMAO ?and ?/dev/ttyprintk. ?Nothing seems to work and no data sent to the program AND the USB audio switch is grayed out under the XCVR Configuration! i need help in getting out of this rabbit hole! |
Re: SD Cards Erased Upon Removal?
#raspberrypi
#usability
#hampi
#hardware
#pi
Good luck and try not to jump to conclusions about the feasibility of an OS too soon... in many cases, the problem is the user. 73 de heinz, VK2STM |
Re: RealVNC loses connection
Mark, David:
Thanks for your help. I found something on the web last night about 2.4g wifi issues maybe being caused by HDMI cables. In the living room to TV, I am running HDMI this is where I did the initial startup of PI when I unboxed it.? In the radio room, its headless. So I went to 5G, connected direct, ran a ping back to the router, while in the living room.? Ran realvnc viewer from my phone.? Twenty minutes without a drop, changed to cloud, another 20mts without a drop.? Back to the radio room, now the router is 7ft away.? Wired up for FT8 ran on cloud, ran ping to the router.? In 30mts of running FT8 with a few contacts, not a single drop. Before I went to 5G, on my desktop or phone I would see the ping stop when it dropped connection.? Been running on cloud, FT8 for 30mts thing morning, no drops. I will run the data test both of you suggested after work on both 5G and 2.4G Thanks Carlos KE5DFK |
Re: SD Cards Erased Upon Removal?
#raspberrypi
#usability
#hampi
#hardware
#pi
Did you try "ssh pi@..." where the X's are the IP address of the pi?
On Aug 15, 2021, at 15:02, David AJ6RE <dc1@...> wrote: Hi David, |
Re: RealVNC loses connection
Mark Griffith
Carlos, The first thing I would check is what is the signal strength from your Pi to the WiFi router.? You can do this with this simple command: sudo iw wlan0 station dump | grep signal | awk '{print $2}' This will print the dbm signal.? A -70 is the weakest you would want to go and have a reliable link.? -60 or better, with -20 being a super strong signal, would be good. Another thing to check would be the number of WiFi failed data packets since the last reboot. sudo iw wlan0 station dump | grep failed | awk '{print $3}' A return of zero would of course be best.? If you have a lot of failed packets, there is something wrong. The last thing to check would be the bit rate between the Pi and your WiFi router: sudo iw wlan0 station dump | grep 'tx bitrate' | awk '{print $3}' If you are using a 2.5GHz link, a rate of 61 would be the max.? Anything less would of course be less good. These are values that are kept by the operating system, so they are the most accurate and relevant. If you have a low signal, or low bit rate, it could be that at some point the link is just dropped for no apparent reason.? If so, then you'll need to move the Pi closer to the WiFi router, or get better antennas for the router, or look for interference on that frequency.? Microwave ovens and older cordless phones share the 2.5 GHz spectrum and have been in the past notorious for interference. Hope this helps. Mark KD0QYN
On Sunday, August 15, 2021, 05:45:47 PM CDT, David Ranch <rpi4hamradio-groupsio@...> wrote:
Hello Carlos, Since you're doing a connection from one internal host to another internal host, you are NOT going through your router or using it's port forward setting. Ah.. ok, I didn't remember hearing the Rpi was on wifi.? None the less, I bet the PC and the Rpi are still on the same LAN so while they are indeed using the router, they aren't going through any NAT / portforward functionality.?? My new suspect here is that your Rpi is periodically dropping it's Wifi connection. This log entry is from your VNC Viewer and seems to indicate that the server isn't responding to keepalive packets.? Can you post some of the relevant logs from the VNC *Server* side of things? -
Right.. I bet you're loosing wifi connection on the Rpi side.? Do you have a HDMI monitor + USB keyboard connected on the Rpi?? If so, run a ping from the Rpi to the default gateway (aka your router) going.? See if that occasionally drops.? I bet it does.? If that's correct, you need to see what's going on here.? Here is a little script you can run on the Raspberry Pi to see what it think's it's Wifi signal strength is: ?/usr/local/bin/get-wifi-stats.sh -- #!/bin/bash # 05/25/21 - dranch - minor fixes # 04/19/21 - dranch - original version echo -en "\nWifi Signal strength: " iw wlan0 station dump | grep signal | awk '{print $2}'? echo -e "?? -70 dbm or less? : is a weak signal and the link will drop if it gets much weaker" echo -e "?? -60 dbm to -50?? : is a good signal" echo -e "?? -40 dbm or better: is a great signal" echo -en "\nWifi RX speed: " iw wlan0 station dump | grep 'rx bitrate' | awk '{print $3}' echo -en "Wifi TX speed: " iw wlan0 station dump | grep 'tx bitrate' | awk '{print $3}' echo -en "Wifi session reconnects since last reboot (`uptime | awk '{print $3}'` days ago): " iw wlan0 station dump | grep failed | awk '{print $3}' echo " " -- The output on one of my weakly connected Rpis is as follows: -- Wifi Signal strength: -71 ?? -70 dbm or less? : is a weak signal and the link will drop if it gets much weaker ?? -60 dbm to -50?? : is a good signal ?? -40 dbm or better: is a great signal Wifi RX speed: 26.0 Wifi TX speed: 39.0 Wifi session reconnects since last reboot (35 days ago): 53 -- --David |
Re: RealVNC loses connection
开云体育Hello Carlos, Since you're doing a connection from one internal host to another internal host, you are NOT going through your router or using it's port forward setting. Ah.. ok, I didn't remember hearing the Rpi was on wifi.? None the less, I bet the PC and the Rpi are still on the same LAN so while they are indeed using the router, they aren't going through any NAT / portforward functionality.?? My new suspect here is that your Rpi is periodically dropping it's Wifi connection. This log entry is from your VNC Viewer and seems to indicate that the server isn't responding to keepalive packets.? Can you post some of the relevant logs from the VNC *Server* side of things? -
Right.. I bet you're loosing wifi connection on the Rpi side.? Do you have a HDMI monitor + USB keyboard connected on the Rpi?? If so, run a ping from the Rpi to the default gateway (aka your router) going.? See if that occasionally drops.? I bet it does.? If that's correct, you need to see what's going on here.? Here is a little script you can run on the Raspberry Pi to see what it think's it's Wifi signal strength is: ?/usr/local/bin/get-wifi-stats.sh -- #!/bin/bash # 05/25/21 - dranch - minor fixes # 04/19/21 - dranch - original version echo -en "\nWifi Signal strength: " iw wlan0 station dump | grep signal | awk '{print $2}'? echo -e "?? -70 dbm or less? : is a weak signal and the link will drop if it gets much weaker" echo -e "?? -60 dbm to -50?? : is a good signal" echo -e "?? -40 dbm or better: is a great signal" echo -en "\nWifi RX speed: " iw wlan0 station dump | grep 'rx bitrate' | awk '{print $3}' echo -en "Wifi TX speed: " iw wlan0 station dump | grep 'tx bitrate' | awk '{print $3}' echo -en "Wifi session reconnects since last reboot (`uptime | awk '{print $3}'` days ago): " iw wlan0 station dump | grep failed | awk '{print $3}' echo " " -- The output on one of my weakly connected Rpis is as follows: -- Wifi Signal strength: -71 ?? -70 dbm or less? : is a weak signal and the link will drop if it gets much weaker ?? -60 dbm to -50?? : is a good signal ?? -40 dbm or better: is a great signal Wifi RX speed: 26.0 Wifi TX speed: 39.0 Wifi session reconnects since last reboot (35 days ago): 53 -- --David |
Re: RealVNC loses connection
David thanks for your help.
Since you're doing a connection from one internal host to another internal host, you are NOT going through your router or using it's port forward setting. ***Explain?? PC is ethernet and Pi is wireless, how is it not going thought the router? I assume that when you say "Viewer", you mean "RealVNC Viewer"?? I'm trying to be specific as there are probably more than a dozen different VNC clients out there for Linux. ***Correct RealVNC viewer. ***The only error file I found was the xsession log, see below. This log entry is from your VNC Viewer and seems to indicate that the server isn't responding to keepalive packets.? Can you post some of the relevant logs from the VNC *Server* side of things? ***I am having trouble finding this file Ping test. ***ping stopped when I lost connection running on cloud and on direct. BTW 6m sprint was a dud, band was dead, with 4 antennas, 3 of them are stack sets not one contact. *** Xsession: X session started for pi at Sun 15 Aug 2021 03:32:10 PM CDT dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting DISPLAY=:0 dbus-update-activation-environment: setting XAUTHORITY=/home/pi/.Xauthority localuser:pi being added to access control list dbus-update-activation-environment: setting USER=pi dbus-update-activation-environment: setting LANGUAGE=en_US dbus-update-activation-environment: setting TEXTDOMAIN=Linux-PAM dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11 dbus-update-activation-environment: setting HOME=/home/pi dbus-update-activation-environment: setting DESKTOP_SESSION=lightdm-xsession dbus-update-activation-environment: setting XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting LOGNAME=pi dbus-update-activation-environment: setting XDG_SESSION_CLASS=user dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games dbus-update-activation-environment: setting XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000 dbus-update-activation-environment: setting DISPLAY=:0 dbus-update-activation-environment: setting LANG=en_US dbus-update-activation-environment: setting XDG_SESSION_DESKTOP=lightdm-xsession dbus-update-activation-environment: setting XAUTHORITY=/home/pi/.Xauthority dbus-update-activation-environment: setting XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/pi dbus-update-activation-environment: setting SHELL=/bin/bash dbus-update-activation-environment: setting GDMSESSION=lightdm-xsession dbus-update-activation-environment: setting NO_AT_BRIDGE=1 dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 dbus-update-activation-environment: setting LC_ALL=en_US dbus-update-activation-environment: setting PWD=/home/pi ** Message: 15:32:12.154: main.vala:101: Session is LXDE-pi ** Message: 15:32:12.154: main.vala:102: DE is LXDE ** Message: 15:32:12.312: main.vala:133: log directory: /home/pi/.cache/lxsession/LXDE-pi ** Message: 15:32:12.312: main.vala:134: log path: /home/pi/.cache/lxsession/LXDE-pi/run.log |
Re: SD Cards Erased Upon Removal?
#raspberrypi
#usability
#hampi
#hardware
#pi
Hi David,
I should have clarified that I am running the Pi headless, so I have an older Panasonic Toughbook laptop running Ubuntu hardwired via Ethernet to use as a keyboard/screen interface with the Rpi, on which I am just installing Hampi as the OS. I normally run SSH to get onto the Rpi, then enable VNC server to operate Hampi from the Toughbook.? The HP laptop from which I flashed the original SD card is a separate Windows machine, but it worked fine that time, so I assume it has a good reader.? Upon re-examining the second SD card on the Toughbook (Ubuntu) card reader I do indeed see the files you have listed above under the /boot directory. The files all seem to be there, including the SSH file. However, the Rpi still fails to connect via SSH. The version of Hampi I was using was 1.0, and it appears that in subsequent releases SSH is already enabled. I think I will try flashing 2.0 and starting over. I am starting to suspect I just messed up the first card somehow. I do now see the readme instructions for creating a backup, so hopefully I won't repeat whatever mistake I may have made the first time around.? Thanks again for you help. 73's? David AJ6RE ? |
Re: SD Cards Erased Upon Removal?
#raspberrypi
#usability
#hampi
#hardware
#pi
I have been booting debian environments from thumb drives for 15+ years, since "live" iso releases became a thing. Very handy for poking around the occasional windows box, etc. USB 3.O makes the current crop as fast as pretty much anything. 73 On Sun, Aug 15, 2021, 11:58 Marty Hartwell <mhartwe@...> wrote:
|