Planet-9 Porsche Forum banner

PIWIS 2 virtual machine troubleshooting

20891 Views 46 Replies 23 Participants Last post by  John_987
The following is to be read in relation to the PIWIS 2 setup using a virtual machine as described in this thread link.

PIWIS 2 setup as a virtual machine

I’ve always had issues getting the PIWIS interface to connect consistently to the virtual machine. In addition to the problems I already was having, Rob997 discovered and came up with the solution to the black menu issue that occurs after about a year.

I decided to do a bunch of poking around to see if I could nut out exactly what indications I needed to see when it was connecting correctly. I now seem to have a method that consistently ensures the interface connects to the VM so it will then interact with the PIWIS program. If you are having issues, below is some stuff to check that might help. If people have seen other issues and found a fix, please add below.

Connection Procedure

Connection method seems to be critical. Do it in the order below. I’ve put additional items in italics that aren’t essential but that give you indications along the way that it is connecting correctly.

  • Start Virtualbox.
  • Connect both leads to the interface.
  • Connect interface to car. Should have flashing ‘power’ LED on the interface once it has been connected to the car.
  • If you have a red ‘status’ LED, continue with the procedures below. If it is recognised by Virtualbox as described in the next step, once you start the virtual machine it should update the firmware on the interface when the VM boots, which should turn off the red status LED.
  • Once the interface has been connected to car, wait a few moments and then connect the interface USB to your computer. Should get the ‘connecting device’ sound from host. Check the device is recognised by Virtualbox. Go to VirtualBox, Settings, USB. Click the small USB button on the right with the +, and check the Samtec device is listed. All the USB devices currently recognised by the host should be listed. To the left of this button the Samtec device should be listed to automatically mount when you start the VM as described in the linked thread above.
  • Start VM. As the host boots, you should get a single flash of the ‘USB’ LED when you hear the ‘disconnecting device’ sound from the host.
  • When VM has booted, go to Device Manager (Control Panel, System, Hardware) and check you can see ‘HSX Interface’ device under ‘LibUSB-Win32 devices’. Sometimes I’ve seen ‘unknown USB’ under LibUSB-Win32 devices and the PIWIS won’t connect to it correctly. If you are seeing this, right click on ‘unknown USB’ and then click ‘update driver’. It will then take you to the wizard. Allow it to automatically search for the driver and load it. Once this is done ‘HSX interface’ should replace ‘unknown USB’.
  • Start PIWIS program. Check the validity of imprint isn’t blank. If not, use the imprint procedure below. If you don’t do this you will most likely have the blank menu problem the next time you open the program.
  • You should see 8 options in the black menu on the left. If you only see 4 (diagnostics won’t be one of the 4 options), immediately complete the imprint procedure below. If you have no options on the black menu, you will need to completely reinstall the original PIWIS.ova file (as described in the linked thread above) to create a new virtual machine in Virtualbox and then imprint the device again.
  • Turn on ignition and then start diagnostics. Should see a solid ‘USB’ LED when the diagnostics connects. If it doesn’t connect, sometimes due to it updating firmware on interface, close diagnostics and open again.
  • When the connection is good, the green ‘power’ LED should be flashing and the green ‘USB’ LED should be on solidly.
Disconnection Procedure

I’ve seen issues when I haven’t disconnected the interface in the way described below. It seems to affect the firmware on the interface, which resulted in a red ‘status’ LED when you connect it to the car next time. The fix to this red status light is above in step 5.

  • Shutdown diagnostics. The ‘USB’ LED should go out when you do this.
  • Shutdown virtual machine. The ‘power’ LED should flash throughout this.
  • Remove interface USB plug from computer.
  • Disconnect interface plug from car.
Imprint procedure


1. Open PIWIS 2

2. Go to -- SETTINGS--> Tester Imprint

3. Go to "Licence" tab – The boxes should be greyed out and empty. If the imprint is valid, these boxes should be greyed but have the correct licence key visible. Go to "KEY" tab and click 'Create Key' (will generate a requirement code)

4. Enter any key and press save, keep repeating it until it says "too many faulty attempts"

5. go to "KEY" tab and click 'Create Key' (will generate a requirement code)

6. Exit PIWIS II with task manager. To exit PIWIS without shutting down the VM, right click on taskbar (at bottom), open task manager, then go to 'desktop' and end task.

7. Go to the folder "c:\user data" and locate the file "praegung.xml" (this is the 'praegung.xml' on the desktop) edit it with notepad and locate the part "demand key", delete the existing number and enter 4032546358 to replace the one in the file - save the file and close.

8. Start the piwis again, Go to -- SETTINGS--> Tester Imprint in the "KEY" tab you should see the key you have entered before.

