SDR (Software Defined Radio) Transceiver

Have an idea? Post it here! - Looking for developers? Ask here as well!
Post Reply
pavel
Posts: 790
Joined: Sat May 23, 2015 5:22 pm

Re: multiband WSPR receiver

Post by pavel » Tue Sep 13, 2016 6:38 am

DVE wrote: Is it possible to install wspr transceiver to the existing OS?
Yes, it's possible. You can find some useful instructions at the following links:

https://github.com/pavel-demin/red-pita ... -210410340
https://github.com/pavel-demin/red-pita ... -221059305

DVE
Posts: 18
Joined: Tue Sep 06, 2016 7:48 pm

Re: SDR (Software Defined Radio) Transceiver

Post by DVE » Tue Sep 13, 2016 7:18 pm

Thanks. I tried some hints from that thread, but no success yet.

What I did.

0) Run command
apt-get -y install openssh-server ca-certificates ntp ntpdate fake-hwclock \
usbutils psmisc lsof parted curl vim wpasupplicant hostapd isc-dhcp-server \
iw firmware-realtek firmware-ralink firmware-atheros firmware-brcm80211 \
build-essential subversion libfftw3-dev libconfig-dev parallel ifplugd ntfs-3g

1) Created a folder /tmp/1

2) Copy files from "sdr_transceiver_wspr" folder to "1"

3) Run in "1" folder:
svn co svn://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx/lib/wsprd
make -C wsprd CFLAGS='-O3 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard -ffast-math -fsingle-precision-constant -mvectorize-with-neon-quad' wsprd
make

4) Compilation was successful, no errors, "transmit-wspr-message" appears

5) Copy "sdr_transceiver_wspr.bit" to the same folder using scp

6) Create "wspr_start.sh":
devcfg=/sys/devices/soc0/amba/f8007000.devcfg
test -d $devcfg/fclk/fclk0 || echo fclk0 > $devcfg/fclk_export
echo 1 > $devcfg/fclk/fclk0/enable
echo 143000000 > $devcfg/fclk/fclk0/set_rate
cat sdr_transceiver_wspr.bit > /dev/xdevcfg

7) I did'n play with cron yet, just want to see the transmittion, so I launched "wspr_start" and than "./transmit-wspr-message /tmp/1/transmit-wspr-message.cfg"

Result: very clear message "Bus error".
What I'm doing wrong?

Thanks.

pavel
Posts: 790
Joined: Sat May 23, 2015 5:22 pm

Re: SDR (Software Defined Radio) Transceiver

Post by pavel » Tue Sep 13, 2016 10:59 pm

DVE wrote: 5) Copy "sdr_transceiver_wspr.bit" to the same folder using scp
How do you obtain sdr_transceiver_wspr.bit? If you use the one linked from the github issue, then I'm afraid that it's quite outdated.

I've just rebuilt sdr_transceiver_wspr.bit from the latest version of the FPGA code and tested it with the latest version of the C code. It works. This up-to-date sdr_transceiver_wspr.bit can be downloaded from this link.

DVE
Posts: 18
Joined: Tue Sep 06, 2016 7:48 pm

Re: SDR (Software Defined Radio) Transceiver

Post by DVE » Tue Sep 13, 2016 11:19 pm

Its much better, thanks. I replaced the file, and it now works. You should think about the continuous integration, btw :D

One small issue: ./transmit-wspr-message now works, but only from the second start. I run the app, nothing happens, I run the second time, and transmittion starting.

pavel
Posts: 790
Joined: Sat May 23, 2015 5:22 pm

Re: SDR (Software Defined Radio) Transceiver

Post by pavel » Tue Sep 13, 2016 11:46 pm

DVE wrote: One small issue: ./transmit-wspr-message now works, but only from the second start. I run the app, nothing happens, I run the second time, and transmittion starting.
I've also noticed this problem but I don't know how to fix it.

pavel
Posts: 790
Joined: Sat May 23, 2015 5:22 pm

Re: SDR (Software Defined Radio) Transceiver

Post by pavel » Tue Sep 13, 2016 11:57 pm

