rhysmorgan134 / react-carplay

MIT License
423 stars 65 forks source link

CarlinKit disconnecting on it's own #42

Closed Nickelpick12 closed 1 year ago

Nickelpick12 commented 1 year ago

Hello, I picked up a Carlinkit CPC200-CCPA from Amazon.

When I plug it in, about 25 seconds later Removable medium is inserted window opens, and 10 seconds after that it disconnects. When it disconnects a box in the top-right of the screen pops up saying:

Drive was removed without ejecting Please use menu to eject before removal

If I run Carplay after it says it says that I disconnected it, I get the same errors as in #20. When I run lsusb the Carlinkit isn't listed.

If I run Carplay right after I plug the Carlinkit in, I get this error and then the app closes:

raspberry@raspberrypi:~/Desktop $ ./Carplay.AppImage /home/raspberry/.config/ReactCarplay spawning carplay { dpi: 240, nightMode: 0, hand: 0, boxName: 'nodePlay', width: 799, height: 479, fps: 30 } directory found device not connected MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load driver: kms_swrast MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load swrast driver carplay connection carplay connection sending dpi FATAL ERROR: LIBUSB_TRANSFER_ERROR Aborted

When running lsusb the Carlinkit does show up until it disconnects itself.

Any advice?

Nickelpick12 commented 1 year ago

Hello, since my last post, I got two new dongles. I got the same dongle as before from a different Amazon page to see if it was a problem with that specific dongle but it wasn't and I got the same behavior.

The other dongle I got was this, the wired Carplay one. This was linked to, from the YouTube video. When I run the code with this dongle I get this error:

/home/raspberry/.config/ReactCarplay spawning carplay { dpi: 240, nightMode: 0, hand: 0, boxName: 'nodePlay', width: 800, height: 480, fps: 30 } Assets not present, downloading MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load driver: kms_swrast MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) failed to load swrast driver % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8456k 100 8456k 0 0 614k 0 0:00:13 0:00:13 --:--:-- 534k file downloaded, unzipping sending dpi device connected and ready FATAL ERROR: LIBUSB_TRANSFER_ERROR Aborted

Now the dongle doesn't disconnect randomly so small improvement. From what I can tell, the problem seems to be with the LIBUSB_TRANSFER_ERROR.

Any advice?

rhysmorgan134 commented 1 year ago

Hi sorry for the lack of reply!

take a look here for more info

https://forums.moderndaymods.com/t/carlinkit-is-not-connecting/87/10

Nickelpick12 commented 1 year ago

Thanks, this works great on the wired Carplay dongle.

Is the .img for the newer firmware available for when the Node-Carplay update comes out? I'm afraid to update the wireless dongle since I don't want to be stuck with the old firmware forever.

Thanks for everything!

rhysmorgan134 commented 1 year ago

Hi Nick,

Yeah the new version should work fine with the newer dongles, however I would hold off until I have verified it all.