Commit graph

2284 commits

Author SHA1 Message Date
SASANO Takayoshi
d7d83ff4d0 use findWithName() to display user information when netork voice transmission 2020-03-15 10:36:57 +09:00
SASANO Takayoshi
e036ac8be3 revise snprintf() format string to simplify display layout (all modes) 2020-03-12 21:48:21 +09:00
SASANO Takayoshi
cc62fb62b7 add NXDN user data display 2020-03-10 06:14:17 +09:00
SASANO Takayoshi
36414acc6a add UserDB-based NXDN display interface 2020-03-10 05:46:24 +09:00
SASANO Takayoshi
d2751897fb cosme 2020-03-10 05:26:45 +09:00
SASANO Takayoshi
f6b5036651 NXDNLookup now use UserDB 2020-03-09 22:23:55 +09:00
SASANO Takayoshi
136a148480 delete unused variable 2020-03-09 22:16:21 +09:00
SASANO Takayoshi
6febd661f6 add return value description of writeDMRIntEx() 2020-03-09 20:48:14 +09:00
SASANO Takayoshi
92a3441116 code cleanup: remove unneeded std::string() 2020-03-08 20:47:48 +09:00
SASANO Takayoshi
5bd54e97cb add writeDMRIntEx() to support UserDB display 2020-03-08 08:43:57 +09:00
SASANO Takayoshi
4ff77c50d6 use UserDBentry from findWithName() to writeDMR(), add writeDMREx() 2020-03-08 08:06:27 +09:00
SASANO Takayoshi
abf17e19fc get() goes const, add clear() 2020-03-08 07:55:08 +09:00
SASANO Takayoshi
b7f5fdd8a2 use class UserDB (user-info storage) 2020-03-07 16:52:11 +09:00
SASANO Takayoshi
9b15454f96 makeindex() needs clear old result, add index.clear() 2020-03-07 16:44:50 +09:00
SASANO Takayoshi
a2911fa5c3 avoid registing "" string to reduce memory consumption 2020-03-06 21:56:00 +09:00
SASANO Takayoshi
92d9973ace revise LogWarning message, and cosmetic changes 2020-03-05 19:26:02 +09:00
SASANO Takayoshi
8ff3913729 add user database storage
simply added UserDB* source code and modified Makefile.
others are untouched.
2020-03-05 06:35:14 +09:00
Jonathan Naylor
ab13f355d5 Add decode for Call Alert and Call Alert Ack CSBKs. 2020-03-02 12:10:44 +00:00
Jonathan Naylor
8d87037ee5
Merge pull request #558 from jg1uaa/master
TFTSurenoo: Simplify DMR status display
2020-02-29 12:15:32 +00:00
SASANO Takayoshi
0bc6bcdb26 Fix DMR status display for duplex mode
Previous change (simplyfy DMR status display) did not consider
DMR duplex mode.

Now DMR simplex mode uses 2-lines style, duplex mode 4-lines like this.

	Listening
	TS1
	N Callsign
	TS2 TGxx

For this change, statusLine() no longer have meaning.
It will be removed in the future.
2020-02-29 06:51:26 +09:00
SASANO Takayoshi
ead41ba9a5 Simplify DMR status display
Old DMR status display takes 4 lines i.e.:

	1 Listening
	(unused line here)
	2 N Callsign
	TGxx

To make room for display area for future development, DMR status display
are changed to 2-lines style like this:

	N Callsign
	TS2 TGxx

And, added three small changes:

	- use statusLine() macro to change layout easily
	- use two -> three colors
		yellow: radio mode (DMR, YSF, etc)
		cyan: main status (callsign, TG/Timeslot)
		dark green: additional information (D* reflector etc) *NEW*
	- rename statusLine_offset() -> statusLineOffset()
2020-02-28 04:53:14 +09:00
Jonathan Naylor
b0fe8dc607
Merge pull request #557 from jg1uaa/master
TFTSurenoo: stability fix (workaround for display is not cleared)
2020-02-25 22:44:56 +00:00
SASANO Takayoshi
a117d70c56 send CR+LF (command terminator) first at refreshDisplay()
Sometimes BOXF (box fill) command at refreshDisplay() fails.
Normally this is not occured, but running MMDVMHost for long time
(about one day) we see this problem.

The reason is unknown. But if LCD panel receives garbage character between
calling refreshDisplay(), first command (BOXF) at latter-called
refresDdisplay() will fail.

For workaround, send CR+LF command terminator first at this function.
2020-02-24 17:52:30 +09:00
Jonathan Naylor
2a9d90b7c7
Merge pull request #555 from jg1uaa/master
Lookup name on DMR network late entry (2)
2020-02-17 11:56:34 +00:00
SASANO Takayoshi
45013ac179 Lookup name on DMR network late entry (2)
There is two cases that shows "received network late entry"