9. go to "license" tab and enter the key below and click SAVE. This is the same key that is in the licence.txt file on the desktop that can be copy/pasted into the key.

s3nT IfSX sytP rDFo 1TRM Gw==

10. Now it should say "Tester was successfully imprinted" and validity should show 30 days. Close PIWIS with task manager.

11. Go to the folder (use the shortcut on the desktop) "c:\user data" and locate the file "praegung.xml" edit it with notepad and locate the part "validationstring" replace the 30 by unlimited OR enter "X" number of days (eg-9999)

Video below of how to stop the black menu problem. The batch file startup stopped working for some reason. Easy workaround shown.

See less See more
  • Like
Reactions: 2
21 - 40 of 47 Posts
I've ported the Windows script posted above to a shell script running under under macOS, effectively Linux. Originally I used the three separate VBoxManage commands as were found in the original script. I found that they could be combined into one command. In fact, if they weren't combined, it started 3 instances of VirtualBox.

I can get the PIWIS VM to start, however the setextradata command used to disable time sync with the host machine doesn't seem to be working. Similarly, the modifyvm option intended to set the PIWIS VM's clock back to a 2019 date also seems to have no effect.

I've run both of those commands separately (commented out in the code for now) and observe no error from VirtualBox.

Is anyone else running on a MacBook? If so, did you run into similar issues? If you did, would you share how you resolved them?

Thx!

Here's the code:

#! /bin/sh​
#set -x​
VMname=PIWIS​
VMdate=(date -j -f "%a %d %b %Y %T %Z" "Wed 11 Sep 2019 11:17:49 EST" +"%s")
VBoxPath="/usr/local/bin/VirtualBox"​
#VBoxPath="/Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM "​
echo "\nVMname: $VMname, VMdate: $VMdate, VBoxPath: $VBoxPath\n"​
CurrentDateMs=date +%s
echo "\n CurrentDateMs: $CurrentDateMs\n"​
# Date-Difference today to defined date​
delta=$((VMdate - CurrentDateMs))​
#==================================================================================​
# Time-Sync with host disable​
#cmd="$VBoxPath VBoxManage setextradata $VMname "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1"​
#cmd="/Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM --comment Porsche VBoxManage --setextradata $VMname "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1"​
#cmd="$VBoxPath --comment Porsche VBoxManage setextradata $VMname "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1"​
cmd="$VBoxPath --comment Porsche VBoxManage setextradata $VMname "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1"​
echo "\ncmd is: $cmd\n"​
#$cmd &​
#--------------------------------------------------------------------------------------------​
# Set Offset​
#cmd="/Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM --comment Porsche VBoxManage --modifyvm $VMname --biossystemtimeoffset $delta --no-startvm-errormsgbox"​
#cmd="$VBoxPath VBoxManage modifyvm $VMname --biossystemtimeoffset $delta"​
cmd="$VBoxPath --comment Porsche VBoxManage modifyvm $VMname biossystemtimeoffset $delta"​
echo "\ncmd is: $cmd\n"​
#$cmd &​
#--------------------------------------------------------------------------------------------​
# Start the virtual machine​
#cmd="/Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM --comment Porsche --startvm PIWIS --no-startvm-errormsgbox"​
# This works!​
# This invocation starts the VM (within the currently running Oracle VM Manager session - if one is running)​
#cmd="$VBoxPath --comment Porsche startvm $VMname no-startvm-errormsgbox"​
echo "\ncmd is: $cmd\n"​
#$cmd &​
#--------------------------------------------------------------------------------------------​
# How about a single VBoxManage command?​
# This creates a single instance of the Oracle VM Manager, doesn't start the VM - and doesn't seem to disable time sync...​
#cmd="$VBoxPath --comment Porsche VBoxManage setextradata $VMname "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1 -modifyvm $VMname --biossystemtimeoffset $delta startvm $VMname no-startvm-errormsgbox"​
# Let's try the other path​
# Starts the VM w/out the Oracle VM Manager - time synce still not disabled...​
cmd="/Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM --comment Porsche VBoxManage --setextradata $VMname \"VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled\" 1 --modifyvm $VMname --biossystemtimeoffset $delta --startvm $VMname --no-startvm-errormsgbox"​
echo "\ncmd is: $cmd\n"​
$cmd &​
exit​
See less See more
Im running PIWIS 2 on a MacBook Pro and also got the "Loading ODX Data" What I did is before opening virtualbox change the date on my MBP one year back by unchecking box "set date and time automatically" and make from 2021=> 2020 under system preferences/ date and time setting. Since Virtualbox will sync time with host (OS X) the time on PIWIS is also 2020 and it works again.

