rhysmorgan134 / react-carplay

MIT License
423 stars 65 forks source link

Compatibility with CPC200-TBOX #18

Closed jagonga closed 1 year ago

jagonga commented 2 years ago

Hello, Do you know if your application will be compatible with CPC200-TBOX? I'm trying to connect it but with no luck. I look forward to hearing from you soon. Thanks.

Kind regards, Javier

jagonga commented 2 years ago

Log:

pi@raspberrypi:~/Desktop $ sudo ./Carplay.AppImage --no-sandbox spawning carplay { dpi: 240, nightMode: 0, hand: 0, boxName: 'nodePlay', width: 1824, height: 984, fps: 60 } directory found device not connected Socket connected. sending data... 14 0.4780701754385965 0.8851626016260162 (node:1487) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'transfer' of null at /tmp/.mount_CarplaPkrV3P/resources/app.asar/node_modules/node-carplay/modules/DongleHandler.js:239:29 at new Promise () at /tmp/.mount_CarplaPkrV3P/resources/app.asar/node_modules/node-carplay/modules/DongleHandler.js:238:13 at new Promise () at DongleHandler.serialise (/tmp/.mount_CarplaPkrV3P/resources/app.asar/node_modules/node-carplay/modules/DongleHandler.js:229:16) at DongleHandler.sendTouch (/tmp/.mount_CarplaPkrV3P/resources/app.asar/node_modules/node-carplay/modules/DongleHandler.js:137:14) at Carplay.sendTouch (/tmp/.mount_CarplaPkrV3P/resources/app.asar/node_modules/node-carplay/modules/Carplay.js:25:22) at IpcMainImpl. (/tmp/.mount_CarplaPkrV3P/resources/app.asar/build/electron/main.js:76:17) at IpcMainImpl.emit (events.js:315:20) at Object. (electron/js2c/browser_init.js:161:9469) (Use carplay --trace-warnings ... to show where the warning was created) (node:1487) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:1487) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 16 0.4780701754385965 0.8851626016260162 (node:1487) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'transfer' of null at /tmp/.mount_CarplaPkrV3P/resources/app.asar/node_modules/node-carplay/modules/DongleHandler.js:239:29 at new Promise () at /tmp/.mount_CarplaPkrV3P/resources/app.asar/node_modules/node-carplay/modules/DongleHandler.js:238:13 at new Promise () at DongleHandler.serialise (/tmp/.mount_CarplaPkrV3P/resources/app.asar/node_modules/node-carplay/modules/DongleHandler.js:229:16) at DongleHandler.sendTouch (/tmp/.mount_CarplaPkrV3P/resources/app.asar/node_modules/node-carplay/modules/DongleHandler.js:137:14) at Carplay.sendTouch (/tmp/.mount_CarplaPkrV3P/resources/app.asar/node_modules/node-carplay/modules/Carplay.js:25:22) at IpcMainImpl. (/tmp/.mount_CarplaPkrV3P/resources/app.asar/build/electron/main.js:76:17) at IpcMainImpl.emit (events.js:315:20) at Object. (electron/js2c/browser_init.js:161:9469) (node:1487) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)

rhysmorgan134 commented 2 years ago

Hi, it is only tested with the device linked. That being said, it may work with this. The error is showing that it has not detected the device, so I am guessing it is using different PID and VIDs.

Would you be able to post the output of

lsusb

with the device plugged in?

jagonga commented 2 years ago

Hi, Yes, sure, this is the output I got:

pi@raspberrypi:~ $ lsusb Bus 001 Device 008: ID 05ac:12a8 Apple, Inc. iPhone5/5C/5S/6 Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 001 Device 006: ID 0424:7800 Standard Microsystems Corp. Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Any idea what can I do to make it work? Thanks.

encku commented 2 years ago

@jagonga your device is not compatible with this method. Your dongle act like phone for tricking the car system.

As you can see in first line: Bus 001 Device 008: ID 05ac:12a8 Apple, Inc. iPhone5/5C/5S/6

jagonga commented 1 year ago

Dear @encku Many thanks for your reply. I understand, thank you. Finally in order to configure at home the device, I've installed alphaVNC on the device and configured the wifi, then I use RealVNC to see the screen remotely at home. Many thanks for your help.