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)

I added some hardware extensions in version 0.7. Also read the article at Link below.


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
  10. Hi Ian,
    I just downloaded the DVPi 0.79 and found a couple errors.
    1) The Pi image complains of 'host not found' - I added dvpi = 127.0.0.1 to /etc/hosts
    2) The dvpimanager is writing the repeater ID into MMDVM_Bridge instead of the user ID

    I fixed both manually and now it seems to run OK.
    I think the DSP button is not working so nice as the audio is a little distorted compared to before??

    Great work and thanks to you.

    Nigel G4ZAL

    ReplyDelete
  11. Hi Ian, Not sure what has gone wrong my end (me obviously) I downloaded DVPi 0.79 installed ok install DVswitch using your DVPi Manager then setup all my details (great tool)
    and all seems to work fine, Callsign is populated and talk group on sceen, But absolutley now traffic I get the green wifi signal as if trafic is happening but nothing, turned on the voice prompts thats ok so sound is working any idea's how I may be able to get this to works would be greatly appreciated de VK6NJP

    ReplyDelete
    Replies
    1. James,
      As my post above, I had the same until I corrected my DMR ID in MMDVR_Bridge.ini

      Are you OK with Linux command line? Maybe PuTTY to your Pi...
      cd /opt/MMDVM_Bridge
      sudo nano MMDVM_Bridge.ini
      Correct your DMR ID (remove the extra digit at the end), and CTRL-X, Yes to save, reboot

      Nigel

      Delete
    2. Nigel tank you so much I will try that now and let you know. James

      Delete
    3. Congratulations on solving it.

      If you have a similar problem, please see the comments in the post below.
      http://www.hamskey.com/2020/08/release-dvpi-07-1installing-on-micro-sd.html

      Ian KD8CEC

      Delete
  12. Nigel, No that did not work same problem even after editing as you suggested and adding
    dvpi = 127.0.0.1 to /etc/hosts, I have done something else wrong just need to try starting again perhaps, Thank you again.

    James

    ReplyDelete
    Replies
    1. I saw a comment written on this post late.
      Ian KD8CEC

      Delete
  13. Good evening, I am stuck again, I need to have some information on the configuration on the DVPi V.0.7, I cannot understand if you connected to the BM-2222-Italy the IP address is correct because the one in the list is not correct and 82.211. 95.98, I also entered the password that I use to connect to my Hotspot.
    Maurizio

    ReplyDelete
  14. Free slot casinos usually supply all their video games with demo and paid versions. If you determine 1xbet to stake some money, it’s also a good idea to see if they have some good jackpot slots to check out|to take a glance at}. Bovada is primarily identified for its superb sports betting part; the casino lacks a variety in comparison with} other slots sites dedicated solely to casino games.

    ReplyDelete
  15. I am always reading your blog and I am number one fan of this site. Thank you for posting. Our Site

    ReplyDelete

Post a Comment

Popular posts from this blog

Introduction to UV-K5 HF Fullband receive version 0.3

Introduction to UV-K5 HF Fullband receive Version 0.3 This is an introduction to UV-K5 HF full-band reception firmware 0.3HF using SI4732-A10. This version is released separately from the existing UV-K5 CEC firmware version. because space is needed to store a large PATCH file to use SI4732-A10's SSB. 0.3HF added several functions to use SSB for shortwave radio and amateur radio.

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.

Introducing UV-K5 Version 0.1P (CW)

  Introducing UV-K5 Version 0.1P (CW Mode) CW-related functions have been added to version 0.1P. The spectrum function has been removed but is maintained in the source code. Later, when the source code is distributed, you can activate it and use it if necessary. This version is for testing purposes only. It will be redistributed as the stable version 0.2 in approximately 1-2 weeks. If you don't want to beta test, you can wait a week or two and download 0.2