Skip to main content

Creating Network Transceiver using DVSwitch #3.Encoder and PTT installation (and Release Version 0.5)

Creating Network Transceiver using DVSwitch #3.Encoder and PTT installation 

(DVPi Version 0.5 released and Rotary encoder, PTT installed)

This post describes the additions made in Version 0.5 and the encoder and PTT installation.


1.Installation and basic settings
2.How to use 
3.Rotary encoder, PTT installation
4.Advanced usage
5.Built-in DVSwitch (I will write this only when there is someone who wants it)
--------------------------------------------------

1.Release Version 0.5
 1.1 About Image File
  You just download the file and put it on your SD card. 
  Information about dvpi Image file:
  id : pi
  password : dvpi
  enabled service : ssh, vnc, rdp enabled
  network : dhcp  (If you want to set a static IP or Wifi, you can find the setting method on the Internet.)
  timezone : default (utc) - There is a setting method in the previous post.
  sound card : You must use a USB sound card ($1 ~ $ 3)
                   (The sound card built into the RPI cannot be used)

  default audio output volume : 100% (Adjust the volume using a variable resistor)
  default audio input volume : 30% (Adjust the volume using a variable resistor)
   After installing or replacing a new microphone, you can set it up through the alsamixer command.
   How to use the alsamixer command will be explained in this document.

  1.2 Download Image file               
   https://github.com/phdlee/dvpi/releases/tag/v0.5
   Installation instructions are detailed in previous posts. (1.Installation and basic settings)
   You just download the file and put it on your SD card.

   1.3 Changed in Version 0.5
       I will post a separate post for the added features that require detailed explanation.
       (DSP, Send Log ...)

     - Talk group change function from the keypad screen to the encoder

     - The DSP function was simply modified for speed, etc.
     - DSP to use only interpolation and LPF
     - Added LPF_GAIN setting for volume increase when using LPF function
        Increasing this number makes the sound louder when using the DSP function. However, if it is too loud, the sound may be distorted.

     - By default, the DSP function is disabled.

       When executed, it should look like this 

        If you are using the DSP function, touch the DSP button.

        If you want to activate DSP function automatically when DVPi is executed, edit dvpi.ini file as below.



     - Change font on call sign panel (to distinguish I, J, 1, etc.)

     - Reserved settings for FUNC1, FUNC2, and FUNC3 extension keys (this is not used, it is only a reserve)

     - Log record transmission function (using the format used by wsjt-x)
        I know that I am not using LOG because it is DMR communication. Just applied what I made for my next project.It would be nice to use it for net control or memo.
        (This will be explained in a separate post)

     - The icons in the Configuration window have been rearranged.
     - UserDB update function
       Just Click the 'Update UserDB' Button in Configuration Window.

        Then, Download user database from 'https://database.radioid.net/database/dumps'
        and replace user.csv in DVPi


     - Added * and # alphabets to the keypad window.
       

     - Fixed some bugs



2.Encoder and PTT Installation
You can operate the DV mode more conveniently with a resistor and a rotary encoder.

Anyone who doesn't change Talk Group often can put a PTT switch with just one resistor.

 2.1 Install PTT only
   Soldering is required to connect 3.3 volts at the RPI. This is because the GPIO pin cannot be used because the LCD is connected.
When soldering to the board, be sure to turn off the power.

  I installed PTT as below.
The Push-type PTT switch was connected to the Handy Microphone's PTT. Also, a toggle switch was additionally attached to the transceiver for more convenience.


 2.2 Installing the rotary encoder
 For this function, a rotary encoder and 3 resistors are required.
 Just connect as below.


Below is the rotary encoder I use. It is a rotary encoder generally used by Arduino.


I did the following, but if you want to do it easily, you can apply a resistor directly to the rotary encoder.

 2.3 Settings for PTT and encoder use
 You need to enable PTT and encoder use in the dvpi.ini file.
 Don't worry, it's very simple. Just activate it.

 - Turn off DVPi and remove SDCard.
 - Insert the SD card into your computer.

 - Change both'USE_ENCODER' and'USE_PTT' to TRUE in the dvpi.ini file.
    USE_ENCODER=TRUE
    USE_PTT=TRUE

(before change)

(After Changed)

Your PTT and rotary encoder will now work. See the video below.


 2.4 If the rotary encoder works in reverse
  If your rotary encoder works, don't read this.

