Date   

Re: DRAWS total failure Re: DRAWS audio crosstalk? #direwolf #draws

Annaliese McDermond
 

On Dec 13, 2018, at 3:06 PM, Brian Badger <brian@...> wrote:

Anna,

I appreciate your time on this. I have been using Raspbian for 5 years, with projects all through the house, but this is the first time I've seen an overlay work like this. I have set dtparam=audio=on on other projects and it didn't come at the end. When I was told to put dtparam=audio=on at the end, I was expecting the dtoverlay= to come after dtoverlay=draws since I assumed I had to close scope on the "draws" overlay in order to send a param to the main scope of the device tree.

Instead it was exactly backwards of that in every respect. My pi experience is working against me.
In the HAT spec, there’s room to put a chunk of device tree on a flash chip on the hardware itself. If the firmware sees this, it will load up that device tree overlay and merge it with the rest of the stuff it happens to be doing. With the UDRC we did this, although with changes to the kernel the HAT-embedded device tree became invalid. I’m working on a field programmer for that, but I only have a certain number of amateur time units with which to work on this kinda thing.

What dtoverlay= does is clears out all device tree overlays whether they come from the HAT flash rom, or previous parameters in config.txt. We probably don’t really need it for the draws, but it’s absolutely necessary for udrc. Any dtoverlay/dtparam statements that come before this will essentially be ignored because dtoverlay= clears all of them out. So, you need to do the dtoverlay= first before you start loading other overlays or parameters. We would love to put the DRAWS overlay on the flash prom, but it slipped by us in testing that we’ve used a flash chip that’s too small to fit the overlay, hence you just have to use config.txt to load the overlay instead.

Hopefully that answers some of your questions about how the firmware loads all the DT stuff.

--

Brian N0KZ

--
Annaliese McDermond (NH6Z)
Xenotropic Systems
mcdermj@...


Re: amixer questions Re: Set Up Issues #setup #fldigi #draws

Brian Badger
 

Found this, the mixer is making more sense now: 
http://www.ti.com/ds_dgm/images/fbd_slos602c.gif

I spent a while staring at the draws schematic trying to figure it out when I finally realized the DIN6 sockets weren’t diagrams, and that pins 4 and 5 are supposed to be on opposite sides.  

Brian N0KZ


On Dec 13, 2018, at 10:00 PM, Brian Badger <brian@...> wrote:

I am only picking this up by side conversations:

Is this true -- I have been searching the archives and I can't find anything:
CM_L: Common (GND) for the left port
IN1_L: DISCRIMINATOR INPUT (9600) for the left port
IN2_L: AUDIO INPUT (1200) for the left port
CM_R: Common (GND) for the right port
IN1_R: DISCRIMINATOR INPUT (9600) for the right port
IN2_R: AUDIO INPUT (1200) for the right port

If that's not how it works, then how does it work?  And what is IN3? A
--
Brian N0KZ


amixer questions Re: Set Up Issues #setup #fldigi #draws

Brian Badger
 

I am only picking this up by side conversations:

Is this true -- I have been searching the archives and I can't find anything:
CM_L: Common (GND) for the left port
IN1_L: DISCRIMINATOR INPUT (9600) for the left port
IN2_L: AUDIO INPUT (1200) for the left port
CM_R: Common (GND) for the right port
IN1_R: DISCRIMINATOR INPUT (9600) for the right port
IN2_R: AUDIO INPUT (1200) for the right port

If that's not how it works, then how does it work?  And what is IN3? A
--
Brian N0KZ


Re: Set Up Issues #fldigi #js8call #setup

Tim Carroll <tcarroll4@...>
 

Trying to get JS8 FlDIGI and FT8 going I can get cat to change bands and fresh but can not get it to decide will check out your post.
Thank'z
Tim



Sent from my Verizon, Samsung Galaxy smartphone

-------- Original message --------
From: "art upton via Groups.Io" <artupton@...>
Date: 12/13/18 8:39 PM (GMT-05:00)
To: udrc@nw-digital-radio.groups.io
Subject: Re: [udrc] Set Up Issues

