Spinning wheel when connecting dongle

Hello

I’m stuck with a spinning wheel when I plug in my Carlinkit CPC200-CCPM and struggling to solve it.

I am using a R-Pi 4. 64 bit OS.

pi@raspberrypi:~ $ hostnamectl
Static hostname: raspberrypi
Icon name: computer
Machine ID: e0fc5f08d6a745ef8544be9c1f7f7f8b
Boot ID: d839007183b84c3897f5b2ec3bc4dda7
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-rpi7-rpi-v8
Architecture: arm64

I installed using the script.

pi@raspberrypi:~ $ lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1314:1520 Magic Communication Tec. Auto Box
Bus 001 Device 004: ID 04a5:8002 Acer Peripherals Inc. (now BenQ Corp.) BenQ ZOWIE Gaming Mouse
Bus 001 Device 003: ID 045e:07f8 Microsoft Corp. Wired Keyboard 600 (model 1576)
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

When I run dmesg I am getting

[ 212.467242] usb 1-1.4: New USB device found, idVendor=1314, idProduct=1520, bcdDevice= 4.09
[ 212.467264] usb 1-1.4: New USB device strings: Mfr=3, Product=4, SerialNumber=5
[ 212.467280] usb 1-1.4: Product: Auto Box
[ 212.467294] usb 1-1.4: Manufacturer: Magic Communication Tec.
[ 212.467307] usb 1-1.4: SerialNumber: 0123456789FEDCBA
[ 212.769072] usb 1-1.4: reset high-speed USB device number 5 using xhci_hcd
[ 212.874360] usb 1-1.4: unable to get BOS descriptor or descriptor too short

I’m currently powering it with a 30W laptop charger so should be getting enough power.

How do I check that it has properly downloaded the APK? My iPhone 15 does not give the CarPlay prompt when I plug it in.

All suggestions welcome! Thanks :slight_smile:

Hi, which dongle are you using? - ignore me I just read the message again!

Try and run v3 in the GitHub releases

Thanks for the quick reply.

I replaced the AppImage with the 64-bit v3.0.2 and it has downloaded the APK now.

But on launch I get this error:

A JavaScript error occurred in the main process

Uncaught Exception:

Error: LIBUSB_ERROR_NO_DEVICE

at Interface.claim (/tmp/.mount_ReactCLt1gwH/resources/app.asar/ node_modules/node-carplay/node_modules/usb/dist/usb/interface.js:34:21)

at Timeout. getDevice [as _on Timeout] (/tmp/ mount_ReactCLt1 gwH/ resources/app.asar/node_modules/node-carplay/modules/DongleHandler.js

149:23)

at listOnTimeout (node:internal/timers:559:17)

at process process Timers (node:internal/timers:502:7)

That displays on the screen and I have to click OK to clear that before the app loads but I get a blank screen. The console output is:

pi@raspberrypi:~/Desktop $ ./Carplay.AppImage

/home/pi/.config/ReactCarplay

spawning CarPlay {

dpi: 240,

nightMode: 0,

hand: 0,

boxName: ‘nodePlay’,

width: 800,

height: 480,

fps: 30

}

directory found

device not connected

[2124:0107/114655.997436:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114655.998026:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114655.998479:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114655.998905:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114655.999297:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114655.999760:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114656.000375:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114656.003017:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114656.004174:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114656.004917:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114656.005555:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114656.006102:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114656.006653:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2124:0107/114656.007184:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

CarPlay connection

CarPlay connection

[2124:0107/114740.949489:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

Should I rebuild from scratch on v3.0.2 or is replacing the AppImage enough? Not sure what other dependencies changed?

Additionally, if I launch the app without the dongle connected it launches without the javascript error and then I plug in the dongle I get:

^Cpi@raspberrypi:~/Desktop $ ./Carplay.AppImage

/home/pi/.config/ReactCarplay

spawning CarPlay {

dpi: 240,

nightMode: 0,

hand: 0,

boxName: ‘nodePlay’,

width: 800,

height: 480,

fps: 30

}

directory found

device not connected

[2119:0107/120149.963131:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.963738:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.964451:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.965324:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.965964:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.966604:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.967534:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.969854:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.970464:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.971273:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.971938:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.972592:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.973235:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

[2119:0107/120149.974296:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

CarPlay connection

CarPlay connection

[2119:0107/120154.395755:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

sending dpi

FATAL ERROR: LIBUSB_TRANSFER_ERROR

Aborted

Hello!

Did you create the required udev rules? Run the following from a terminal if you haven’t already:

FILE=/etc/udev/rules.d/52-nodecarplay.rules
echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"1314\", ATTR{idProduct}==\"152*\", MODE=\"0660\", GROUP=\"plugdev\"" | sudo tee $FILE

Restart and then try again.

Thanks for the suggestion. I’d used the install script to set it up so the dev rule was there but I double checked and it is there. So no change.

I might do a Lineage build just to verify the dongle works.

I think it was a bad USBC cable…

:melting_face:

:rofl: good to know for the future!