travisgoodspeed / md380tools

Firmware patches for the TYT-MD380 handheld radio.
804 stars 244 forks source link

Add DMR IDs for Parrot etc. to users.csv #136

Closed phl0 closed 8 years ago

phl0 commented 8 years ago

The parrot function in the German Brandmeister net uses the DMR ID 262997 which is of course not contained in the user db on dmr.marc.net. Instead I would like to have it added by hand after downloading the DMR MARC db. Further work could include more echo and parrot TGs - probably beeing read from a file instead of inserting one after another. First part (yet to be tested) is here: https://github.com/phl0/md380tools/commit/9ed3b33f38f423bc1d9fe462b4eeba7ebe52fd10

travisgoodspeed commented 8 years ago

DMRMARC's parrot and other talkgroups could also be added, but I'd rather store those the additions in a file than add bunch of echoes to the Makefile.

phl0 commented 8 years ago

Sure I think that is the better idea. Maybe people could give some hints on further DMR IDs used for parrots to be added. The commit in my branch is the first try. I will change that to include a file to walk through before I put up a PR for this.

dg9vh commented 8 years ago

I think, it would be suitable to include also reflectornumbers, BrandMeister as also DMRplus because they are also announced as source when connecting to a reflector. Even 5000 as Status and 4000 as "not connected".

dg9vh commented 8 years ago

Sources for reflector-Databases to be parsed and converted into user.db see http://185.79.71.94/reflector.db for BrandMeister and http://ham-dmr.de/reflector.db for DMRplus-Network.

phl0 commented 8 years ago

@dg9vh Tnx will include that.

dg9vh commented 8 years ago

@phl0 take care of getting in conflict with names! It could be that DMRplus has some names for reflectors different than BrandMaster. Here I think (in fact to be more "international") we should overwrite those DMRplus-names with BrandMaster-Names.

phl0 commented 8 years ago

Hhhmm, I added 262997 as an example but it wouldn't show on the screen. Maybe the code is checking for DMR IDs to be at least 7 digits long?!

dg9vh commented 8 years ago

@phl0 You have to put the line into users.csv in db-directory and not into the data - file... I tried it my way with following entry in users.csv and it works:

262997,PARROT,PAPAGEI,,,,,DMR

phl0 commented 8 years ago

@dg9vh That is exactly what I did. Will try a clean flash of the FW.

dg9vh commented 8 years ago

@phl0 I putt it on top of the file (at first line)

phl0 commented 8 years ago

@dg9vh That made the trick. I understand that the DMR IDs are sorted. So we will have to align these special IDs with what comes from DMR MARC.

dg9vh commented 8 years ago

May the sort-command be with you, hi.

dg9vh commented 8 years ago

sort users.csv --field-separator=',' --key=1 > sortusers.csv

would solve our problem by sorting very quick ... Don't know if there is something similar in phython ...

phl0 commented 8 years ago

What is the source for this DB http://185.79.71.94/reflector.db for BrandMeister? I miss the TG26202 for example. Its a DMR->D-Star Bridge on XRF311 here. This is not contained...

dg9vh commented 8 years ago

Source is http://bm-dmr.de/cp/pages/reflector.php - official BM-Germany list for DV4mini-inclusion with DV4MF2-Control-Panel and DL5KV's DV4Mini_compact-Panel

If something is missing, please mail to Meinhard, DL2MF to pull corrections

dg9vh commented 8 years ago

@phl0 depending on http://wiki.bm262.de/doku.php?id=benutzerhandbuch#beschreibung_der_talk_groups I don't know if for TG26202 a such called "redirection reflector" for usage with DV4mini is established... what reflector-number is it?

phl0 commented 8 years ago

@dg9vh Tnx fer info. I mailed DL3OCK and DL2MF to ask about this issue. TG26202 is routed to D-Star Reflector XRF311 D. It does not have a DMR Reflector id from what I can see in the Wiki you mentioned.

dg9vh commented 8 years ago

@phl0 based on this I think it could also not be possible to get TG26202 as "source of transmission" - even if there is a transmission from D-Star-side I think those would have CCS7-IDs, right? If not, I don't know what on DMR-side would be transported as source-ID.

If in such cases a number would be transported that is not mentioned in one of our source-paths given above in the URLs we have to catch the cat and maintain our own list for that... :-1: Don't know, if this would be fun

phl0 commented 8 years ago

I will test this issue to know which DMR ID is shown when I transmit to the D-Star side.

dg9vh commented 8 years ago

@phl0 two tests would be nice: one callsign with CCS7-ID and one with a callsign without.

phl0 commented 8 years ago

@dg9vh will do

dg9vh commented 8 years ago

@phl0 How far are your experiments with the issue? Still any problems?

phl0 commented 8 years ago

@dg9vh Not had time yet, due to http://ballon.n18.de :-)

dg9vh commented 8 years ago

@phl0 Nice project :+1:

dg9vh commented 8 years ago

@phl0 If starting merging the lists into the database, please consider about following database containing talk-groups for dv4mini-usage. http://195.225.116.10/ts1.db