Hi Tim, what program(s) are you using? I have the ft-891 and build Fldigi on the Draws. I could not get real signal into it, as the default was driven to the pins for 9600 baud APRS radios. I hard to add work around to the scripts posted in the original links to get it to work.

Follow thru this thread and see where I made changes to get my 891 working with Fldigi  based on John and Bryan's advice:

Art

On Thursday, December 13, 2018, 8:05:15 PM EST, Tim Carroll <tcarroll4@...> wrote:


Been messing witm my draws hat since I got it,i cant seem to get my setting tweaked just right.Downloaded the beta image got gps working but for some reason I can not decode signals.I can change freqs with draws but must be something I donrt have set just right.I am using Yaesu FT891 and have double checked everything I know.Anyone else got any experience that might help.
Thank's
Tim
KE4HGP


Re: Set Up Issues #fldigi #js8call #setup

art upton <artupton@...>
 

Hi Tim, what program(s) are you using? I have the ft-891 and build Fldigi on the Draws. I could not get real signal into it, as the default was driven to the pins for 9600 baud APRS radios. I hard to add work around to the scripts posted in the original links to get it to work.

Follow thru this thread and see where I made changes to get my 891 working with Fldigi  based on John and Bryan's advice:

Art

On Thursday, December 13, 2018, 8:05:15 PM EST, Tim Carroll <tcarroll4@...> wrote:


Been messing witm my draws hat since I got it,i cant seem to get my setting tweaked just right.Downloaded the beta image got gps working but for some reason I can not decode signals.I can change freqs with draws but must be something I donrt have set just right.I am using Yaesu FT891 and have double checked everything I know.Anyone else got any experience that might help.
Thank's
Tim
KE4HGP


Set Up Issues #fldigi #js8call #setup

Tim Carroll <tcarroll4@...>
 

Been messing witm my draws hat since I got it,i cant seem to get my setting tweaked just right.Downloaded the beta image got gps working but for some reason I can not decode signals.I can change freqs with draws but must be something I donrt have set just right.I am using Yaesu FT891 and have double checked everything I know.Anyone else got any experience that might help.
Thank's
Tim
KE4HGP


Re: DRAWS total failure Re: DRAWS audio crosstalk? #direwolf #draws

 

I am not the expert, that would be Anna.

My understanding is that
dtoverlay=
is basically clearing the device tree overlay list, then you can add overlays with subsequent dtoverlay parameters like
dtoverlay=draws

My guess is that the dtparam=audio=on comes after the draws information as it is adding an audio driver to the device tree. 

This is not an invention of NW Digital Radio, it is from standard Raspbian.


On Thu, Dec 13, 2018 at 3:06 PM Brian Badger <brian@...> wrote:

Anna,

I appreciate your time on this.  I have been using Raspbian for 5 years, with projects all through the house, but this is the first time I've seen an overlay work like this.  I have set dtparam=audio=on on other projects and it didn't come at the end.  When I was told to put dtparam=audio=on at the end, I was expecting the dtoverlay= to come after dtoverlay=draws since I assumed I had to close scope on the "draws" overlay in order to send a param to the main scope of the device tree. 

Instead it was exactly backwards of that in every respect.  My pi experience is working against me.

--

Brian N0KZ



--


John D. Hays
Edmonds, WA
K7VE

   


locked #earlyadopter #documentation and the meaning of life? #earlyadopter #documentation

 

A few people have observed that not everything is immediately available as documentation as they bring up their DRAWS™ HAT.

I would like to clarify that being an early adopter, is much like a beta tester and as such we will take the questions that come up and use them in generating Wiki posts, FAQ, and similar documentation over time.  We will also use this information to build better tools to support DRAWS™ products like the HAT and the workstation.  As an early adopter, you received special pricing, in part, because we knew you would be exploring new territory without some of the answers.

