Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.

View Entry Info: Weird EPG errors. EPG Refresh. Recent versions of OpenViX e.g. 5.4.008.

Category:
Possible Bug
What ViX Image build number are you using?
Please provide your ViX Team image build number. Menu > Information > About > Build number > ENTER THIS NUMBER e.g. 4.2.028
5.4.008
Have you tried a flash WITHOUT settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
No
Have you tried a flash WITH settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
Yes
Attachments
Page 9 of 12 FirstFirst ... 7891011 ... LastLast
Results 121 to 135 of 179

Thread: Weird EPG errors. EPG Refresh. Recent versions of OpenViX e.g. 5.4.008.

  1. #121
    BrokenUnusableAccount

    Post

    Quote Originally Posted by birdman View Post
    Try this out and see how it fares.
    I will, unless I realise it's wrong before tonight.

    Everyone: I made the debug log files available at the bottom of message #99.
    Since I seem to be incapable of explaining what I think is going on without confusing myself and getting it wrong it might be best to look at them and try and understand that way if you want to understand.

    They're logs from starting with an empty EPG and manually zapping to IEPG data 1 for 3+ minutes.
    Last edited by BrokenUnusableAccount; 13-03-21 at 13:42. Reason: more info

  2. #122

    Title
    V.I.P
    Join Date
    Jan 2011
    Posts
    272
    Thanks
    60
    Thanked 583 Times in 195 Posts
    Quick initial thoughts on this? Thanks for debugging this Brian, are you saying we may only need to decrement the mjd date if start seconds are sent greater than 1 day and the bugus times will then be correct with no adjustment required to the sent start seconds?

    Code:
    // if start seconds are sent greater than 1 day (86400)
    // we need to decrement startTimeBcd by 2 days (172800)
    
    if (startSeconds > 86400)
    	startTimeBcd -= 172800;

  3. #123
    BrokenUnusableAccount
    Quote Originally Posted by LraiZer View Post
    Quick initial thoughts on this? Thanks for debugging this Brian, are you saying we may only need to decrement the mjd date if start seconds are sent greater than 1 day and the bugus times will then be correct with no adjustment required to the sent start seconds?

    Code:
    // if start seconds are sent greater than 1 day (86400)
    // we need to decrement startTimeBcd by 2 days (172800)
    
    if (startSeconds > 86400)
    	startTimeBcd -= 172800;
    No.
    Some of what I posted late last night, well I was living up to my handle. I was confused.

    Today I'm saying as far as I can see
    Code:
    		if (startSecond >= 86400)
    		{
    			startSecond -= (0x20000 - 86400);
    			--startMjd; // Interpret weird time beyond 86400 seconds as previous day
    		}
    should always get you back to sanity.

    I guess maybe this would do it too:
    Code:
    if (startSeconds >= 86400)
    	startTimeBcd -= 0x20000;
    To be more cautious you could instead just throw away any record where startSecond >= 86400.
    Last edited by BrokenUnusableAccount; 13-03-21 at 16:27. Reason: more info

  4. The Following 3 Users Say Thank You to BrokenUnusableAccount For This Useful Post:

    abu baniaz (13-03-21),ronand (13-03-21),Willo3092 (13-03-21)

  5. #124
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    You can maintain old EPG data for as long as 12 hours in epg/settings.

    It might at least help seeing where the phantoms are coming from without staying up too late.

  6. #125
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts
    Quote Originally Posted by ronand View Post
    It may not be programs spanning midnight being the problem but 11pm - note the +1hr
    This, of course, means that in one timezone they are in one day whilst in a different timezone they are in a different day.
    So the sent EPG contains a "standard" Mjd, requiring a -ve seconds offset?
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  7. #126
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,126
    Thanks
    1,280
    Thanked 1,126 Times in 888 Posts
    The start_time in the schedule would/should always be coded as UTC. Any timezone (or DST) offset should be coded in the TOT in order to allow the software calculate and present the data correctly in the local time in the EPG viewed by the user.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  8. #127
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts
    Quote Originally Posted by fat-tony View Post
    The start_time in the schedule would/should always be coded as UTC. Any timezone (or DST) offset should be coded in the TOT in order to allow the software calculate and present the data correctly in the local time in the EPG viewed by the user.
    That's what I think too. But I also suspect that someone provides the data and someone else converts this into what gets transmitted, and it's not impossible that somewhere in between there is a mismatch of intent. Particularly as I doubt the original data uses Mjd format.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  9. #128

    Title
    V.I.P
    Join Date
    Jan 2011
    Posts
    272
    Thanks
    60
    Thanked 583 Times in 195 Posts
    Quote Originally Posted by BefuddledBrian View Post
    I guess maybe this would do it too:
    Code:
    if (startSeconds >= 86400)
    	startTimeBcd -= 0x20000;
    This correctly fixed the many bogus events i was seeing on the Gemporia Craft channel. Looks good to me, thanks! Maybe you should submit a patch with your fix?

  10. The Following 5 Users Say Thank You to LraiZer For This Useful Post:

    abu baniaz (13-03-21),adm (13-03-21),ronand (13-03-21),Willo3092 (13-03-21)

  11. #129
    BrokenUnusableAccount
    Quote Originally Posted by LraiZer View Post
    This correctly fixed the many bogus events i was seeing on the Gemporia Craft channel. Looks good to me, thanks! Maybe you should submit a patch with your fix?
    Okay. I will.

  12. The Following 5 Users Say Thank You to BrokenUnusableAccount For This Useful Post:

    abu baniaz (13-03-21),adm (13-03-21),Andy_Hazza (13-03-21),LraiZer (13-03-21),ronand (13-03-21)

  13. #130
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,413
    Thanks
    6,461
    Thanked 9,172 Times in 6,246 Posts

  14. The Following 3 Users Say Thank You to abu baniaz For This Useful Post:

    adm (13-03-21),Andy_Hazza (13-03-21)

  15. #131
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,126
    Thanks
    1,280
    Thanked 1,126 Times in 888 Posts
    Quote Originally Posted by birdman View Post
    That's what I think too. But I also suspect that someone provides the data and someone else converts this into what gets transmitted, and it's not impossible that somewhere in between there is a mismatch of intent. Particularly as I doubt the original data uses Mjd format.
    The DVB Standard requires the MJD format. I extracted that info and posted it earlier in the thread:

    Code:
    start_time: This 40-bit field contains the start time of the event in Universal Time, Co-ordinated (UTC) and Modified
    Julian Date (MJD) (see annex C). This field is coded as 16 bits giving the 16 LSBs of MJD followed by 24 bits coded as
    6 digits in 4-bit Binary Coded Decimal (BCD). If the start time is undefined (e.g. for an event in a NVOD reference
    service) all bits of the field are set to "1".
    EXAMPLE 1:
    93/10/13 12:45:00 is coded as "0xC079124500".
    duration: A 24-bit field containing the duration of the event in hours, minutes, seconds. format: 6 digits,
    4-bit BCD = 24 bit.
    EXAMPLE 2:
    01:45:30 is coded as "0x014530".
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  16. #132
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,829
    Thanks
    239
    Thanked 1,664 Times in 1,311 Posts
    Quote Originally Posted by fat-tony View Post
    The DVB Standard requires the MJD format. I extracted that info and posted it earlier in the thread:
    Precisely.
    But the original data provider will not be providing the time in Mjd format, so some other entity will be doing a conversion somewhere.
    That conversion code may be doing odd things with timezone manipulation. We don't know, but it could explain what is being seen.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  17. #133
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,658
    Thanks
    65
    Thanked 658 Times in 514 Posts
    Quote Originally Posted by birdman View Post
    Precisely.
    But the original data provider will not be providing the time in Mjd format, so some other entity will be doing a conversion somewhere.
    That conversion code may be doing odd things with timezone manipulation. We don't know, but it could explain what is being seen.
    Is this the correct fix? Where does the incorrect start seconds data come from?

    As far as I’m aware the ghost/duplicate entries are for programs that have been previously broadcast and on the day they were broadcast must have had the correct EPG data suggesting the correct startMJD and correct startseconds. Where has the incorrect startseconds now come from? Probably not from the broadcaster as others have reported that other means for fetching the IEPG data don’t show these types of problem.

    Also, in my experience, when the problem occurs a re-fetch of the IEPG doesn’t correct the problem UNLESS the EPG cache (and epg.dat file) are first deleted, and often by stopping Enigma to accomplish the deletion. If the EPG cache and epg.dat are deleted and the EPG data then populates from the IEPG then the EPG appears to be problem free suggesting that raw IEPG data wasn’t the cause of an incorrect startseconds value.
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

  18. The Following 2 Users Say Thank You to adm For This Useful Post:

    bbbuk (14-03-21),Huevos (14-03-21)

  19. #134

    Title
    ViX Beta Tester
    Join Date
    Apr 2011
    Location
    Ireland
    Posts
    2,049
    Thanks
    404
    Thanked 668 Times in 547 Posts
    The raw data is fine. It's just some entries got incorrectly processed by the reader to 36 hours later than they should. By the time you notice the incorrect entries it looks they come from past programs.
    Zgemma H7S running OpenVIX 6.2, Darkmotor, Triax TD110 dish, Inverto Black Ultra dual lnb
    LG 50UM7450 4K TV, Pioneer VSX-534 Atmos AVR , Panasonic UB820 region free 4K Bluray & a PS4.

  20. #135
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,658
    Thanks
    65
    Thanked 658 Times in 514 Posts
    Quote Originally Posted by ronand View Post
    The raw data is fine. It's just some entries got incorrectly processed by the reader to 36 hours later than they should.
    That's my point. If the raw data is fine the bug is before the point where the value of startseconds exceeding the number of seconds in a day is being used to establish the start time.
    The bug fix above is at a point where the incorrect (startseconds) data is being used and not where it is being incorrectly assigned.
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

Page 9 of 12 FirstFirst ... 7891011 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.