if you switch to a TG in TS1 via DV4mini the ControlPanel announces with source id out of the list above the TG switched to...

dg9vh commented 8 years ago

http://195.225.116.10/ts1.db is also ham-dmr.de/ts1db

phl0 commented 8 years ago

Got my MD380 back. Will go on with the work for this the other day.

travisgoodspeed commented 8 years ago

With the pull request for this issue, please be sure that:

Looking forward to closing this issue soon.

phl0 commented 8 years ago

I have conducted a few tests with D-Star Reflector XRF311 D linked to TG 26202 on BrandMaster network. If I transmit D-Star on XRF311 D with my own Callsign DF2ET, CCS7 ID 2624112 it appears with the CCS7/DMR ID on the BM network and hence on the MD-380 screen. So this is not an issue here.

If I use another call (DN1YWF for example, registered to me for educational puporses) the source ID in BM network is 26202 so the talk group as ID.

img_20160629_221221_1

So this appears as "ID not found".

dg9vh commented 8 years ago

Did you put the ID in logical order of the DMRid-database-file?

phl0 commented 8 years ago

At the the moment its the "stock" DMR ID database. So no additions yet. It was just to answer your questions from May 25th :-)

dg9vh commented 8 years ago

"Was kümmert mich mein Geschwätz von gestern!"

Well, ok, now I got the reference... the question was, what happens if one comes with a non-registerted callsign via D-Star.

So now it's clear for us to get all talkgroups into the database... there would be space enough even for TGs never be needed... would be easier to get via URL above...

phl0 commented 8 years ago

Ack ack, I just tried with 5000 for status info and 4000 for disconnect. These two come back with 4000 resp. 5000 as ID. So I suggest that we add these two as a first step.

phl0 commented 8 years ago

Linking to other reflectors results in a Transmission showing the reflector ID as source ID. I just tried 4400 for example. img_20160629_230203_1 This was tested on my DVmega with MMDVMHost connected to the German BrandMaster network. As it was announced today that the reflectors 4000 - 4999 from DMR+ and BM are now interlinked, I guess we should take the BM list as source. Any suggestions?

phl0 commented 8 years ago

Ok, as of today the interlink of specific reflectors between DMR+ and BM has been disconnected again. DMR-MARC has been interlinked with some special TGs. For DMR+ there is currently only three specific reflectors (in Germany) that are linked to BM. So I will go for the list from BM for now.

phl0 commented 8 years ago

I created a PR for this: https://github.com/travisgoodspeed/md380tools/pull/199 Here are the results:

img_20160726_170753

img_20160726_170824

img_20160726_171055

travisgoodspeed commented 8 years ago

Merged #199, 8d3d9b3. Thanks, Florian!

Anyone know where to get a database of the DMRMARC talkgroups? I'd like to include them and finally close this issue.

phl0 commented 8 years ago

I will have some research on this. Pls QRX

phl0 commented 8 years ago

Would have another issue. At least in Germany we have a parrot fucntion on TG262997. I would like to add this as well. Maybe put 5000 and 262997 into a file "special_TG.csv" or the like? And does anybody know if there is something similar to the German parrot in other countries / TGs?

dg9vh commented 8 years ago

@phl0 I post a question into the brandmeister-yahoo-group and hope we get info about this.

phl0 commented 8 years ago

Just made a quick test on a DMR MARC repeater. As TGs like 2624 (for regional purposes in Germany for example) only appear as destination they are currently not of any use because the info screen on the MD-380 only shows information about source IDs/TGs. Have I missed something?

cyanide-burnout commented 8 years ago

Parrot on BM is not TG, it is private call.

phl0 commented 8 years ago

Okay sorry. But it is listed with source ID in MD-380 when it returns the audio. So it would make sense if we have it in the user DB.

@cyanide-burnout: Are there more parrots than 262997 out there?

cyanide-burnout commented 8 years ago

Yes, each country has its own ID for parrot. It depends on national administration choice.

dg9vh commented 8 years ago

Forwarded from brandmeister-yahoo-group:

You can try 425997 on brandmeister-il.ddns.net The demo app is on 425991

Just doing further collection.

@phl0 using a special_tg.csv would be a very good idea. But we have to keep in mind, that the final list has to be sorted in accending way I think... so when merging, we keep to be sure that they are sorted?!

phl0 commented 8 years ago

Is there an overview (online) of which IDs / TGs are currently assigned for such purposes?

cyanide-burnout commented 8 years ago

We have no such service right now, but this is good idea to make method to get it on APIs of each servers.

phl0 commented 8 years ago

We have no such service right now, but this is good idea to make method to get it on APIs of each servers.

Okay. Where can I place a feature request please?

bilbolodz commented 8 years ago

I think that good idea is to add "local file" (edited by user) that will be merge during "make flashdb" with remote (server) content. That should solved problem with "local national services" and user tweaks.

cyanide-burnout commented 8 years ago

Okay. Where can I place a feature request please?

It is already placed to internal tracking system :)