This forum is a place to ask questions and help each other.  The people that develop the NW Digital Radio products are on the list and will provide feedback.  It may be a pointer to some documentation, or another source (especially for applications, which we haven't written and need those projects to provide answers) or give knowledge that we have, as developers.  There is no hidden book, that we refer to, to provide answers and advice.  If we are asked and provide an answer, it will show up in the list, or on the Wiki.

This will be your primary documentation and keeping up on this list will help you get the most from your DRAWS™ product.  Also, the use of hashtags allows you to narrow searches via forum messages page.

The recently published starter image has many applications that run on your DRAWS™ HAT and Raspberry Pi, give them a try using the script from here to start the sound system setup and adjust for your radio.  Once settings are set for a given radio, you should be able to move from program to program, configure, and run without further adjustments to audio levels.

Also, we invite you to put up your own discoveries for others to benefit.  If you have an interesting project or application, share it to help inspire others on what can be done.

Thank you to everyone who is participating in the early adopter program.  


John D. Hays
Director

  


Re: DRAWS total failure Re: DRAWS audio crosstalk? #direwolf #draws

Brian Badger
 

Anna,

I appreciate your time on this.  I have been using Raspbian for 5 years, with projects all through the house, but this is the first time I've seen an overlay work like this.  I have set dtparam=audio=on on other projects and it didn't come at the end.  When I was told to put dtparam=audio=on at the end, I was expecting the dtoverlay= to come after dtoverlay=draws since I assumed I had to close scope on the "draws" overlay in order to send a param to the main scope of the device tree. 

Instead it was exactly backwards of that in every respect.  My pi experience is working against me.

--

Brian N0KZ


Re: DRAWS total failure Re: DRAWS audio crosstalk? #direwolf #draws

Annaliese McDermond
 


On Dec 13, 2018, at 2:02 PM, Brian Badger <brian@...> wrote:

Thank you for the help.  That resolved the issue.

Is there a configuration, installation, setup, or user guide document that you are referring to when you say "you forgot"?  I assure you "forgot" isn't the problem.  I can't forget something I don't know.  

I’d have to demur to John on documentation as that’s more of his area. “Forgot” is probably a poor term. The only guide I’m referring to is my brain, but that’s because I’m the person who deals with drivers and systems integration.   I could explain about the device tree and the raspberry pi, but not tapping it out at work on my phone :)

I would love to know what else I don't know, but I can't find this stuff anywhere in the wiki.  

Much of this is standard raspian stuff. There is this thing called the device tree that describes the hardware to the Linux OS kernel. That’s what you’re playing with when you modify config.txt usually.   That’s all documented by the Pi foundation. 

—Anna



--
Brian N0KZ


Re: DRAWS total failure Re: DRAWS audio crosstalk? #direwolf #draws

Brian Badger
 

Thank you for the help.  That resolved the issue.

Is there a configuration, installation, setup, or user guide document that you are referring to when you say "you forgot"?  I assure you "forgot" isn't the problem.  I can't forget something I don't know.  

I would love to know what else I don't know, but I can't find this stuff anywhere in the wiki.  

--
Brian N0KZ


Re: Beta Image Available #betaimage #draws

Basil Gunn
 

If you want direwolf functionality with the draws hat do this:

cd
cd n7nix/config
sudo su
./app_config.sh core

This will run a script that sets up AX.25, direwolf & systemd

Now reboot your RPi & confirm your installation is working:

Receive
Tune your radio to the 1200 baud APRS frequency: 144.39 because there
should be lots of traffic there.

tail -f /var/log/direwolf/direwolf.log
or
become root & run listen -at in a console window

Transmit
Tune your radio to the 1200 baud APRS frequency: 144.39
cd
cd n7nix/debug
sudo su
./btest.sh -P [udr0|udr1]
This will send either a position beacon or a message beacon
with the -p or -m options.

Using a browser go to: https://aprs.fi/
Under Other Views, click on raw packets
Put your call sign followed by an asterisk in "Originating callsign"
Click search, you should see the beacon you just transmitted.

After that you can configure rmsgw, paclink-unix or someother packet
program that requires direwolf ie.:

./app_config.sh rmsgw
./app_config.sh plu

