PyRadmon install and set up on Raspberry Pi (Wheezy Raspbian)
8 years 10 months ago #1387
by jnissen
Replied by jnissen on topic PyRadmon install and set up on Raspberry Pi (Wheezy Raspbian)
Looks like we have a winner! So far nearly a week of solid reporting! Way to go.
The only change I had to make for the BeagleBone Black was to change the default timeout for the serial port from the 1 second to 4 seconds. I also added a 0.1s delay after the CPM request is sent to the unit. I think those are mainly due to the interaction with the GMC Geiger Counter I have and the Beagle Bone. The GMC is terrible about having a variable response time once it gets the CPM command. The GMC firmware is not something that can be fixed - I asked many moons ago. Anyway bottom line is I am very happy with the performance of late.
The only change I had to make for the BeagleBone Black was to change the default timeout for the serial port from the 1 second to 4 seconds. I also added a 0.1s delay after the CPM request is sent to the unit. I think those are mainly due to the interaction with the GMC Geiger Counter I have and the Beagle Bone. The GMC is terrible about having a variable response time once it gets the CPM command. The GMC firmware is not something that can be fixed - I asked many moons ago. Anyway bottom line is I am very happy with the performance of late.
Please Log in or Create an account to join the conversation.
- ThibmoRozier
-
- Offline
- Elite Member
-
8 years 10 months ago #1388
by ThibmoRozier
Replied by ThibmoRozier on topic PyRadmon install and set up on Raspberry Pi (Wheezy Raspbian)
Amazing to hear that. ![:D :D](/media/kunena/emoticons/laughing.png)
GMC firmware can surely be fixed if the programmers just open their eyes and look at the reviews that their customers give them about their products.![;) ;)](/media/kunena/emoticons/wink.png)
Or if they give their firmware to others (me or Dan or anyone else knowing how to program in C and how to compile using GCC).
But that's just something I won't see happening any time soon.![:P :P](/media/kunena/emoticons/tongue.png)
I will see what I can do on PyRadmon's side.![:) :)](/media/kunena/emoticons/smile.png)
Thanks again for testing, it's awesome that you are willing to do so
![:D :D](/media/kunena/emoticons/laughing.png)
GMC firmware can surely be fixed if the programmers just open their eyes and look at the reviews that their customers give them about their products.
![;) ;)](/media/kunena/emoticons/wink.png)
Or if they give their firmware to others (me or Dan or anyone else knowing how to program in C and how to compile using GCC).
But that's just something I won't see happening any time soon.
![:P :P](/media/kunena/emoticons/tongue.png)
I will see what I can do on PyRadmon's side.
![:) :)](/media/kunena/emoticons/smile.png)
Thanks again for testing, it's awesome that you are willing to do so
![:) :)](/media/kunena/emoticons/smile.png)
Please Log in or Create an account to join the conversation.
8 years 10 months ago - 8 years 7 months ago #1393
by jnissen
Replied by jnissen on topic PyRadmon install and set up on Raspberry Pi (Wheezy Raspbian)
Yes now over a week and it would have died at least one or more times by now. I think you nailed it. Fantastic support!
Update - Now over two weeks straight and I have done nothing to it. Running rock solid! Very good fix.
Update 2 - This ran for three months solid without touching it!
Update - Now over two weeks straight and I have done nothing to it. Running rock solid! Very good fix.
Update 2 - This ran for three months solid without touching it!
Last edit: 8 years 7 months ago by jnissen.
The following user(s) said Thank You: ThibmoRozier
Please Log in or Create an account to join the conversation.
8 years 6 months ago #1732
by matthieu
Replied by matthieu on topic PyRadmon install and set up on Raspberry Pi (Wheezy Raspbian)
Hi,
I can't seem to get this to work with my radbox-20. The only difference is that I am running Jessie for obious reasons (Wheezy is going to LTE-maintenance in February, I would like to start with Jessie right away to avoid the update later on).
Here are the exact steps I took:
- burned a fresh raspbian jessie lite (dated 2015-11-21) to the sd card
- booted the raspberry pi 1st gen, connected via SSH
- sudo apt-get update && sudo apt-get upgrade
- sudo apt-get install python python-dev python-serial
- sudo apt-get install python-pyaudio
- Get pyradmon, run it to generate config
- run alsamixer to make sure the external card shows up
- run pyradmon again. Here is the output:
By the way: I had to convert the pyradmon using dos2unix because weirdly all files were Windows-ended.
Best Regards,
Matthieu
I can't seem to get this to work with my radbox-20. The only difference is that I am running Jessie for obious reasons (Wheezy is going to LTE-maintenance in February, I would like to start with Jessie right away to avoid the update later on).
Here are the exact steps I took:
- burned a fresh raspbian jessie lite (dated 2015-11-21) to the sd card
- booted the raspberry pi 1st gen, connected via SSH
- sudo apt-get update && sudo apt-get upgrade
- sudo apt-get install python python-dev python-serial
- sudo apt-get install python-pyaudio
- Get pyradmon, run it to generate config
- run alsamixer to make sure the external card shows up
- run pyradmon again. Here is the output:
Warning: Spoiler!
pi@raspberrypi:~ $ ./PyRadmon.py
Reading configuration:
User name configured
Password configured
Serial port name configured
Serial port speed configured
Protocol configured
Device number configured
Protocol configured
Using audio protocol for 1 => geiger 1
Initializing audio communication => geiger 1
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
No samples in queue, waiting 5 seconds => geiger 1
Gathering data started => geiger 1
Expression 'parameters->channelCount <= maxChans' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1514
Expression 'ValidateParameters( inputParameters, hostApi, StreamDirection_In )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2818
Problem with audio port => geiger 1:
[Errno Invalid number of channels] -9998
Exiting
Exception in thread audioCommunication:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "./PyRadmon.py", line 503, in run
self.stop()# Set EOL for log
File "./PyRadmon.py", line 562, in stop
if self.stream:
AttributeError: 'audioCommunication' object has no attribute 'stream'
No samples in queue, waiting 5 seconds => geiger 1
No samples in queue, waiting 5 seconds => geiger 1
^C
CTRL+C pressed, exiting program
Traceback (most recent call last):
File "./PyRadmon.py", line 800, in <module>
main()
File "./PyRadmon.py", line 780, in main
geigerCommunication.stop()
File "./PyRadmon.py", line 562, in stop
if self.stream:
AttributeError: 'audioCommunication' object has no attribute 'stream'
By the way: I had to convert the pyradmon using dos2unix because weirdly all files were Windows-ended.
Best Regards,
Matthieu
Please Log in or Create an account to join the conversation.
8 years 6 months ago #1733
by matthieu
Replied by matthieu on topic PyRadmon install and set up on Raspberry Pi (Wheezy Raspbian)
alsamixer output:
(Hope the ascii-art is readable after posting it
Warning: Spoiler!
Card: USB Device 0xccd:0x77 F1: Help x
x Chip: USB Mixer F2: System information x
x View: F3:[Playback] F4: Capture F5: All F6: Select sound card x
x Item: Speaker [dB gain: -20.13, -20.13] Esc: Exit x
x x
x x
x x
x x
x x
x x
x x
x lqqk lqqk x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x x x x
x x x xaax x
x x x xaax x
x x x xaax x
x x x xaax x
x x x xaax x
x x x xaax x
x x x xaax x
x x x xaax x
x xaax xaax x
x xaax xaax x
x xaax xaax x
x xaax xaax x
x tqqu tqqu lqqk x
x xOOx xMMx xOOx x
x mqqj mqqj mqqj x
x 19<>19 52 x
x < Speaker > Mic Auto Gain Control x
(Hope the ascii-art is readable after posting it
![;) ;)](/media/kunena/emoticons/wink.png)
Please Log in or Create an account to join the conversation.
- ThibmoRozier
-
- Offline
- Elite Member
-
8 years 6 months ago #1734
by ThibmoRozier
Replied by ThibmoRozier on topic PyRadmon install and set up on Raspberry Pi (Wheezy Raspbian)
That's weird because my RPi runs it without an issue.
I have a few questions now:
1> If you look at the config file it will tell you all available devices and how to configure them.
2> Does the compiled version work? PyRadmon.pyc
About the error:
It seems that PyAudio lib has some issues surpressing enummeration attempt errors.
This is a PyAudio issue that's rather well known.
What I will surely do now:
1> Update a few things in the source to try and get a better enummeration of devices.
2> Update port opening to new standards.
I have a few questions now:
1> If you look at the config file it will tell you all available devices and how to configure them.
2> Does the compiled version work? PyRadmon.pyc
About the error:
It seems that PyAudio lib has some issues surpressing enummeration attempt errors.
This is a PyAudio issue that's rather well known.
What I will surely do now:
1> Update a few things in the source to try and get a better enummeration of devices.
2> Update port opening to new standards.
Please Log in or Create an account to join the conversation.
Moderators: Gamma-Man
Time to create page: 0.250 seconds