If the rotation of the rotary encoder works in reverse, there are two solutions.
Use the method you are comfortable with.

 - First solution.  I recommend this method. (Simple)
   Swap the wires connected to the rotary encoder
   I can't draw well, but I tried it once.  Just swap the lines on both sides of the three connected as shown below.
   
  

 - Second solution.  I used this method because I already have a rotary encoder and RPI in the case.
  In the dvpi.ini file, swap the values ​​of items A and B
  Example)
  GPIO_ENCA=25
  GPIO_ENCB=24


 2.4 How to use a rotary encoder
  Turning the encoder moves the TG list displayed at the bottom of the screen.
  The TG list can be changed by clicking the blue button on the bottom right. Also, how to create and use the TG list was explained in a previous post.

When turning the encoder, the description of the selected TG is displayed at the bottom left. If you press the rotary encoder, it changes to the displayed TG.


(After push)

If the TG description window is displayed, pressing the PTT switch will switch to the displayed TG.

Even if the TG description window disappears, the TG selected using the rotary encoder remains. In the screen below, '91' is the current TG and '204' is the TG selected as the rotary encoder.

In this state, if you press the rotary encoder, it will switch to TG'204'.



Thanks for reading the long article.
KD8CEC Ian



Comments

  1. HI Lee ...... I built the proyect with a 5 inch display works fine but your image is inside the 5 inches 60% displayed the rest of the image in background is the Raspi Image. Is there a way to expand your image?? to 5 inches??
    thanks mate...

    ReplyDelete
    Replies
    1. wow 5" Excellent
      I made it based on 3.5". i have not 5"
      If you test after Version 1.0, I'll adjust the screen size.
      Ian

      Delete
  2. i would be interested in the dvswitch built in the software if it is possible thanks mate....

    ReplyDelete
    Replies
    1. I created a script to easily configure DVSwitch in DVPi today. I will include that script in Version 0.7 (it's just plan)

      It aims to complete all installation and setup with 5 commands in putty (ssh)
      Ian

      Delete
  3. Hello Ian Lee!
    Very fine job and congratulations!
    Version 0.4 then version 0.5 tested here in France (Normandy) with steps 1, 2 and 3 (I'm waiting for the rotary encoder).

    Test equipment:
    - Raspberry Pi Model B v. 1.2
    - Touch screen 7 "
    - External SSD 120GB
    - Condenser microphone
    - Headphones then 3W amplifier and speaker.

    I look forward to integrating DVSwitch into the application ;-)

    Best 73 from F6CYK / Tony

    ReplyDelete
    Replies
    1. Tony.
      I've heard from people who want to make DVPi a complete standalone type. (Including you)
      When the DVSwitch was fully installed on the RPI 2B+, it was confirmed that the CPU usage rate during DMR communication did not exceed 12%.

      Please wait a little.
      KD8CEC Ian

      Delete
    2. Hi Ian!
      You have already done a great job! There is no rush for me :-)
      Otherwise, do you have a tip to decrease the treble and reinforce the bass in audio input?
      Best 73 from F6CYK / Tony

      Delete
    3. Thanks for your testing
      I was writing about DVPi volume tuning. i will post in a few hours.
      If you want to set it up before I post, use alsamixer by connecting to RPI with putty.
      alsamixer [Enter]
      Press F5
      Press F6 -> Select USB Sound Card by Keyboard Cursor, then Enter
      Select capture (mic)
      Press Down Key on Your keyboard and Testing

      I am writing about this right now.

      KD8CEC Ian

      Delete
    4. Hello Ian!
      Thank you for your answer. I had adjusted the levels well using Terminal (I use a Mac) and there is no problem there for me.
      On the other hand, the audio input favors the treble a lot to the detriment of the bass and my modulation seems "torn" on "sssss" sounds. I specify that the quality of the microphone is not in question, I use it without problems with other applications.
      Is it a question of sampling? An idea?

      Delete
    5. Adjust the 'capture device - Press F5, then Appear this Menu' (Not a Mic volume) level using the terminal.
      I posted a new post a few days ago.
      If you have a computer headset, use it to test it.

      Delete
  4. Hello Ian,
    I for one would really appreciate an image with a working DVSwitch and DVPi as an 'all-in-one' package (maybe just need to enter one's own callsign/ID etc).
    I have tried and cannot get it to work with DVSwitch plus if I do an apt update -> apt upgrade on your image, it screws the screen and I end up with a blank/white LCD display.

    I'm just frustrated by it now ;-)

    73
    Nigel G4ZAL

    ReplyDelete
    Replies
    1. Please wait some days.
      I did some tests for DVSwitch Builtin.

      Even though it was installed and built in the way guided by the DVSwitch Group, it was confirmed that the CPU usage rate is about 10% when communicating.
      Several builtin related videos will be uploaded and Version 0.7 will be released within 1-2 weeks.
      I need to add some features to DVPi for DVSwitch Builtin.

      Ian KD8CEC



      Delete
    2. Hi Ian,

      OK, I figured my mistake and have it running now (RX only as need to make interface etc for TX).
      Will try to get that done in the next few days.

      BTW, when I first saw your posts about 'Network Transceiver' I thought it might be for something like the Hermes-Lite2 SDR transceiver, which connects over ethernet (I have one) and is open source and works like an Anan/Flex and has the potential to connect over the internet and run it from a remote location - or even just at the bottom of your garden!
      www.hermeslite.com

      Looking forward to your next release of software for DVPi ...

      Nigel G4ZAL

      Delete
  5. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. you need to have dvswitch server installed... 73's F5SWB

      Delete
    2. This comment has been removed by the author.

      Delete
  6. Great JOB !!!! tnx ...73 de Paolo IW3GPO Venice Isl.

    ReplyDelete
    Replies
    1. Thank you Paolo
      I preparing for Version 0.7.
      Ian KD8CEC

      Delete
  7. I'm looking forward to version 0.7. I wonder if you are still testing it. Thank you all the time.

    ReplyDelete
    Replies
    1. Version 0.7 adds several experimental features.
      Of course, it will also include features for Standalone.

      Version 0.7 will be a beta version for Version 1.0.
      Test if you can.

      Thank you, Ian KD8CEC

      Delete
  8. Good morning all! Here is my own version of standalone DVPi ...
    - Raspberry Pi Model B v. 1.2
    - Official Touch Screen 7 "
    - External SSD 120GB
    - Condenser microphone
    - Headphones then 3W amplifier and speaker.
    - RVPi V. 0.5
    - DVSwitch menu F1PTL http://inforadio.free.fr/DVSWITCH/installation/tutoriel/Menu_V1.2.tar
    - Adjustment of the various variables for proper operation
    Result: https://www.youtube.com/watch?v=JMt--bHFE50

    Best 73 from F6CYK / Tony (France)

    ReplyDelete
    Replies
    1. It's Perfect
      Thanks for testing.

      Delete
    2. Is the touch screen HDMI type?
      If so, are you using it by switching to HDMI mode?

      I also bought a 7" LCD for my next project, I haven't used it yet.
      It's not a DMR-related project, but if I have time, I'm going to make something interesting.

      Ian, KD8CEC

      Delete
  9. Hi Ian, After installing DVPi Version 0.5 and DVSwitch on the Rasperry Pi can you tell me which file to edit for my CallSign info please.

    James

    ReplyDelete

Post a Comment

Popular posts from this blog

Release CEC Firmware v1.200 for uBITX All version(include V2, V3, V4, V5)

Release CEC Firmware v1.200 for uBITX All Version (include v2, v3, v4, v5) I did the firmware work for v5 when uBITX V5 was released, but I release it now.
I received the feedback from a thankful beta tester and tested it myself by converting my uBITX v3 to v5 but I was not sure.

I ordered the uBITX V5 and delivered the correct uBITX V5, so I made a little more fine-tuning.
If you use V2, V3, V4, you do not need to update this firmware.

uBITX with Nextion LCD (CEC Firmware) - Installation and Introduction

uBITX with Nextion LCD (CEC Firmware) - Installation and Introduction uBITX CEC Firmware supports various LCD since Version 1.08 (16x02 Parallel, 20x04 Parallel, 16x02  I2C, 20x04 I2C, 16x02 Dual LCD with I2C).
Supports Nextion LCD (Graphic LCD) from Version 1.09, Version 1.09x is primarily aimed at Nextion LCD support. Also 1.09x will continue to be Beta version. If you want a stable version, please use 1.08 or 1.1 version to be released in the future.

Release EU1KY AA Firmware CEC Version 1.01 and 1.0a

Release EU1KY AA Firmware CEC Version 1.01 and 1.0a
It is the stabilized final version of EU1KY AA. Updates starting with Version 0.1 continue to add features. Please refer to the link below for added features.

I have separated the Version to 1.01 and 1.0A for users who want to use AA only for instrumentation purposes.

*  If you want to use all the features added up to Version 0.71, please use Version 1.0A.
*  If you want to use it only for instrument use, please use Version 1.01



Version V1.0A


Version V1.01



1.Download Firmware Version 1.01 and 1.0a
https://github.com/phdlee/antennaanalyzer/releases
Version 1.01 (Version with only antenna analyzer function) https://github.com/phdlee/antennaanalyzer/releases/download/v1.01/AA_CEC_V1.01.zip
Version 1.0A (Version with all features added up to Version 0.71) https://github.com/phdlee/antennaanalyzer/releases/download/v1.01/AA_CEC_V1.0A.zip
ConvertRXP (Converters for using AA measurement data in other tools such as Matlab) https://github.com/phd…