If you want to run some other program that does NOT use direwolf then do
this:
cd
cd bin
sudo su
./ax25-stop
This will bring down direwolf & all the ax.25 services.

I will put this in a markdown doc file later on today.

/Basil

John D Hays - K7VE <@john_hays> writes:

A Beta image is available for download at
http://nwdig.net/downloads/draws_beta2.zip

(This location may change.)

Unzip the file which will create draws_beta2.img
Use an SD Card of at least 8 GB and copy the img file with an image burner
like Etcher <https://www.balena.io/etcher/> or dd under Linux.

Insert into Raspberry Pi (with DRAWS HAT)
Boot up. It will expand the file system to fill your SD card.

User: pi / nwcompass but it will autologin and present GUI.

Run *raspi-config* to set timezone and enable ssh and vnc if desired.

If the GPS antenna is installed:

*sudo systemctl enable gpsd*

*sudo systemctl start gpsdsudo systemctl restart chrony*

Explore the menu system and desktop Icons. (The Direwolf menu item is
broken.)

To start and stop direwolf use:

*sudo systemctl start direwolf*
*sudo systemctl stop direwolf*

Application support should be directed to the author of each application.
Use Raspbian support for OS questions. General questions can be asked in
this group. (Check Wiki as well)

There are many applications installed, you can see the install scripts in
/home/pi/n7nix and an install log in /var/log

More information will be provided, but getting this out for those who are
waiting.

A few commands:

*gpsmon* # Check the GPS
*chronyc* sources # Check the NTP clock
*sensors* # Check sensors, including the input voltage if using the HAT 12
V input.


Re: DRAWS total failure Re: DRAWS audio crosstalk? #direwolf #draws

Annaliese McDermond
 

You forgot the line

dtoverlay=

Before

dtoverlay=draws

You should have the following as the end of your file:

dtoverlay=
dtoverlay=draws
dtparam=audio=on

—Anna

On Dec 12, 2018, at 8:51 PM, Brian Badger <brian@...> wrote:

Well, I changed it back but now the entire draws overlay is broken -- totally broken top to bottom.  No udrc audio device, no gps.

here is my entire /boot/config.txt

hdmi_force_hotplug=1

hdmi_group=2

hdmi_mode=82

force_turbo=1

dtoverlay=draws

#dtparam=audio=on


pi@compass
:~ $ aplay -l

 

aplay: device_list:270: no soundcards found...

pi@compass:~ $ ls /dev/ttySC0

 

ls: cannot access '/dev/ttySC0': No such file or directory

pi@compass:~ $ ls /dev/pps0

 

ls: cannot access '/dev/pps0': No such file or directory



DRAWS total failure Re: DRAWS audio crosstalk? #direwolf #draws

Brian Badger
 

Well, I changed it back but now the entire draws overlay is broken -- totally broken top to bottom.  No udrc audio device, no gps.

here is my entire /boot/config.txt

hdmi_force_hotplug=1

hdmi_group=2

hdmi_mode=82

force_turbo=1

dtoverlay=draws

#dtparam=audio=on


pi@compass
:~ $ aplay -l

 

aplay: device_list:270: no soundcards found...

pi@compass:~ $ ls /dev/ttySC0

 

ls: cannot access '/dev/ttySC0': No such file or directory

pi@compass:~ $ ls /dev/pps0

 

ls: cannot access '/dev/pps0': No such file or directory



Re: Beta Image Available #betaimage #draws

Basil Gunn
 

nwdig.net is sitting on a Rackspace server.
Even though Rackspace is a major service provider my virtual server is currently
getting hammered. We should look at mirroring and/or tor to alleviate
contention.
I just confirmed that the download of the image still works but it's
slow as many people are downloading at the same time.

/Basil

Dave Christensen <dkc2030@...> writes:

I tried to download the image Wednesday evening and it got to 17% and
24 minutes and 10 seconds and stopped for over 25 minutes before I
killed the download. Thought you would want to know