After using and closing PIWIS just enable the checkbox to set date and time automatically on my MBP otherwise internet does not work.
I have a different question here but I suspect I know my answer. I have been reading in several places that PIWIS 2 can enable the rain sensing wipers on 981s. I have also read that Porsche DE needs to give some kind of code and for that I have contacted my dealership and gotten 0 response. Is this actually possible here?
Yo .. also hit by the Y2K21 PIWIS Bug .. thanks to this forum and here is the easy way out for the non tec inclined .. As long as your system is Windows based and your PIWIS VM is named PIWIS this should be smooth sailing .. Just copy this into any batch file (i.e. piwis.bat) on the system your Piwis is running from, start it, enjoy, Thanks ;)

@echo off

rem 2021 PIWIS VM Configuration - Should work on Windows + VM named PIWIS
rem Thx to www.andysblog.de/virtualbox-zeit-synchronisation-deaktivieren

set VMname=PIWIS
set VMdate=09/11/2019

set VBoxPath=C:\Program Files\Oracle\VirtualBox

rem Date-Difference today to defined date

powershell ([datetime]'%VMdate%' - [datetime]::Now) | find "TotalMilliseconds :" > temp.txt

set /p MS=< temp.txt
del temp.txt /q

rem cut Variable ("TotalMilliseconds :" and delete after,)

set MS=%MS:~20,-5%

rem Time-Sync with host disable

"%VBoxPath%\VBoxManage" setextradata "%VMname%" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1

rem set Offset

"%VBoxPath%\VBoxManage" modifyvm "%VMname%" --biossystemtimeoffset "%MS%"

rem start virtual machine

"%VBoxPath%\VBoxManage" startvm "%VMname%"
My system is on Windows 7, I’m not sure if that’s an issue? I’ve tried putting the script in and it hasn’t worked. I’m guessing that I’ve missed something. Could you simplify the instructions for me as if Im 4 years old?
I’ve reset the clock back to 2019 and it now goes past the ODX stage, but I haven’t plugged it into a vehicle yet. Apologies for being a pain.
sorry for updating an old post - but I'm having a serious driver issue. I've followed jjchars instructions to the tee - and still my windows host shows an "HSX Interface" but cannot load the driver. As such, VirtualBox see's nothing when I go into USB and try to add. I've tried over and over and no go.

My host laptop is Windows 7 and I've been unable to locate an HSX driver anywhere.
sorry for updating an old post - but I'm having a serious driver issue. I've followed jjchars instructions to the tee - and still my windows host shows an "HSX Interface" but cannot load the driver. As such, VirtualBox see's nothing when I go into USB and try to add. I've tried over and over and no go.

My host laptop is Windows 7 and I've been unable to locate an HSX driver anywhere.
Is your piwis plugged into the car and powered on before plugging into your laptop?
Is your piwis plugged into the car and powered on before plugging into your laptop?
Yep - have the blinking green power light - all looks good as I follow the instructions. I get to this point and VirtualBox doesn't see anything in USB:

Once the interface has been connected to car, wait a few moments and then connect the interface USB to your computer. Should get the ‘connecting device’ sound from host. Check the device is recognised by Virtualbox. Go to VirtualBox, Settings, USB. Click the small USB button on the right with the +, and check the Samtec device is listed. All the USB devices currently recognised by the host should be listed. To the left of this button the Samtec device should be listed to automatically mount when you start the VM as described in the linked thread above.
This is what my host sees:
View attachment 275492
Have you tried another USB port on your laptop? Make sure you’re connected to the internet with it and click update driver and let it see if it searches and finds it.
Worst case do you have another laptop you can try loading virtual box on and try it again?
Now I'm seeing a "new hardware installed" message on the Win XP piwis image when I start it up - and it cannot find the USB controller and load it - could be that's the issue... why is the USB controller driver removed from this .ova that jjrichars put out??
and yes, connected to internet, everything - cannot find the damn driver for anything - HSX of the Win XP USB controller either...
So questions are this:
1. Does the host (in my case Win 7) have to have the HSX Interface driver installed and working?
2. Does the PIWIS .ova image (Win XP) have to have the USB Controller driver udpated/installed = this is the .ova image provided from jjrichars original PIWIS thread from google drive.

If these are both needed - where do I locate them, as they seem to no longer be in Google's "reach"...
Just want to update - I got it fixed - not sure what issue was, but I had to completely del VirtualBox and reinstall an older version. That seemed to solve it. then had the black screen imprint problem - so had to reinstall ova yet again - also reset VirtualBox to NOT override the guest time/date with host (see here: How to set the BIOS date in VirtualBox ).

Works good now..
  • Like
