Anytone AT-D878UV analog APRS TX not working

Anytone AT-D878UV analog APRS transmissions not working

My analog APRS transmissions with the AT-D878UV was not received by any other stations. The problem was that when the codeplug is created (using New in the CPS), the values for Transmit delay and Prewave Time is set to 0 (zero) for APRS and this will not work (probably to battery saving as this is not a problem with the AT-D578UV for example, which will work with much lower values for Transmit Delay and Prewave Time).

Solution:

In the CPS -> APRS -> set Transmit Delay to 600 ms and Prewave time to 600 ms.

Anytone AT-D878UV analog APRS TX not working
Anytone AT-D878UV analog APRS TX not working – solution

Source: https://www.reddit.com/r/AnyTone/comments/han0y5/aprs_problems_the_solution_anytone_atd878uv/

Ana Aprs Tx should be set to “Narrow” according to IARU region 1 bandplan.

What is Transmit Delay and Prewave Time?

I’ve tried to find an explanation to these values online but haven’t found anything closer than “it controls the time after activating the transmitter until data is being sent”. So I tried setting each value, one at a time to it’s maximum and this is what I think it does:

  • Transmit Delay: The radio starts transmitting a packet but it sounds like it waits “Transmit Delay” milliseconds before it starts transmitting any valuebla data. During this time my guess it is filling the packet with zeroes.
  • Prewave Time: The radio pulls the PTT but waits “Prewave Time” milliseconds before it starts to send the packet. During this time, the radio just sends carrier.

If I set the Prewave Time too high, my receiver will not receive and decode the packet. I’ve experimented with values for Prewave Time with different values and between 80-600 ms it seems to be working.

TigerTronics TigerTrak TM-1 configuration under Windows 10

This little APRS-tracker from the late 90’s or early 00’s is a neat little device, however pretty old. It uses an external GPS receiver (via RS232) and connects to a radio, like a HT for example.

According to the manual, the configuration utility runs under Windows 95 or 98 (yes, indeed old stuff). I have a TM-1 lying in a box collecting dust so I figured that I should fire it up and see if I could use it for something fun (today APRS is gaining some attention again since many new radios has analog APRS rx and tx build in, like the Anytones).

It turned out that it worked fine under Windows 10. I used an USB to RS232 adapter. In the device manager, find the COMx-port adapter, under Properties -> Port -> Advanced, I had to select COM1 to COM4 since the old software just supports these ports.

I installed it and right clicked on the program file for the TigerTrak configuration utility and selected Compatibility -> Win 95 (not shure if this is needed but I did it anyway).

To connect the TM-1 to the configuration utility, first start the utility. With the TM-1 connected to the serial port (straight cable), power it on while holding PWR and MODE simultaneusly. The software should indicate CONNECTED and the LOCK led on the TM-1 should go green.

As special path 1 i used WIDE1-1 and special path 2 WIDE2-2. This will cause packets received by a WIDE digitpeater to repeated two hops. If that is overkill (like in an urban area with many digipeaters) you could use WIDE2-1 to limit it to one WIDE hop instead.

Nowadays there is a specific TOCALL for TigerTrak units: APTIGR

HP Proliant “Hardware RAID support is disabled via NVRAM Configuration Setting”

I got my hands on a used HP Proliant server with P420i raid controller, however was unable to create a logical raid drive using the ACU. A message while booting shows “Hardware RAID support is disabled via NVRAM Configuration Setting“. It turns out the raid had been disabled by enabling hba mode.

This can be solved but it is a bit tricky. I used information from the following sources:

https://systemausfall.org/wikis/howto/Disable%20HP%20Proliant%20Hardware-RAID

http://downloads.linux.hpe.com/SDR/project/mcp/

https://wiki.debian.org/HP/ProLiant#HP_Repository

https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/

  1. Connect one of the network ports to a switch on a LAN where you have a DHCP server and and Internet connection (so you don’t have to fiddle with manual network configuration).
  2. From another computer, download Debian Live ISO. I used the “standard” version (link above).
  3. Boot the server on Debian Live either by making a bootable stick or mounting it via ILO (I had to use Firefox, in Chrome the ISO was unmounted mid process)
  4. When booted on the Debian Live do:
    sudo nano /etc/apt/sources.list
  5. Add the line to the file and save it (CTRL-X):
    deb http://downloads.linux.hpe.com/SDR/repo/mcp jessie/current non-free
  6. Add the keys for the repository:
    sudo curl http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub | apt-key add -
    sudo curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | apt-key add -
    sudo curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
    sudo curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | apt-key add -
  7. Install ssacli:
    apt-get install ssacli
  8. Check the status (you will se hbamode true somewhere):
    ssacli controller slot=0 show
  9. Disable hbamode:
    ssacli controller slot=0 modify hbamode=off
  10. Now reboot the server, remove the USB stick or ISO using ILO and press F5 during boot to start the ACU. Now you should be able to create a logical raid drive.

Joomla 3 You can’t remove your own Super User permissions [solved]

On a Joomla! 3 site I got the error “You can’t remove your own Super User permissions.” when trying to save global configuration.

It turned out some previous admin had set the file permissions on this file so the system wasn’t allowed to write to it. I set rw permissions to it using FTP connection to the server and the problem was solved.

U

apache2 randomly uses old self signed certificate

On a site with a valid SSL certificate, sometimes a page load would result in a warning about being insecure. When inspecting the certificate, it turned out to be an old self signed certificate that shouldn’t be in use any more since the site now has a valid “real” SSL certificate.

Reloading the page a couple of times after the problem occured, and the site loaded again with a green SSL “lock” symbol. But randomly the problem kept occuring.

Even after deleting the old self signed certificate files from the server and restarting apache2, the problem remaind.

