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 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.
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.
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.
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.
In the dvpi.ini file, swap the values of items A and B
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.
Example)
GPIO_ENCA=25
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
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??
ReplyDeletethanks mate...
wow 5" Excellent
DeleteI made it based on 3.5". i have not 5"
If you test after Version 1.0, I'll adjust the screen size.
Ian
i would be interested in the dvswitch built in the software if it is possible thanks mate....
ReplyDeleteI created a script to easily configure DVSwitch in DVPi today. I will include that script in Version 0.7 (it's just plan)
DeleteIt aims to complete all installation and setup with 5 commands in putty (ssh)
Ian
Hello Ian Lee!
ReplyDeleteVery 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
Tony.
DeleteI'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
Hi Ian!
DeleteYou 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
Thanks for your testing
DeleteI 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
Hello Ian!
DeleteThank 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?
Adjust the 'capture device - Press F5, then Appear this Menu' (Not a Mic volume) level using the terminal.
DeleteI posted a new post a few days ago.
If you have a computer headset, use it to test it.
Hello Ian,
ReplyDeleteI 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
Please wait some days.
DeleteI 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
Hi Ian,
DeleteOK, 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
This comment has been removed by the author.
ReplyDeleteyou need to have dvswitch server installed... 73's F5SWB
DeleteThis comment has been removed by the author.
DeleteGreat JOB !!!! tnx ...73 de Paolo IW3GPO Venice Isl.
ReplyDeleteThank you Paolo
DeleteI preparing for Version 0.7.
Ian KD8CEC
I'm looking forward to version 0.7. I wonder if you are still testing it. Thank you all the time.
ReplyDeleteVersion 0.7 adds several experimental features.
DeleteOf 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
Good morning all! Here is my own version of standalone DVPi ...
ReplyDelete- 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)
It's Perfect
DeleteThanks for testing.
Is the touch screen HDMI type?
DeleteIf 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
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.
ReplyDeleteJames
Hi Ian,
ReplyDeleteI 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
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)
ReplyDeleteand 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
James,
DeleteAs 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
Nigel tank you so much I will try that now and let you know. James
DeleteCongratulations on solving it.
DeleteIf 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
Nigel, No that did not work same problem even after editing as you suggested and adding
ReplyDeletedvpi = 127.0.0.1 to /etc/hosts, I have done something else wrong just need to try starting again perhaps, Thank you again.
James
I saw a comment written on this post late.
DeleteIan KD8CEC
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.
ReplyDeleteMaurizio
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.
ReplyDeleteI am always reading your blog and I am number one fan of this site. Thank you for posting. Our Site
ReplyDelete