1. dataType == DT_VOICE_PI_HEADER && m_netState != RS_NET_AUDIO
2. dataType == DT_VOICE_SYNC && m_netState == RS_NET_IDLE

case 1 is already treated. this fix is for case 2.
2020-02-17 19:57:47 +09:00
SASANO Takayoshi
b86bc820e8 Merge remote-tracking branch 'upstream/master' 2020-02-17 07:02:02 +09:00
Jonathan Naylor
4450caeddc Update the copyright date. 2020-02-16 15:56:31 +00:00
Jonathan Naylor
fa08abfded Lookup name on DMR network late entry. 2020-02-16 15:52:42 +00:00
Jonathan Naylor
8b172f1221
Merge pull request #551 from jg1uaa/master
improve refreshing display
2020-02-16 15:45:01 +00:00
SASANO Takayoshi
88304997d4 Merge remote-tracking branch 'upstream/master' 2020-02-15 07:55:36 +09:00
Jonathan Naylor
d70a124f47 Update files to VS2019. 2020-02-14 20:53:21 +00:00
SASANO Takayoshi
60e82737b9 improve refreshing display
Display space character with DCV command to clear screen, but this command is
very slow. I tested filling whole 160x128 area with 8x16 character by DCV16
command, it took 540msec.

This is the worst case, but display refresh period has extended to 600ms
for safety.

To clear screen, use BOXF command instead. And, reduced issuing DCV command.
2020-01-18 06:29:49 +09:00
Jonathan Naylor
95c1bbb8e6
Merge pull request #550 from f1rmb/OPENGD77_HS
Identify OpenGD77 hotspot.
2020-01-10 11:28:47 +00:00
Daniel Caujolle-Bert
5686942519
Identify OpenGD77 hotspot. 2020-01-08 10:58:41 +01:00
Jonathan Naylor
3fa72d853d Fix compilation warnings. 2019-12-27 17:26:46 +00:00
Jonathan Naylor
a0ec58539a Remove duplication of frames. 2019-12-15 22:22:47 +00:00
Jonathan Naylor
3b7452feda Update for VS2017 2019-12-15 22:20:03 +00:00
Jonathan Naylor
0e78fafa91
Merge pull request #543 from jg1uaa/master
Add Surenoo UART-TFT panel (1.8inch, 128x160) support.
2019-12-08 21:44:04 +00:00
SASANO Takayoshi
be6f59ba5f fix copyright header
Add coder's name.

This code is forked from TFTSerial.cpp and TFTSerial.h
so original author's credit is kept.
2019-12-09 06:38:21 +09:00
Jonathan Naylor
ce5a212bd3
Merge pull request #542 from shawnchain/fix_emb_fec
Fix DMREMB FEC decode bug
2019-12-07 16:18:42 +00:00
Shawn Chain
ab226cec27 change variable type to unsigned char 2019-12-07 23:25:57 +08:00
Shawn Chain
31408d4a33 Fix DMREMB fec decode bug 2019-12-07 15:47:43 +08:00
Jonathan Naylor
6713e0f52b
Merge pull request #540 from simonvik/patch-1
Add wiringpi as build dep when building the oled target.
2019-12-04 14:12:26 +00:00
Simon Vikström
1ba4879224
Update OLED.md
wiringpi is needed when building the OLED target.
2019-12-04 15:07:54 +01:00
SASANO Takayoshi
f3844ceae8 Add Surenoo UART-TFT panel (1.8inch, 128x160) support.
HobbyTronics TFT Shield has discontinued, here is a replacement TFT module
that can be controlled from UART.

Different from TFT Shield, it cannot display figures that stored in
micro SD card. So appearance is simplified like OLED.

Surenoo module sometimes ignores display commands (in busy stuation?),
this driver buffers display status and refresh at clockInt().
2019-12-01 16:33:19 +09:00
Jonathan Naylor
b29e1d0050
Merge pull request #536 from maierp/maier_p_dont_remove_ovcm
Don't remove OVCM bit. Only set it when configured.
2019-11-29 16:15:10 +00:00
Patrick Maier
9234dfcf6a Don't remove OVCM bit. Only set it when configured. 2019-11-23 11:11:53 +01:00
Jonathan Naylor
ed7f593e07 Remove the duplicate end of DMR transmission network message. 2019-11-20 08:13:26 +00:00
Jonathan Naylor
de88f09b68
Merge pull request #534 from shawnchain/fix_ovcm_config
Change ovcm config to int value
2019-11-19 07:53:18 +00:00
Shawn Chain
2ecd9b3440 fix OVCM enum logical check 2019-11-19 11:05:45 +08:00