It turned out that neither systemctl restart apache2, service apache2 restart or apachectl stop / start killed all running processes.

To verify this I did apachectl stop and then ps ax | grep apache2 revealing there where still running processes. After killing each of them manually I started apache2 again and the problem was resolved.

Ispconfig not processing job queue – spamfilter_policy error

Suddenly some of my slave servers stopped processing the job queue. Ispconfig version 3.2.9. Investigating the log files.

/var/log/ispconfig/cron.log shows:

PHP Fatal error:  Uncaught mysqli_sql_exception: Data truncated for column 'warnvirusrecip' at row 1 in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php:302

See this discussion: https://forum.howtoforge.com/threads/uncaught-mysqli_sql_exception-data-truncated-for-column-warnvirusrecip-at-row-1.90116/

This is how I solved it. On the master server:

mysqldump -uroot -p --add-drop-table dbispconfig spamfilter_policy > spamfilter_policy.sql

Then copy the spamfilter_policy.sql to each slave server having problems processing the queue and do:

mysql -uroot -p dbispconfig < spamfilter_policy.sql

Teltonika RUT-240 / RUT-950 poor wifi client performance (fix!)

I use a couple of Teltonika RUT-240 and RUT-950 routers. One of them I bring with me when I travel. To save 4G data I usually hook it up as a wifi client against the hotel wifi.

After a while I realized the performance was really poor with a lot of packet loss and loosing connection completely from time to time. I moved the router so the signal was good (about 90%) but still had problems.

When configuring the wifi client failover, I set interval to 60, track ip to three different adresses (8.8.8.8, 8.8.4.4 and 1.1.1.1), reliabilty 1, count 10, up 3, down 3. This is to make sure that there is time enough to click through the hotel’s wifi portal page (before that you don’t have internet connectivity and ping will fail).

When I scan for a new network, I look for the access point with the strongest signal and copy the BSSID (8 hex numbers separated with colon). In hotels there are often several access points for the same network name and sometimes my router seems to be switch between them. In the wireless configuration screen I paste the BSSID in the BSSID field for the network I am connecting to, making sure I always connect to the strongest one.

While I’ve been travelling, I have been a bit lazy and just left different hotel’s wifi in the configured network list (I might return some day I thought). However, this seems to be bogging down the router. After I clearead the list of old wifi client configurations, my router became much faster and the connection was now really stable.

CloudLog gives ‘Access denied’

Checking to web server logs reveals:

Got error 'Access to the script '/var/www/XXX/web/logbook' has been denied (see security.limit_extensions)'

The URL of the logbook showed https://DOMAIN/index.php/logbook

Solution

Add the following to php.ini for the site:

cgi.fix_pathinfo=1

Joomla! breadcrumbs module caching problem

Joomla! breadcrumbs module caching problem

I’ve hade problems with the Joomla! breadcrumbs module being cached, so the wrong breadcrumb is being displayed. The problem is that the module is being cached. This has been reported as a bug and it has the status as being fixed. However, in an old Joomla! install, which is updated to the latest version, I still had this problem.

This is how I solved it.

  • In the breadcrumbs module, under the Advanced tab, set Caching to No caching and Cache Time to 0
  • In the Global settings, use Conservative caching (if Progressiv caching is used, I still had problems)

Zoneminder 1.37 no image – capturing but not analyzing

Zoneminder version 1.37.28. The installation had been running for years without problem but somehwere in the 1.37 version problems started to occur. Some cameras did not give visible streams in Zoneminder from time to time. Checking the cameras video directly, they where ok, so the problem was in Zoneminder. Some cameras was “capturing” but analyzing 0 fps.

In the log there was lines like:

Restarting capture daemon for 6 CAMERA NAME, no image since startup. Startup time was 1671521356 – now 1671521366 > 5

And mostly interesting:

You have set the max video packets in the queue to 100. The queue is full. Either Analysis is not keeping up or your camera’s keyframe interval 50 is larger than this setting.

The reason for this is that the buffer setting for Maximum Image Buffer size (frames) is too low compared to the key frame interval setting in the camera. The higher key frame interval (which means lower bandwidth) means Image Buffer Size must be higher, consuming more RAM. So what you save in bandwidth, you will pay in RAM. Key frame interval is how often the camera sends a full image and between them just the difference. More seldom (higher key frame interval) means lower bandwidth but you need a bigger buffer in the server.

I set my cameras to deliver 5 fps with a key frame interval of 5 as they are on a remote location (not where the server is) and all video is streamed over the Internet to the server.

I changed the options for each camera, Console -> click on source -> Buffers and change Image Buffer Size (frames) (in my case set it to 3) and Maximum Image Buffer Size (frames) (in my case I could actually decrease it from 100 to just 55 because I reduced the fps and decreased the key frame interval in the camera).

Observe how memory is used after this. You need to balance the buffer sizes the cameras fps and key frame interval

Still it did not completely solve the problem. Only after changing Options -> System -> WATCH_MAX_DELAY from 5 to 45 and restart Zoneminder, the system started to show images for all feeds. It seems like 5 seconds for the capture to start was to little so it keept restarting the capture processes.

/tmp

As a part of the investigation I had also changed /tmp into tmpfs according to some post I found online, so I did that also but it did not solve the problem. However, it improved performance so I let it be. Add the following line to /etc/fstab and reboot:

tmpfs /tmp tmpfs rw,nosuid,nodev

Disable unused cameras

Another important thing when it comes to Zoneminder performance is to disable unused cameras. You can leave the camera in the Zoneminder configuration for later use but if it is going to be offline for a longer period, it is a good idea to disable it because a camera that is offline will put unecessary load on the Zoneminder server.

Go to Console -> click on source -> Source and set Capturing to None

Remember to put it back when the camera is online again 😉