RemotiveLabs + Protopie
Use our RemotiveCloud together with Protopie and feed real vehicle signals into your prototype.
Read this blogpost for a good introduction https://www.protopie.io/blog/challenging-the-status-quo-in-automotive-prototyping
Try it out yourself
This solution requires Protopie-Connect which in turn requires a Protopie Pro or Enterprise plan.
Disclaimer: This is a fully functional but not yet officially released protopie-connect bridge-app
Here is a video that goes through each step in this README, its highly recommended to watch this video to get a better understanding of how it works. Show video with complete demo (6 min)
Prepare recording in RemotiveCloud
- Go to https://demo.remotivelabs.com and approve the captcha.
- Follow instructions to start a broker and play the recording to the broker.
- Finally press "Go to broker" to open our RemotiveBrokerApp from which you can control the recording being played.
Start connect bridge
The steps above must be performed before starting the bridge-app since we the bridge-app will try to connect to the cloud
Requires node 18.3 or higher
-
Make sure that protopie-connect is up and running!
-
Install deps
npm install
- Start bridge-app
Replace $BROKER_URL and $API_KEY below with the correct values found in RemotiveBrokerApp
node src/remotivelabs-bridge-app.js \
--url $BROKER_URL \
--api_key $API_KEY \
--config samples/instrument-cluster-config.json
If you get this error you are using node < 18.3 so please update to a newer version.
TypeError: parseArgs is not a function
Play the recording
Once the bridge-app is running you can "play" the recording from the RemotiveBrokerApp. Simply press the play icon and you should see the progressbar moving. There should also be message visible in protopie-connect and in the terminal where the bridge-app was started. This means that the recording is being replayed properly. You can now control the recording with Play, Pause & Stop and also drag the progressbar back and forth to seek to specific place in the recording.
Run Pie
There are two bundled pies with this demo, one with only speed (car-integration-just-speed.pie) and a bigger instrument cluster with gear, steering wheel direction and more (car-integration-instrument-cluster.pie). Both works out-of-the-box so you can pick any of them or run both.
- You should now see signals showing up in Protopie connect.
- Add car-integration-just-speed.pie to ProtoPie connect and start it in web-browser.
- That should be it!
Troubleshooting
Some common errors
Connect failures
- Mostly, the reason is that there is no broker listening to the url you have provided. Please check the url of the broker again.
Failed to connect to broker
13 INTERNAL: Received RST_STREAM with code 0
- Check your APP_KEY so that matches
Failed to connect to broker
2 UNKNOWN:
- If you get this message directly when connecting its probably due to you are subscribing to a signal that does not exist
Subscription stream ended
Please do not hesitate to use our discussion/community forum for questions regarding this.
https://github.com/remotivelabs/remotivelabs-community/discussions