Page 131 of 131 FirstFirst ... 3181121127128129130131
Results 1,301 to 1,310 of 1310

Thread: Android upgrade to Jaguar Touchscreen for XJ X350/X358, S-Type and X-Type - HOWTO

  1. #1301
    Senior Member benwillcox's Avatar
    Join Date
    Apr 2015
    Location
    Telford
    Posts
    894
    Post Thanks / Like
    Ah yes that version line is incorrect, although it has no bearing on anything. I shall remove it as it has no real purpose and I always forget to update it!

    Do you already have v4 loaded into the Arduino? Due to the new addition of the watchdog timer which resets the arduino if the sketch hangs for any reason, the USB upload doesn’t work directly once you have the watchdog enabled (I.e. have loaded and run v4 already). To get around the issue the Arduino needs to be reset when the sketch is uploaded. Easiest way to do this is compile and upload using the Arduino IDE as normal, and when it says ‘uploading sketch’ hold the RECIRC button for a few seconds which performs a soft reset of the Arduino and the upload should work.

    Thanks,
    Ben
    2004 XJ X350 Super V8 LWB - Custom 19" alloys, 4 zone climate control, rear business trays


    JagDroid - Android upgrade to Jaguar Touchscreen for XJ X350/X358, S-Type and X-Type - forum thread HOWTO and website: http://www.jagdroid.org

  2. #1302
    Senior Member Grrrmachine's Avatar
    Join Date
    Dec 2015
    Location
    Warsaw, Poland
    Posts
    148
    Post Thanks / Like
    I figured the version line was just an internal flag, but it helped me track the file in case you'd uploaded multiple versions.

    And yes, that watchdog must be what's killing the upload process. The trouble was, I was trying to fix the button mapping so I wouldn't have known which button the arduino thought was RECIRC - it turns out I'd flipped two of the COL wires so CLIMATE and FAN DOWN switched behaviours!
    2004 X-Type 3.0 Executive Estate, Pacific Blue with Champagne Leather and CarPC install.

  3. #1303
    Senior Member benwillcox's Avatar
    Join Date
    Apr 2015
    Location
    Telford
    Posts
    894
    Post Thanks / Like
    You should also be able to just press the reset button on the Arduino at the right time, if it’s accessible of course!

    Ben
    2004 XJ X350 Super V8 LWB - Custom 19" alloys, 4 zone climate control, rear business trays


    JagDroid - Android upgrade to Jaguar Touchscreen for XJ X350/X358, S-Type and X-Type - forum thread HOWTO and website: http://www.jagdroid.org

  4. #1304
    Senior Member Grrrmachine's Avatar
    Join Date
    Dec 2015
    Location
    Warsaw, Poland
    Posts
    148
    Post Thanks / Like
    Quote Originally Posted by benwillcox View Post
    ... if it’s accessible of course!


    And there's the rub! It's not too hard to wire in another button on the outside if I need it though.
    2004 X-Type 3.0 Executive Estate, Pacific Blue with Champagne Leather and CarPC install.

  5. #1305
    Senior Member Grrrmachine's Avatar
    Join Date
    Dec 2015
    Location
    Warsaw, Poland
    Posts
    148
    Post Thanks / Like
    Not sure what's going on now, but I can't upload anything to either Leonardo that already has the v4 sketch added, regardless of how and when I press the onboard RESET button. It's not the IDE or the cables, since I can get "blink" onto a spare Uno with no problem, but these Leonardos just aren't having it.

    I also can't find any reference to 8 seconds (8000 millis) anywhere in the v4 sketch, and the only time 'resetFunc' is called is when holding the RECIRC button. Can you paste the line that references this "watchdog timer"? It would be useful to comment that out during debugging the install, so that it only gets included when the rest of the config is confirmed.

    In the end I had to burn a new bootloader to the Leonardo via the Uno in order to get it to accept any new sketches, so there's still a way forward!
    2004 X-Type 3.0 Executive Estate, Pacific Blue with Champagne Leather and CarPC install.

  6. #1306
    Senior Member benwillcox's Avatar
    Join Date
    Apr 2015
    Location
    Telford
    Posts
    894
    Post Thanks / Like
    The line you need to comment out is

    wdt_enable(WDTO_8S);

    Which appears in the setup() and sleep() functions. For me it works if I operate the reset function just as the sketch has compiled and starts uploading to the Arduino, but there are a couple of different bootloaders out there and this may have a bearing on it.

    Ben
    2004 XJ X350 Super V8 LWB - Custom 19" alloys, 4 zone climate control, rear business trays


    JagDroid - Android upgrade to Jaguar Touchscreen for XJ X350/X358, S-Type and X-Type - forum thread HOWTO and website: http://www.jagdroid.org

  7. #1307
    Senior Member Grrrmachine's Avatar
    Join Date
    Dec 2015
    Location
    Warsaw, Poland
    Posts
    148
    Post Thanks / Like
    Ahh, I thought you'd written a custom function - I didn't know "wdt" was an in-built feature of the bootloader! I'll have to explore that further to see what its potential is. Thanks for the tips!
    2004 X-Type 3.0 Executive Estate, Pacific Blue with Champagne Leather and CarPC install.

  8. #1308
    Senior Member Grrrmachine's Avatar
    Join Date
    Dec 2015
    Location
    Warsaw, Poland
    Posts
    148
    Post Thanks / Like
    I managed to get a v4 version installed in my car yesterday, and actually working to a large degree! The CD player arduino now handles all the audio switching, and the front panel buttons and steering wheel controls work as expected with, most importantly, NO unwanted interference from the Voice module (which was the show-stopper for v3.6). I did have to resolder a few things since the guide isn't as easy to follow as the "main" nav unit mod, but that's mostly because the wiring diagram just says "CD player main board" when there are really three separate boards that need soldering (the power daughterboard and the CD player's own controller). And Ben, the pic of the Pro Micro has the blue and purple wires (A3 and A2) inverted compared to the diagram

    I took it on a road test and discovered two weird things:

    1) PWM brightness control doesn't seem to work. I'm not sure if it's my wiring or something in the code, but the Nav panel Menu > Brightness controls had no effect.
    2) I developed a very erratic soft reboot while driving. I'll take it on another test drive today to confirm, but I have a sneaking suspicion that either the 10min sleep timer or the watchdog is triggering unexpectedly.

    Good stuff though. It was great having Google Maps on the screen without the voice module beeping and shutting off my music every ten seconds!

    The
    2004 X-Type 3.0 Executive Estate, Pacific Blue with Champagne Leather and CarPC install.

  9. Likes mrmut liked this post
  10. #1309
    Senior Member Grrrmachine's Avatar
    Join Date
    Dec 2015
    Location
    Warsaw, Poland
    Posts
    148
    Post Thanks / Like
    UPDATE: It's not a soft reboot, it's a loss of HDMI signal. The Odroid continues playing music throughout, but the screen says NO SIGNAL. It's not the RTD board (I presume) since I can switch to the nav unit's VGA input and the rear view AV2 input with no problems. Here's hoping it's just a loose connection considering how many times it's all been plugged/unplugged.

    Anyway, here's a short video of the unit in action:

    https://drive.google.com/file/d/12V-...ew?usp=sharing
    2004 X-Type 3.0 Executive Estate, Pacific Blue with Champagne Leather and CarPC install.

  11. Thanks mrmut thanked for this post
  12. #1310
    Senior Member benwillcox's Avatar
    Join Date
    Apr 2015
    Location
    Telford
    Posts
    894
    Post Thanks / Like
    Good stuff thanks for posting the update.
    I've corrected the wiring diagram now, the pin designations were right but the colour labels wrong so it didn't match the photo, and I've split the CD player connections into separate parts, thanks for the feedback.
    With the brightness control you might have to run the sketch in debug and see if it's detecting the changed PWM values when you adjust the brightness, there might be some commented out debug statements to give further info. Or it could be the PWM mod on the RTD board has an issue. If you have a 'scope you can check the PWM IN and PWM OUT and see what's going on.

    It looks like from your video you have the resolution set quite high? I find the best results at the native 800x480 of the screen, which also brings all of the bottom navigation bar and top icon bar to a more reasonable size. I also set the font size to Huge in the Android settings which gives a good size.

    I think you also have 'Auto-Play' mode enabled on the CD player, so when the music was playing and you pressed CD to go to aux-in mode, it sends a 'PLAY/PAUSE' command. This has the unfortunate side effect that if the music is already playing it actually pauses it. This is because there is no discrete PLAY and PAUSE command available via USB multimedia keycodes. So I normally turn that feature off for that reason, but keep 'Auto-Stop' enabled.

    Cheers!
    Ben
    2004 XJ X350 Super V8 LWB - Custom 19" alloys, 4 zone climate control, rear business trays


    JagDroid - Android upgrade to Jaguar Touchscreen for XJ X350/X358, S-Type and X-Type - forum thread HOWTO and website: http://www.jagdroid.org

Page 131 of 131 FirstFirst ... 3181121127128129130131

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •