Kodi op Raspbian

15 berichten aan het bekijken - 76 tot 90 (van in totaal 97)
  • Auteur
    Berichten
  • #122434
    peetereczek
    Deelnemer

    Oh, replacing hardbyte helped! I can move around Kodi using my RNS-E buttons without any errors, fianlly ๐Ÿ˜€ Thank you for help ๐Ÿ™‚

    Now I need to find issue, with parameters on CARINFO screen :/ There is nothing on developers screen too, only 00 ๐Ÿ˜
    I assume that initialization script sets all other scripts with proper CAN allocation of parameters?

    Oh, I have an idea also… I connected VIM hack module, and connected PI after it, same like RNS-E. This might be an issue, I’ll try to connect Pi before that module

    Best regards,
    Piotr

    #122438
    Rui
    Deelnemer

    Hi Piotr,
    My advice is to install the whole solution again.
    Install strech with desktop, not the lite one. With the desktop you can copy the lines from the pi webrowser and past them into the terminal. So you will do it a lot faster then tiping by hand.
    Follow the tutorial in this site, until the part of “Python can”, instead of doing [pip install python-can] install manually as i told you before.
    Donยดt forget to activate in kodi, the part that allows internet control 8080.
    One more thing, in my rns-e i did the vim hack of the firmware.
    If you have a module, i think speed will never be shown in the car parameters, as the module makes the rns-e think that you are stopped.

    Best regards, Rui.

    #122444
    Rui
    Deelnemer

    Just an update that might be useful to other users:
    In order to set my temperature right, i used the following settings:

    #Coolant formula details
    Coolant Order : 2
    Coolant Amount: -57.2
    Coolant Factor : 0.8
    #End of Coolant formula details

    Best regards, Rui.

    #122492
    peetereczek
    Deelnemer

    Ok,

    I reinstalled whole solution as you adviced and still script is making errors in my car. FIS is flickering, phone module get’s crazy.
    I can block sending DIS messages, but there is nothing on CARINFO screen. I can see settings.txt file for water temperature configuration and canserial.txt file, but there is nothing more. I assume Jeroen’s script is working, but there are still errors somethere and development screens are empty (00’s)

    Can you advice me how i can debug it correctly? Or you can help me somehow to configure it properlly? Maybe you can share with me your OS image? I have no idea where I should take a look and find any clues what is making errors… ๐Ÿ™

    Distraught,
    Piotr ๐Ÿ™

    #122493
    peetereczek
    Deelnemer

    Jeroen,

    I made new candump after reinstallation of whole solution. You can take a look here: https://drive.google.com/file/d/1prX668ugw0BILu4CsKQ-k2FSI-iYTMJr/view?usp=sharing

    For sure it will be more usefull for you. I don’t know why script is not recognizing my CAN ID’s properrly now ๐Ÿ˜

    Best regards,
    Piotr

    #122495
    Janssuuh
    Sleutelbeheerder

    Hi Piotr,

    I asume Rui made a very good point with his previous posts.
    It has happened before that the (Hardbytes) PyCan library changed the position of the actual message in it’s Can-String.
    You won’t notice any difference in the canlog, because this is being saved directly using Pican modules (Say; Not using Python).

    I can / will check this next Tuesday. I saw there should be a can.message() -like function now, which makes it no longer needed to cut a substring from the full detail output..

    Kind regards,
    Jeroen

    #122569
    Corrado
    Deelnemer

    Hi Jeroen, i tested your new Version with a new Pi.

    Raspbian Stretch and Kodi 17.6

    I got an Erorr

    18:02:53.351 T:1910853632   ERROR: unable to load:/home/pi/.kodi/addons/skin.audi_rns/PAL16x9/DialogSeekBar.xml, Line 0
                                                Failed to open file
    18:02:53.354 T:1910853632 WARNING: Skin has invalid include: dialogeffect
    18:02:53.354 T:1910853632 WARNING: Skin has invalid include: DialogBackgroundCommons
    18:02:53.369 T:1910853632 WARNING: Skin has invalid include: dialogeffect
    18:02:53.369 T:1910853632 WARNING: Skin has invalid include: DialogBackgroundCommons
    18:02:53.402 T:1910853632 WARNING: Skin has invalid include: dialogeffect
    18:02:53.402 T:1910853632 WARNING: Skin has invalid include: VisibleFadeEffect
    18:02:53.404 T:1910853632 WARNING: Previous line repeats 2 times.
    18:02:53.404 T:1910853632 WARNING: Skin has invalid include: Window_OpenClose_Animation
    18:02:53.417 T:1910853632 WARNING: Skin has invalid include: VisibleFadeEffect
    18:02:53.645 T:1910853632 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
    18:02:53.739 T:1910853632 WARNING: Skin has invalid include: VisibleFadeEffect
    18:02:53.741 T:1910853632   ERROR: Window Translator: Can't find window videolibrary
    18:02:53.787 T:1910853632  NOTICE: initialize done
    18:02:53.787 T:1910853632  NOTICE: Running the application...
    18:02:53.788 T:1910853632   ERROR: Keymapping error: no such action '-' defined
    18:02:53.794 T:1910853632  NOTICE: starting zeroconf publishing
    18:02:53.794 T:1910853632  NOTICE: starting upnp client
    18:02:53.888 T:1621037824  NOTICE: ES: Starting UDP Event server on port 9777
    18:02:53.896 T:1621037824  NOTICE: UDP: Listening on port 9777 (ipv6 : false)
    18:02:54.348 T:1910853632   ERROR: Control 402 in window 10107 has been asked to focus, but it can't
    18:02:58.784 T:1707053824   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                 - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                Error Type: <class 'ConfigParser.MissingSectionHeaderError'>
                                                Error Contents: File contains no section headers.
                                                file: /etc/can.conf, line: 1
                                                "can.rc['interface'] = 'socketcan_ctypes'\n"
                                                Traceback (most recent call last):
                                                  File "/home/pi/.kodi/addons/skin.audi_rns/addon.py", line 20, in <module>
                                                    from dumpcan import dumpcan #dumpcan.py
                                                  File "/root/.kodi/addons/skin.audi_rns/dumpcan.py", line 28, in <module>
                                                  File "/home/pi/.local/lib/python2.7/site-packages/can/interface.py", line 109, in __new__
                                                    config = load_config(config=config, context=context)
                                                  File "/home/pi/.local/lib/python2.7/site-packages/can/util.py", line 173, in load_config
                                                    cfg = cfg(context)
                                                  File "/home/pi/.local/lib/python2.7/site-packages/can/util.py", line 167, in <lambda>
                                                    lambda _context: load_file_config(path, _context)
                                                  File "/home/pi/.local/lib/python2.7/site-packages/can/util.py", line 74, in load_file_config
                                                    config.read([os.path.expanduser(path) for path in CONFIG_FILES])
                                                  File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
                                                    self._read(fp, filename)
                                                  File "/usr/lib/python2.7/ConfigParser.py", line 512, in _read
                                                    raise MissingSectionHeaderError(fpname, lineno, line)
                                                MissingSectionHeaderError: File contains no section headers.
                                                file: /etc/can.conf, line: 1
                                                "can.rc['interface'] = 'socketcan_ctypes'\n"
                                                -->End of Python script error report<--

    And i didnt have to enter the serial number.
    Images are now decompressed in Media folder.

    #122570
    Janssuuh
    Sleutelbeheerder

    Hi Dave,
    It seems the trouble starts within the file “/etc/can.conf”
    If you’ve installed the latest version (3.0.0) of hardbyte python (pip install python-can) you should safely be able to delete the config filr, because I added these settings withim the script.

    Hope it’ll work!
    Kind regards,
    Jeroen

    #122578
    Corrado
    Deelnemer

    Hi Jeroen, indeed that helps.
    Looks all normal now ๐Ÿ™‚ i will test it later in the car

    #123324
    peetereczek
    Deelnemer

    Hello everyone, I’m back ๐Ÿ˜€

    With problems… Unfortunatelly…

    I reinstalled solution, with manual installation of hardbyte-python and this is what I’m facing now:
    – on can-id page1 i have only 00
    – on can-id page2 i have only – (that’s new)
    – on error log i have recognized python-can with version 3.1.0-rc.1 and “Info: Car model;”
    – FIS flickering

    what’s good:
    – pi reacts on RNS-E buttons
    – i can see candump at console

    I assume that car wasn’t recognized? Is there any possibility i can debug the scripts? any log recording? Can you advise me anything more Jeroen?

    Best regards,
    Piotr

    #123545
    Janssuuh
    Sleutelbeheerder

    Hi Piotr,
    If the script does not recognizes your car it should use default values.
    Could you send me a candump?

    Thanks,
    Kind regards Jeroen

    #123595
    peetereczek
    Deelnemer

    Thanks Jeroen,

    Here you can find my candump: https://drive.google.com/open?id=1EHn79BgiST7x0J2CsbM6OzA2nOs9nPyB. As usually on my Google Drive. I performed several actions, including Bluetooth telephone connection, every door opened / closed separately, all lights on, pressing buttons on wheel and RNS-E. All on running engine. At the end I displayed engine oil temperature on FIS, maybe you can catch that also ๐Ÿ˜‰

    What I found out with diagnostic cable, that after sending messages from skin to my car CAN, there were several errors in modules with CAN communication interruption. For example phone module and steering wheel captured CAN communication lost. Definitely skin enters wrong slot ID on CAN.

    Maybe it’s worth considering changing the default values for skin? Or even putting come editable config file, where we would be able to adjust available ID’s in our cars? Almost every car have different modules installed in, so the automatic scan should consider many cases. Configuration file would give best control about CAN behaviour of skin.

    Best regards,
    Piotr

    #123624
    moddingmaster
    Deelnemer

    How can activate my skin? When it gets applied, no window apeared so no control by the buttons.

    #123656
    moddingmaster
    Deelnemer

    All my problems are solved, the latest version of the skin is not compatible with latest python-can, the activation windows will not appear. can you make the previous version also downloadable?

    #123763
    Corrado
    Deelnemer

    Did you try to delete the /etc/can.conf file? works for me

15 berichten aan het bekijken - 76 tot 90 (van in totaal 97)
  • Je moet ingelogd zijn om een antwoord op dit onderwerp te kunnen geven.