{"action":"created","issue":{"url":"https://api.github.com/repos/braice/MuMuDVB/issues/213","repository_url":"https://api.github.com/repos/braice/MuMuDVB","labels_url":"https://api.github.com/repos/braice/MuMuDVB/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/braice/MuMuDVB/issues/213/comments","events_url":"https://api.github.com/repos/braice/MuMuDVB/issues/213/events","html_url":"https://github.com/braice/MuMuDVB/issues/213","id":338786840,"node_id":"MDU6SXNzdWUzMzg3ODY4NDA=","number":213,"title":"Signal SNR,BER, Signal Strenght reading in dB instead of percentage","user":{"login":"AlbertEinsteinGlitchPoint","id":35902144,"node_id":"MDQ6VXNlcjM1OTAyMTQ0","avatar_url":"https://avatars3.githubusercontent.com/u/35902144?v=4","gravatar_id":"","url":"https://api.github.com/users/AlbertEinsteinGlitchPoint","html_url":"https://github.com/AlbertEinsteinGlitchPoint","followers_url":"https://api.github.com/users/AlbertEinsteinGlitchPoint/followers","following_url":"https://api.github.com/users/AlbertEinsteinGlitchPoint/following{/other_user}","gists_url":"https://api.github.com/users/AlbertEinsteinGlitchPoint/gists{/gist_id}","starred_url":"https://api.github.com/users/AlbertEinsteinGlitchPoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlbertEinsteinGlitchPoint/subscriptions","organizations_url":"https://api.github.com/users/AlbertEinsteinGlitchPoint/orgs","repos_url":"https://api.github.com/users/AlbertEinsteinGlitchPoint/repos","events_url":"https://api.github.com/users/AlbertEinsteinGlitchPoint/events{/privacy}","received_events_url":"https://api.github.com/users/AlbertEinsteinGlitchPoint/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-06T02:45:56Z","updated_at":"2018-10-05T01:02:50Z","closed_at":null,"author_association":"NONE","body":"Hiya \r\n\r\nnot shure if this is related to mumudvb or specific hardware DVB tunner cards\r\n\r\ni am having a issue trying to read the signal quality and SNR, BER from mumudvb\r\n\r\nlog console show\r\n\r\nSNR: 170506\r\nSIGNAL: 47859......\r\n\r\ncan i convert this is DB ?\r\n\r\nsomething similar to this function?  if so where can i  try to patch the code in  tune.c?\r\n\r\n`var db = Math.round(1000000000*20*(Math.log(perc*0.01)/Math.log(10)))/1000000000;\r\n`"},"comment":{"url":"https://api.github.com/repos/braice/MuMuDVB/issues/comments/427215417","html_url":"https://github.com/braice/MuMuDVB/issues/213#issuecomment-427215417","issue_url":"https://api.github.com/repos/braice/MuMuDVB/issues/213","id":427215417,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzIxNTQxNw==","user":{"login":"braice","id":332815,"node_id":"MDQ6VXNlcjMzMjgxNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/332815?v=4","gravatar_id":"","url":"https://api.github.com/users/braice","html_url":"https://github.com/braice","followers_url":"https://api.github.com/users/braice/followers","following_url":"https://api.github.com/users/braice/following{/other_user}","gists_url":"https://api.github.com/users/braice/gists{/gist_id}","starred_url":"https://api.github.com/users/braice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braice/subscriptions","organizations_url":"https://api.github.com/users/braice/orgs","repos_url":"https://api.github.com/users/braice/repos","events_url":"https://api.github.com/users/braice/events{/privacy}","received_events_url":"https://api.github.com/users/braice/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T01:02:50Z","updated_at":"2018-10-05T01:02:50Z","author_association":"OWNER","body":"Hello,\nCan you provide a patch ?\nDid you look into the dtv_property.stat.dtv_stats array\nhttps://linuxtv.org/downloads/v4l-dvb-apis/uapi/dvb/frontend-stat-properties.html\n\nYou have some sample code here\nhttps://gist.github.com/athoik/5f755cabed0cfccea008d36e9f166e7b\n\nIt should give the same information but also the scale.\n\nNot all kernel have the dvb api v5 (most should today) so both codes will\nhave to be present\n\nBrice\n\n\nLe dim. 9 sept. 2018 à 17:29, AlbertEinsteinGlitchPoint <\nnotifications@github.com> a écrit :\n\n> Hiya\n>\n> i have been playing with this code, as TBS did not supply any info or\n> neither replied to me..\n>\n> on tune.c\n>\n> i have changed the code and the output log shows in db now..\n>\n> but cannot apply the code on dvb,c SNR and signal strenght,,,\n>\n> Info: Tune: Strength: 58 dBm Info: Tune: SNR: 72 dB Info: Tune: BER: 0\n>\n> `strength=0;\n> if(ioctl(fd_frontend,FE_READ_SIGNAL_STRENGTH,&strength) == -1){\n> strength = 0;\n> } else {\n> strength = (strength * 100) / 0xffff;\n> if (strength < 0) {\n> strength = 0;\n> }\n> }\n> log_message( log_module, MSG_INFO, \"Strength: %10d dBm\\n\",strength);\n>\n> \t\tstrength=0;\n> \t\tif(ioctl(fd_frontend,FE_READ_SNR,&strength) == -1){\n>                     strength = 0;\n>             } else {\n>                     strength = (strength * 100) / 0xffff;\n>                     if (strength < 0) {\n>                             strength = 0;\n>                     }\n>             }\n> \t\t\t\n> \t\t\tlog_message( log_module,  MSG_INFO, \"SNR: %10d dB\\n\",strength);\n> \t\t\t`\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/braice/MuMuDVB/issues/213#issuecomment-419746331>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AAUUD0p0vulj418Ph_Fk1YpFNMNP6CK_ks5uZYhLgaJpZM4VEzVt>\n> .\n>\n"}}
{"actor":{"display_login":"braice"}}