DVE wrote:You should think about the continuous integration, btw :D
I've just checked the prices for the continuous integration services and I'm afraid that it's too expensive for my hobby.

For information. The building time per project is about 30-50 minutes.

DVE
Posts: 18
Joined: Tue Sep 06, 2016 7:48 pm

Re: SDR (Software Defined Radio) Transceiver

Post by DVE » Wed Sep 14, 2016 1:00 am

pavel wrote:
DVE wrote:You should think about the continuous integration, btw :D
I've just checked the prices for the continuous integration services and I'm afraid that it's too expensive for my hobby.
You can do it yourself - just dedicate a computer that will pullthe project from git, build all releases and upload them. Than, preparing the new release will take you a minute, all other stuff will do automatically.

About transmit-wspr-message, it works, thanks.
I created this python script to start it every 4 minutes, instead of cron:

Code: Select all

import time
import datetime
from time import sleep
import os;

if __name__ == '__main__':
  print "Started:"
  
  while True:
    try:
      while True:
        now = datetime.datetime.now()
        print now.year, now.month, now.day, now.hour, now.minute, now.second
        sleep(0.1)
        if now.minute % 2 == 1 and now.second == 59:
          break

      sleep(0.5)
      os.system("/root/Documents/sdr_transceiver_wspr/./transmit-wspr-message /root/Documents/sdr_transceiver_wspr/transmit-wspr-message.cfg")

      sleep(140.0) # Here the time delay can be tuned
    except KeyboardInterrupt:
      break

  print "Exit"
But... The signal quality, how to say..., not perfect.
wspr_rp2.png
You do not have the required permissions to view the files attached to this post.
Last edited by DVE on Wed Sep 14, 2016 7:37 am, edited 1 time in total.

pavel
Posts: 790
Joined: Sat May 23, 2015 5:22 pm

Re: SDR (Software Defined Radio) Transceiver

Post by pavel » Wed Sep 14, 2016 7:17 am

DVE wrote:
pavel wrote:
DVE wrote:You should think about the continuous integration, btw :D
I've just checked the prices for the continuous integration services and I'm afraid that it's too expensive for my hobby.
You can do it yourself - just dedicate a computer that will pull the project from git, build all releases and upload them.
I like the word 'just' in this phrase.

If it's so trivial for you, then please don't hesitate to contribute your computing resources, scripts and instructions. Your contribution will be greatly appreciated.

pavel
Posts: 790
Joined: Sat May 23, 2015 5:22 pm

Re: SDR (Software Defined Radio) Transceiver

Post by pavel » Sun Oct 02, 2016 10:44 pm

A new version (0.94-1336) of the Red Pitaya SDR application compatible with HPSDR is ready. I uploaded it to the Red Pitaya application marketplace and updated the customized SD card image available from the following link:

http://pavel-demin.github.io/red-pitaya ... iver-hpsdr

This new version includes the following improvements:
  • audio playback/capture and CW sidetone generation via the WM8731 and TLV320AIC23B I2S audio codecs
  • possibility to use the slow analog inputs for the forward (Analog input 0) and reverse (Analog input 1) transmit power measurement
  • code for controlling AD8331 VGA with MCP4725 DAC (thanks to DC2PD)
  • code for controlling ICOM IC-735 low-pass filters (thanks to DL9LJ)

jmfr
Posts: 19
Joined: Mon Nov 16, 2015 2:00 pm

Re: SDR (Software Defined Radio) Transceiver

Post by jmfr » Tue Oct 04, 2016 12:35 am

Hi Pavel,

thank you for this new features !

[*]audio playback/capture and CW sidetone generation via the WM8731 and TLV320AIC23B I2S audio codecs
the audio codec chip and ADC PWR/SWR will be very welcome ...


[*]possibility to use the slow analog inputs for the forward (Analog input 0) and reverse (Analog input 1) transmit power measurement
already made a simple test and the ADC works OK with powersdr and even with pihpsdr ...


[*]code for controlling AD8331 VGA with MCP4725 DAC (thanks to DC2PD)
this one I can't remember what is about, will have to check later or do you have any more information (links)


thank you,

Jacinto
cu2ed

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 14 guests