开云体育

Date

Re: Building on Orange Pi One SBC

 

开云体育

Hi Dan,

I discovered that the GPIO pins are not the same as the Pi and have to be defined in a FEX file. I do have the GPIO working now by creating 4 GPIO ports then using GPIO3 for PTT on pin22 and GPIO4 for DCD on pin 15. So far I have it driving LED via a 2k2 resistor.

Here are my working notes -

73, Nick.

On 03/02/2017 06:55, danielgureanu@... [direwolf_packet] wrote:
?


Re: Building on Orange Pi One SBC

 


Re: Periodic audio device statistics [2 Attachments]

David Ranch
 

开云体育


Hello Randy,


?
I was finally able to see what you said by clicking "view source".

Yeah.. sorry about thast.? I think there is something wrong with the new K9 Email reader for Android.? Nice work about thinking to looking at the HTML source to see the plain text email!


6. Pulse audio should have been removed when I followed the above document. I wouldn't know how to confirm that.


What Linux distribution have you installed on your Raspberry Pi?? I would assume Rasbian Jessie version?? If so, it won't come with PulseAudio so you're ok there.

7. I'm using a radio shack scanner that performed perfectly as a receive only igate on my laptop PC for months.


If you connect it to another computer, can that computer record the audio like you'd expect?

8. As warned about in the document, I am not using a USB hub.

Ok.

9. When I put audio into the microphone jack on the sound card (using either a microphone or my scanner), it comes out the speaker jack of the sound card and it sounds very good. I can vary the volume levels using the mixer in Linux so the card is communicating with Linux on some level.

That doesn't sound right.? It shouldn't instantly and automatically play the sound it hears or you risk feedback.? Check your mixer settings using "alsamixer" from the "alsa-utils" package.? You can install that with:

?? apt-get update
?? apt-get install alsa-utils



11. I have attached my configuration file and the text copied from the Direwolf terminal when I start the program.


In your config file, you have:

ADEVICE - plughw:1,0