From: udrc@nw-digital-radio.groups.io [mailto:udrc@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Wednesday, December 12, 2018 8:02 PM
To: udrc@nw-digital-radio.groups.io
Subject: [udrc] Beta Image Available #betaimage #draws



A Beta image is available for download at http://nwdig.net/downloads/draws_beta2.zip

(This location may change.)



Unzip the file which will create draws_beta2.img

Use an SD Card of at least 8 GB and copy the img file with an image burner like Etcher <https://www.balena.io/etcher/> or dd under Linux.



Insert into Raspberry Pi (with DRAWS HAT)

Boot up. It will expand the file system to fill your SD card.

User: pi / nwcompass but it will autologin and present GUI.



Run raspi-config to set timezone and enable ssh and vnc if desired.

If the GPS antenna is installed:

sudo systemctl enable gpsd

sudo systemctl start gpsd
sudo systemctl restart chrony



Explore the menu system and desktop Icons. (The Direwolf menu item is broken.)

To start and stop direwolf use:

sudo systemctl start direwolf
sudo systemctl stop direwolf

Application support should be directed to the author of each application. Use Raspbian support for OS questions. General questions can be asked in this group. (Check Wiki as well)

There are many applications installed, you can see the install scripts in /home/pi/n7nix and an install log in /var/log

More information will be provided, but getting this out for those who are waiting.

A few commands:

gpsmon # Check the GPS

chronyc sources # Check the NTP clock
sensors # Check sensors, including the input voltage if using the HAT 12 V input.


Re: DRAWS audio crosstalk? #draws #direwolf

Brian Badger
 

# Additional overlays and parameters are documented /boot/overlays/README

 

force_turbo=1

dtoverlay=draws

 

# Enable audio (loads snd_bcm2835)

dtparam=audio=on



results in:

Audio device for both receive and transmit: plughw:CARD=udrc,DEV=0  (channel 0)

ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card

Could not open audio device plughw:CARD=udrc,DEV=0 for input

No such device

 

Pointless to continue without audio device.


Re: Beta Image Available #betaimage #draws

Dave Christensen
 

I tried to download the image Wednesday evening and it got to 17% and 24 minutes and 10 seconds and stopped for over 25 minutes before I killed the download.  Thought you would want to know

 

From: udrc@nw-digital-radio.groups.io [mailto:udrc@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Wednesday, December 12, 2018 8:02 PM
To: udrc@nw-digital-radio.groups.io
Subject: [udrc] Beta Image Available #betaimage #draws

 

A Beta image is available for download at http://nwdig.net/downloads/draws_beta2.zip

(This location may change.)

 

Unzip the file which will create draws_beta2.img

Use an SD Card of at least 8 GB and copy the img file with an image burner like Etcher or dd under Linux.

 

Insert into Raspberry Pi (with DRAWS HAT)

Boot up.  It will expand the file system to fill your SD card.

User: pi / nwcompass  but it will autologin and present GUI.

 

Run raspi-config to set timezone and enable ssh and vnc if desired.

If the GPS antenna is installed:

sudo systemctl enable gpsd

sudo systemctl start gpsd
sudo systemctl restart chrony

 

Explore the menu system and desktop Icons.  (The Direwolf menu item is broken.)

To start and stop direwolf use:

sudo systemctl start direwolf
sudo systemctl stop direwolf

Application support should be directed to the author of each application.  Use Raspbian support for OS questions.  General questions can be asked in this group. (Check Wiki as well)

There are many applications installed, you can see the install scripts in /home/pi/n7nix and an install log in /var/log

More information will be provided, but getting this out for those who are waiting.

A few commands:

gpsmon # Check the GPS

chronyc sources # Check the NTP clock
sensors  # Check sensors, including the input voltage if using the HAT 12 V input.

 

--

 


John D. Hays
Director
Image removed by sender.

Image removed by sender. Image removed by sender. Image removed by sender.


Re: DRAWS audio crosstalk? #draws #direwolf

Brian Badger
 

All of that is in line with my expectation, but I haven’t figured out the “turn off the unused channel”. When I remove channel 1 it still comes up as 1200 baud by default. That’s exactly how I found the issue.


Brian N0KZ

On Dec 12, 2018, at 4:32 PM, Bryan Hoyer <@K7UDR> wrote:

The input is terminated with 100kohms, so if there is no radio connected there is sufficient crosstalk for DIREWOLF to decode a few packets, but it has to work really hard to do it. You will see signal levels of “0” and you may even see DIREWOLF run out of CPU.

One of our UDRC users reported that the Analog input was 10-12dB quieter than other boards he had used, which allows decode down to the noise floor.

Turn off the unused channel.

Bryan K7UDR






Beta Image Available #betaimage #draws

 
Edited

A Beta image is available for download at http://nwdig.net/downloads/draws_beta2.zip
(This location may change.)

UPDATE  the latest version will be available draws_current.zip


Unzip the file which will create draws_beta2.img
Use an SD Card of at least 8 GB and copy the img file with an image burner like Etcher or dd under Linux.
 
Insert into Raspberry Pi (with DRAWS HAT)
Boot up.  It will expand the file system to fill your SD card.

User: pi / nwcompass  but it will autologin and present GUI.
 
Run raspi-config to set timezone and enable ssh and vnc if desired.

If the GPS antenna is installed:

sudo systemctl enable gpsd
sudo systemctl start gpsd
sudo systemctl restart chrony
 
Explore the menu system and desktop Icons.  (The Direwolf menu item is broken.)

To start and stop direwolf use:

sudo systemctl start direwolf
sudo systemctl stop direwolf

Application support should be directed to the author of each application.  Use Raspbian support for OS questions.  General questions can be asked in this group. (Check Wiki as well)

There are many applications installed, you can see the install scripts in /home/pi/n7nix and an install log in /var/log

More information will be provided, but getting this out for those who are waiting.

A few commands:

gpsmon # Check the GPS
chronyc sources # Check the NTP clock
sensors  # Check sensors, including the input voltage if using the HAT 12 V input.
 
--


John D. Hays
Director

  


Fixed:[udrc] No Transmit Audio #xastir #direwolf #draws

Jack Spitznagel
 

All,

 

Thanks for your patience on this thread – the problem was not self-evident and I don’t understand why the following situation works for me. The solution was to comment out all references to port 1 – left channel in the direwolf.config file as shown below with changes in red.

 

What confuses me:

  1. Even if port 1 is not configured, when a radio is attached to the left port and turned on, Direwolf will not digipeat. Turn it off and it will digipeat from port 0.
  2. If the left channel port 1 references are all enabled, Direwolf will not digipeat on port 0 or port 1 regardless if the port 1 radio is turned on or off.

 

Jack – KD4IZ

 

----- Working direwolf.conf -----

ADEVICE plughw:CARD=udrc,DEV=0

ARATE 48000

ACHANNELS 1

#Port 0

CHANNEL 0

MYCALL KD4IZ-2

MODEM 1200

PTT GPIO 23

#Port 1

#CHANNEL 1

#MYCALL KD4IZ-3

#MODEM 9600

#PTT GPIO 12

AGWPORT 8000

KISSPORT 8001

TBEACON delay=1 sendto=0 every=10 overlay=S symbol="digi" power=5 height=20 gain=6 comment="DRAWS 0 1200" via=WIDE1-1,WIDE2-1

#TBEACON delay=1 sendto=1 every=10 overlay=S symbol="digi" power=5 height=20 gain=6 comment="DRAWS 1 9600" via=WIDE1-1,WIDE2-1

DIGIPEAT 0 0 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE

#DIGIPEAT 1 1 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE

#DIGIPEAT 0 1 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE

#DIGIPEAT 1 0 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$ TRACE

IGSERVER northwest.aprs2.net

#IGLOGIN YOUR INTERNET LOGIN AND PASSCODE FOR APRS REPORTING

IGLOGIN xxxxx #####

TBEACON sendto=IG delay=1 every=60:00 symbol="igate" overlay=R

IGTXLIMIT 6 10

GPSD localhost

 


--
J Spitznagel
Science River LLC
KD4IZ