Reactions: 2
Just want to update - I got it fixed - not sure what issue was, but I had to completely del VirtualBox and reinstall an older version. That seemed to solve it. then had the black screen imprint problem - so had to reinstall ova yet again - also reset VirtualBox to NOT override the guest time/date with host (see here: How to set the BIOS date in VirtualBox ).

Works good now..
Sorry for the delay. Glad you got it figured out
  • Like
Reactions: 1
sorry for updating an old post - but I'm having a serious driver issue. I've followed jjchars instructions to the tee - and still my windows host shows an "HSX Interface" but cannot load the driver. As such, VirtualBox see's nothing when I go into USB and try to add. I've tried over and over and no go.

My host laptop is Windows 7 and I've been unable to locate an HSX driver anywhere.
Just want to update - I got it fixed - not sure what issue was, but I had to completely del VirtualBox and reinstall an older version. That seemed to solve it. then had the black screen imprint problem - so had to reinstall ova yet again - also reset VirtualBox to NOT override the guest time/date with host (see here: How to set the BIOS date in VirtualBox ).

Works good now..
I am having the exact same issue. My host machine (Microsoft Surface w/ Windows 10) does not recognize the HSX Interface as a USB Device. Instead, it sticks it under "Other Devices." I think this is why I am not seeing any USB devices inside the virtual machine. I have tried uninstalling the device and re-plugging it in with the Virtual Machine off and on, but nothing can make the USB device appear in the VM.

What older version of Virtual Box worked for you? Were you able to get this working without installing drivers on your host machine?


Edit: In the USB filters, setting "remote" to "yes" solved the issue for me.
  • Like
Reactions: 1
I am having the exact same issue. My host machine (Microsoft Surface w/ Windows 10) does not recognize the HSX Interface as a USB Device. Instead, it sticks it under "Other Devices." I think this is why I am not seeing any USB devices inside the virtual machine. I have tried uninstalling the device and re-plugging it in with the Virtual Machine off and on, but nothing can make the USB device appear in the VM.

What older version of Virtual Box worked for you? Were you able to get this working without installing drivers on your host machine?


Edit: In the USB filters, setting "remote" to "yes" solved the issue for me.
Hey, @DriverDaily and @Nocoyote, I'm having the same issues. Any other info you can add to how you got your host computer to "see" the VCI before running the Virtual Machine?

I added more detail here - PIWIS 2 setup as a virtual machine
I cannot seem to connect with PIWIS ll to my 2013 Panamera S. I used this process using VM to load PIWIS on my tablet, successfully.. Originally on the laptop I had the software installed with the native windows 7 installation. Both methods show the same results... The software does know if the ignition switch is in the off position, as well a low car battery indication, as I had discharged the battery after a few hours of connection. Is as if it thinks it's connected to another Porsche car line? Any ideas?

Thanks
Steve
Computer Personal computer Font Rectangle Gadget
See less See more
I cannot seem to connect with PIWIS ll to my 2013 Panamera S. I used this process using VM to load PIWIS on my tablet, successfully.. Originally on the laptop I had the software installed with the native windows 7 installation. Both methods show the same results... The software does know if the ignition switch is in the off position, as well a low car battery indication, as I had discharged the battery after a few hours of connection. Is as if it thinks it's connected to another Porsche car line? Any ideas?

Thanks
Steve
View attachment 282028
This probably means that piwis tester is broken. Had exact same problem, tried different piwis VMs, searched forums, tried with other porches and always the same result. I got piwis tester replacement and everything worked right away.
This probably means that piwis tester is broken. Had exact same problem, tried different piwis VMs, searched forums, tried with other porches and always the same result. I got piwis tester replacement and everything worked right away.
Thanks for the reply when you say tester is broken are you referring to the PIWIS interface box and cables? What vendor or source did you purchase replacement from? Thanks
Thanks for the reply when you say tester is broken are you referring to the PIWIS interface box and cables? What vendor or source did you purchase replacement from? Thanks
Yes, I am referring to that.
My buying experience wasn't the greatest either, first device I got wasn't working and I was getting the same message as you, but than after spending few hours researching what was wrong and another few hours with seller tech support engineers - they decided to ship me another device after I return the one they initially sent me. I ended up wasting 10+ hours, paying customs duties two times, and paying shipment for returning item. On the other hand, they could just ignored my complaints and not sent replacement unit back, so it could have been worse. I prefer not to mention seller publicly and provide them free marketing because of things mentioned above. You can PM me if you still want that seller, I don't think that they sent me broken device on purpose but they obviously don't have a way to test it either.

@jjrichar I know you did mention few times that you got few broken devices as well, could you share some light on symptoms of failed device? Was it the same problem "model line could not be determined..."? That looks like canbus communication chip of device is broken, since device is able to properly communicated with PC, but not with the vehicle.
See less See more
21 - 40 of 47 Posts
Top