When you should have "ADEVICE? plughw:1,0"?? (notice the missing -"

--

Instead of having:

MODEM 1200

I recommend the following for the Raspberry Pi:

?? MODEM 1200 E+ /3

--

If you can manage to get an LED and a resistor, I highly recommend to setup a DCD indicator (lights up when Direwolf hears a packet):

#pin18 (GPIO 24) - (cathode) LED (anode) - 270ohm resistor - 3.3v
DCD GPIO 13

--

Unless you plan on using the TCP-KISS port or the AGWPE port, I would disable them with

AGWPORT 0
KISSPORT 0

--

One thing that is suspicious to me is that the Direwolf terminal shows "stdin" rather than my sound card as "device for receive".


This is due to the "-" in the ADEVICE line above.? Remove that as recommended above and I think you'll start hearing packets.

--David
KI6ZHD


Re: Periodic audio device statistics

 

David,

I was finally able to see what you said by clicking "view source".

I have spent a lot of time on this and have read the documentation...over and over and over again. I have read many other threads. I've tried many things. I've exhaustively done my homework. I know how forums work. I wouldn't bother you but I don't know where else to look for an answer anymore. I'm here because I am desperate.

I have answered most of your questions previously in this thread. It seems like I'm just chasing my tail here. Not that I don't appreciate the help, the forum (Yahoo) just doesn't seem to be very efficient. I really don't feel like typing everything over again just to add more clutter to this thread...but here goes...

1. I am setting up a receive-only igate. No transmit.
2. I am using a Syba USB sound card. It indicates CMedia CM119 on the package. This sound card is recommended in the document I list here in #5.
3. I have tried putting an isolation transformer and also a capacitor to block the 5 volts at the sound card input, but it did not help.
4.? I am running version 1.3
5. I've been following what has been done before in the document at this link...



6. Pulse audio should have been removed when I followed the above document. I wouldn't know how to confirm that.
7. I'm using a radio shack scanner that performed perfectly as a receive only igate on my laptop PC for months.
8. As warned about in the document, I am not using a USB hub.
9. When I put audio into the microphone jack on the sound card (using either a microphone or my scanner), it comes out the speaker jack of the sound card and it sounds very good. I can vary the volume levels using the mixer in Linux so the card is communicating with Linux on some level.
10. When I type "arecord -l", it lists my C-Media card as "card 1".
11. I have attached my configuration file and the text copied from the Direwolf terminal when I start the program.

One thing that is suspicious to me is that the Direwolf terminal shows "stdin" rather than my sound card as "device for receive".

Again, thanks for your help.

Randy


Re: Building on Orange Pi One SBC

 

hello Nick
i orderd a OP1 in October and it came from China just at the end of November
it was DOA
they wanted me to send it back then they would send me another
of course the return shipping was more than the item
i just ordered another
it came a month or so later and it was also DOA?
different failure, but still non functional
so im not holding any hope of ever having a OP1 that runs

Glad your is running !

de k9wkj


Re: Periodic audio device statistics

 

David,

I don't know what's wrong here but all I see when I open you post is "Hello <no name given>". Could you repost what you said. Thanks.

Randy


Building on Orange Pi One SBC

 

I just got myself a cheap Orange Pi SBC to experiment with and to see how it compares with my Rpi and Pi3. These devices are available for around 12USD from the far east although I paid slightly more from a UK source. That's about half the price of a Pi3. HDMI video and a keyboard is required for initial setup although I managed to do most of it over ssh once connected to my network over ethernet.

After installing the Ubuntu flavour of Armbian LInux, I found the compiler tools and git already installed. I pulled a copy of the Direwolf git repository as per the manual but my first build attempt failed due to missing library and header files.

These were downloaded by a "sudo apt-get libasound2 libasound2-dev libgps22 libgps-dev". Building completed followed by sudo make install and make install-conf.

I connected a usb sound card and configured with alsamixer. This was listed as card 2 so I adjusted direwolf.conf accordingly.

It's currently sat there on the bench connected to a HT monitoring my main APRS node and anything else in close proximity on 144.8. It's also connected to APRS-IS as G4IRX-1. Next challenge is to figure out the GPIO for a PTT and RX led interface. GPIO needs further configuration.

More details on the Orange Pi here - and Armbian Linux here -

73, Nick G4IRX


Re: Digipeating fails but Igate continues to function - Windows 7

 

We have been noticing this on a Raspberry Pi, using a DIO for PTT control.? It happens randomly, but at a much longer timeframe - a couple weeks to a month or so.? The system is remote, so we can't physically?observe it, but we can ssh into it.? We are now logging DW's output, and also monitoring it at another station.


Just now I was able to connect to it with APRSIS32 via a KISS port, and it was receiving well and may have transmitted a packet or two from that.


In every case, simply restarting DW has gotten it going again.? The RPi itself has been up for a long time, and we don't have to reset it.


Erik,

WB0NIU



Re: Periodic audio device statistics

David Ranch
 

开云体育


Hello

?

Okay...tried the recording and nothing on it. I had tried this before with the same results. I sent the wav file to my PC and it was silent. Other wav files play fine on my PC.
Is it for sure that if there is nothing on the wav file,


I would argue that it's 99% for sure that if you can't record the audio coming in from the USB soundcard's microphone jack, something is wrong.? I would not worry about Direwolf until you can get it to record the open squelch noise from your RX radio or some other audio source.? Please also note that it's important that you add a decoupling capacitor from the USB soundcard's microphone port to your radio's audio output.? There is a multi-volt BIAS voltage coming from the USB device that can harm your radio if it doesn't have any decoupling circuitry itself.

This is why I wanted to get the periodic device statistics. Do you have any idea why they do not work? Could I be typing the command incorrectly? At the wrong place? Exactly how do you enable the statistics? "direwolf -a 10"?


Please tell us about your setup:

?? - Radio you're using
? ? ? - Are you using PTT or VOX

?? - Specific USB sound card you're using
???? - How is it connected?? Direct to the Raspberry Pi (recommended), connected behind a USB hub (not recommended)

?? - Paste in the configuration of your direwolf.conf file



Could it not be working because I don't have the Direwolf configuration file correct?


Yes, that would cause it.? Please read the documentation and complete all of the recommended settings before emailing the list asking why it doesn't work.

--David
KI6ZHD


Re: Periodic audio device statistics

 

Okay...tried the recording and nothing on it. I had tried this before with the same results. I sent the wav file to my PC and it was silent. Other wav files play fine on my PC.

Is it for sure that if there is nothing on the wav file, Direwolf is not hearing input on the sound card. Also, is the inverse true? If there is audio on the wav file, can you be certain Direwolf is getting the audio?

This is why I wanted to get the periodic device statistics. Do you have any idea why they do not work? Could I be typing the command incorrectly? At the wrong place? Exactly how do you enable the statistics? "direwolf -a 10"?

Could the statistics not be working because I don't have the Direwolf configuration file correct?


Re: Periodic audio device statistics

 

I really didn't want to write up all the things I have tried in the last two weeks. Nor did I want to force you to read all of it.

I've been trying to follow what was done in the document at the link below...



I purchased one of the sound cards recommended in the pdf.

As I said, I'm no Linux expert. I did execute the commands in the document to remove Pulse, but I wouldn't know how to confirm it was successfully removed.

I have a degree in electronics and over 30 years of experience in the business so you can get technical about electronics. For things specific to Linux I will need detailed help.


Telemetry error msg

 

My first attempt with?telemetry.? This large Direwolf project got me to this point in one day.? Thanks.? Running on a Raspberry Pi 3, Raspbian Jessie.


Using SENDTO=RO to troubleshoot. Getting "Found fewer than expected number of telemetry data values." error message.


Here's the config:

CBEACON delay=0:10 every=10:00 sendto=RO via=WIDE2-1 infocmd="telem-parm.pl K7UOP-1 Temp Batt"
CBEACON delay=0:12 every=10:00 sendto=RO via=WIDE2-1 infocmd="telem-unit.pl K7UOP-1 degF Vdc"
CBEACON delay=0:14 every=01:00 sendto=RO via=WIDE2-1 infocmd="telem-data.pl `telem-seq.sh` `~/bin/aprs/get-values.py`"


And here's the direwolf output:
[0.0] K7UOP-1>APDW13,WIDE2-1::K7UOP-1? :PARM.Temp,Batt
Telemetry Parameter Name Message for "K7UOP-1", Ambulance, DireWolf, WB2OSZ


[0.0] K7UOP-1>APDW13,WIDE2-1::K7UOP-1? :UNIT.degF,Vdc
Telemetry Unit/Label Message for "K7UOP-1", Ambulance, DireWolf, WB2OSZ


[0.0] K7UOP-1>APDW13,WIDE2-1:T#685,57.4,12.5
Found fewer than expected number of telemetry data values.
Telemetry, Ambulance, DireWolf, WB2OSZ
Seq=685, Temp=57.4 degF, Batt=12.5 Vdc


Note that I'm using raw decimal numbers (57.4,12.5)?for values instead of three digit integers. Also BTW,? the APRS-TW program does not display these decimal values. It shows zeros? (with raw values being the integer of my values). It also indicates 5 analog and 8 digital readings.


I also wonder about the decoded?"Ambulance" thing too.


I plan to decode my own data so I don't think these are an issue for my purpose. But it would be nice if other programs could see that proper data.



Re: Periodic audio device statistics

David Ranch
 

A good step #1 would be to try to record the audio from your Rpi and see if you can play the audio back though a connected pair of headphones, etc. Though more command line centric, you can follow these steps to troubleshoot your setup:



--David



On January 31, 2017 7:19:34 PM PST, "occupant@... [direwolf_packet]" wrote:
?

I am attempting to set up a Raspberry Pi 3 as a receive only igate. I am using a Syba USB sound card. It indicates CMedia CM119 on the package. Direwolf will not decode packets. I have tried putting an isolation transformer and also a capacitor to block the 5 volts at the sound card input, but it did not help. I won't bother you right now with all the details of why, but I suspect the input audio is not making it to the Direwolf program.

I have tried setting up periodic audio device statistics using "-a 10" but the statistics never show up. Not sure what I am doing wrong or exactly how to do this. Isn't it just added to the end of the command when you start Direwolf? I am running version 1.3 and the release notes indicate this is an option in that version.

It would be helpful to know if audio is routed into the application and what level it is.

I suspect the fact that these reports do not show up may be related to the audio not making it to the program.

I am fairly computer literate, but certainly not a Linux expert (and hope not to become one).

Thanks



Re: Periodic audio device statistics

 

开云体育

Are you trying to use pulseaudio or?

What is the soundcard ## ... hint alsamixer in terminal


you dont need to be an expert .... your not running 300mph on a track .... but you do need to learn how to drive.




From: direwolf_packet@... on behalf of occupant@... [direwolf_packet]
Sent: Tuesday, January 31, 2017 7:19 PM
To: direwolf_packet@...
Subject: [direwolf_packet] Periodic audio device statistics
?
?

I am attempting to set up a Raspberry Pi 3 as a receive only igate. I am using a Syba USB sound card. It indicates CMedia CM119 on the package. Direwolf will not decode packets. I have tried putting an isolation transformer and also a capacitor to block the 5 volts at the sound card input, but it did not help. I won't bother you right now with all the details of why, but I suspect the input audio is not making it to the Direwolf program.

I have tried setting up periodic audio device statistics using "-a 10" but the statistics never show up. Not sure what I am doing wrong or exactly how to do this. Isn't it just added to the end of the command when you start Direwolf? I am running version 1.3 and the release notes indicate this is an option in that version.

It would be helpful to know if audio is routed into the application and what level it is.

I suspect the fact that these reports do not show up may be related to the audio not making it to the program.

I am fairly computer literate, but certainly not a Linux expert (and hope not to become one).

Thanks



Periodic audio device statistics

 

I am attempting to set up a Raspberry Pi 3 as a receive only igate. I am using a Syba USB sound card. It indicates CMedia CM119 on the package. Direwolf will not decode packets. I have tried putting an isolation transformer and also a capacitor to block the 5 volts at the sound card input, but it did not help. I won't bother you right now with all the details of why, but I suspect the input audio is not making it to the Direwolf program.

I have tried setting up periodic audio device statistics using "-a 10" but the statistics never show up. Not sure what I am doing wrong or exactly how to do this. Isn't it just added to the end of the command when you start Direwolf? I am running version 1.3 and the release notes indicate this is an option in that version.

It would be helpful to know if audio is routed into the application and what level it is.

I suspect the fact that these reports do not show up may be related to the audio not making it to the program.

I am fairly computer literate, but certainly not a Linux expert (and hope not to become one).

Thanks



Re: Direwolf as IGate - Pseudo Kiss port in APRSIS32 Not sending receiving messages.

 

I want direwolf to hand it off to the?APRS-IS network, which is what I'm struggling with as it keeps trying to send it over RF which does not exist.

APRSIS-32 works fine using?APRS-IS, ?but I don't want to use it like that.?


?


Re: Direwolf as IGate - Pseudo Kiss port in APRSIS32 Not sending receiving messages.

 

开云体育

You need to make a decision -- do you want direwolf to communicate with the APRS-IS network, or do you want it to hand off to APRSIS-32 and let APRSIS-32 handle the connections to the APRS-IS network? I would suggest the second option, in which case this becomes an APRSIS-32 issue, not a Direwolf issue. There is a good support forum for APRSIS-32.

73 de Matt VK2RQ

On 26 Jan 2017, at 8:15 am, dale.robins@... [direwolf_packet] <direwolf_packet@...> wrote:

?

Hi Matt,


AGW/KISS is set up correctly in APRSIS-32

I am actually receiving messages, if I disable Tx then it won't try and tell direwolf to send the message or ack, how do I get direwolf to treat anything sent over the KISS/AGW port to send to an via the APRS-IS server.


Re: Direwolf as IGate - Pseudo Kiss port in APRSIS32 Not sending receiving messages.

 

Hi Matt,

AGW/KISS is set up correctly in APRSIS-32

I am actually receiving messages, if I disable Tx then it won't try and tell direwolf to send the message or ack, how do I get direwolf to treat anything sent over the KISS/AGW port to send to an via the APRS-IS server.


Re: Direwolf as IGate - Pseudo Kiss port in APRSIS32 Not sending receiving messages.

 

开云体育

Configuration will be in APRSIS-32 -- you need to set up the AGW port that faces your direwolf modem to handle messages and to enable TX (although if you don't have a transmitter connected, better to leave TX disabled in the APRSIS-32 settings).

73 de Matt VK2RQ

On 26 Jan 2017, at 7:23 am, dale.robins@... [direwolf_packet] <direwolf_packet@...> wrote:

?

I have direwolf set up as an IGate and using the Pseudo Kiss or AGW setup on my APRSIS-32,

Data is being sent to APRSIS-32 and can see all the stations my Rx only IGate is picking up.


I have 2 issues:


1, Any message being sent to me does not appear on APRSIS-32 nor does it send any ack packet.

2, Any message via?APRSIS-32?I send shows on my direwolf console shows direwolf trying to send it as a radio packet, however I have no Tx capable radio attached and is Rx only.


Is there a config I need to add or change for KISS/AGW to enable me to use a client attached as described.






Re: Direwolf as IGate - Pseudo Kiss port in APRSIS32 Not sending receiving messages.

 

Sorry I am actually receiving messages,

However direwolf is trying to send messages and ack as over Rf not the igate.