openDsh / dash

Join us on Slack! https://join.slack.com/t/opendsh/shared_invite/zt-la398uly-a6eMH5ttEQhbtE6asVKx4Q
GNU General Public License v3.0
238 stars 69 forks source link

Can we use custom file instead of CAN Bus for receiving data from our vehicle? #132

Open NKumar1612 opened 1 year ago

NKumar1612 commented 1 year ago

Issue

Use a file which collects data from vehicle and use data from there instead of CAN Bus.

Hardware

Device Connection Method Screen Mobile Device Android Auto Version
Raspberry Pi 3b USB Cable Wave Share 15.6" Touch screen Realme Narzo 30Pro v.8.4.624324-release

Installation Method: Install.sh

Description of problem:

I am working on a custom vehicle as off now, and whilst I haven't got any issues yet, I was wondering if there's a way instead of using CAN Bus protocol, if I could just use a Custom file. From where I would collect my vehicle's Speed-o-Meter, Charge-Meter, ODO Meter, and the other vehicle data.

Expected Result:

Able to pipe data through a file, as an alternative to just using CAN Bus.

Problem-relevant steps to reproduce:

I couldn't find any, since I'm just asking for a suggestion. I don't have any issue with the application as of now and it is working well.

Traceback (if applicable):

Nothing as of now.

Additional info:

Nothing as of now.

icecube45 commented 1 year ago

Can you walk through how you envision this working (on a high level)? I'm not sure if I'm fully understanding what the ask is.

NKumar1612 commented 1 year ago

Ok, so the thing is that we're actually building a caravan from the scratch over here. When we've been building it we haven't used an OBD board but instead have created a Python Script from where it will be connected to all of the sensors within the vehicle and the data will be pipelined from there to the program. The sensors being the speedometer, GPS device, Charge-o-meter, ODO meter, etc.

I have gone through the code and also the application, but I've only seen a choice for collecting and using data through CAN Bus, like in the images below:

2022-11-30-132323_1024x600_scrot 2022-11-30-132305_1024x600_scrot_002

So i would just like to know, if there's a possibility in which instead of CAN Bus, can i pipeline the data through the python script and not through SocketCAN or ELM327 CAN Bus interfaces?

robert5974 commented 1 year ago

Have you already tested the python script? If you aren't using an OBD board, what type of network are the messages formatted for? Are the messages from the vehicle custom as well?