zombiecraig / icsim Goto Github PK
View Code? Open in Web Editor NEWInstrument Cluster Simulator
License: GNU General Public License v3.0
Instrument Cluster Simulator
License: GNU General Public License v3.0
Is there a way to set the speed to zero when we start the controls UI? Currently, the speed oscillates when starting this UI and many messages keeps on flooding (as seen with candump vcan0
) which makes it a bit harder to find a pattern.
when i start the command ./icsim vcan0 and after ./controls vcan0, the instrument cluster stops giving the error READ BAD ADDRESS
UPDATE
Issue solved, needed to just install it via backports :/
For the past day now i have been trying to isntall the simulator on the following operating systems kali, archman, parrot os
however during make i get this error
gcc -I/usr/include/SDL2 -c -o icsim.o icsim.c
icsim.c:19:10: fatal error: SDL2/SDL.h: No such file or directory
19 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: icsim.o] Error 1
simple error right? not really, i tried multiple things running the full command to install needed libs
sudo apt-get install libsdl2-dev libsdl2-image-dev can-utils
however i get
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
can-utils is already the newest version (2020.11.0-1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libudev-dev : Depends: libudev1 (= 247.3-7) but 250.4-1~bpo11+1 is to be installed
E: Unable to correct problems, you have held broken packages.
i have done multiple commands such as updating my OS, upgrading my OS, upgrading the distro, upgrading the packages, fixing broken, fixing missing packages, as well as cleaning but i can not seem to make this work again, i really do not know why despite hours and memory abuse trying to search google for what even is happening XD
If you can not help me out thats fine but general advice would be suggested on where to go from here
Update
Just now found another solution that still has not worked
apt-get download libudev0 libudev0:amd64
results in
W: Download is performed unsandboxed as root as file '/home/xea43p3x/Can-Reverse-Enginerring/ICSim/libudev0_200-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ran it again and it some how just did nothing when i try the following command
sudo apt install cmake libevdev-dev libudev-dev libconfig++-dev git
i still get
The following packages have unmet dependencies:
libudev-dev : Depends: libudev1 (= 247.3-7) but 250.4-1~bpo11+1 is to be installed
E: Unable to correct problems, you have held broken packages.
when i cache it
sudo apt-cache madison libudev-dev
libudev-dev | 250.4-1~bpo11+1 | https://deb.parrot.sh/parrot parrot-backports/main amd64 Packages
libudev-dev | 247.3-7 | https://deb.parrot.sh/parrot lts/main amd64 Packages
libudev-dev | 247.3-7 | https://deb.parrot.sh/parrot parrot/main amd64 Packages
systemd | 247.3-7 | https://deb.parrot.sh/parrot lts/main Sources
Hi i trying to uploud image in web view from input file i can select image but after that, i have no file selected what means empty, Does anybody could sugest whats going
I have a problem with running the controller
First, I start the Dashboard with the command ./icsim vcan0
After that, when I want to open a Control Panel in a new terminal with the command ./controls vcan0
the Dashboard closes immediately with the message "read: Bad Address" in the Dashboard's related terminal, and it can't be open until the Control Panel is running.
Hi,
It isn't an issue but a question. I wondering how to simulate a car CAN network to stress and simulate behavior of my project on Automotive Grade Linux (https://gerrit.automotivelinux.org/gerrit/apps/low-level-can-service).
But for that I need description of CAN signals to be able to decode them. So, I guess that a seed of your project when used, always produce the same data and doesn't change upon utilization ?
Or better, do you have the description of the base signals that you use and then randomize so I could use them !? (Ok, I'm a bit lazy :)
Thanks you by advance.
First of all, thank you for making this simulator.
I think it'd be great ICSim had the ability to use the keyboard instead of an external controller.It could be different combinations of keys.
For example:
s + left_arrow
- left turn signal
s + right_arrow
- right turn signal
s + up_arrow
- hazard signal
f + up_arrow
- increase fuel level
f + down_arrow
- decrease fuel level
etc....
Additionally, there could also be a top level menu for Actuators, where it has sub-menus for different sub-systems, each subystems has actions such as above.
Hi,
ICSim installed successfully..
vcan0 interface is UP and running.... and all commands executed from ./setup_vcan.sh..
executed the commands ./icscim vcan0 and ./controls vcan0
Issue:
$cansniffer -c vcan0
45|ms | ID | data ... < vcan0 # l=20 h=100 t=500 slots=0 >
$candump -c vcan0
no result
please help me...
root@kali:~/ICSim# gcc -I/usr/include/SDL2 -c -o icsim.o icsim.c
icsim.c:19:10: fatal error: SDL2/SDL.h: No such file or directory
19 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
compilation terminated.
Hello
I'm using Ubuntu 18.04.5 LTE in VirtualBox
I downloaded this repo, followed the readme, compiled the program with no errors but when I tried to open controls and ICSim togheter, icsim crashed with the "read: bad address" error.
I tried to search here, and I've seen report of this bug with the fix being "recompile with the updated SDL2 libraries".
Installing sdl2-dev and sdl2-dev-image from apt got me the 2.0.8 version.
I tried to download the 2.0.12 version from the sdl website and I compiled it. I changed the MakeFile to use the 2.0.12 headers folder, I deleted the .o files and the compiled files and I run the make command, but the error persists. I even tried to copy the libs from an Arch Linux installation but to no avail.
I don't know what to do next. Maybe using a newer version of Ubuntu with the SDL2 packages updated in the apt repos will help me?
Thank you
Hi,
Sorry to bother with this but I'm quite new to Linux.
I got the instrument cluster sim to my system, no problem. It's in root/ICSim.
When I try to run the sim from the terminal I get error DATA_DIR not found.
I had a look in my files and the DATA_DIR folder is in the ICSim folder.
However when I try 'locate DATA_DIR' in the terminal I don't get any results.
Any help is much appriciated.
When make runs $gcc -I/... icsim.c lib.o ... it returns an error saying that the lib.o file will not run. If you know how could you please update the Makefile file or README.md to include how to compile and run ./icsim on a RaspberryPi 2? Thank you!
Im having a strange issue with the ICSim every so often it will blackout the sides of the screen and the car doors will randomly lock, unlock and straight up disappear. I have it installed on a kali linux baremetal machine, but i also have it on ubuntu virtual machine and the error is not present. I have tried reinstalling a few times and looking for errors but have found nothing.
Hi, My laptop is Macbook Pro 14' M1. I suspect the error comes from the M1 chip.
Does anyone can help me out!
arallels@ubuntu-linux-20-04-desktop:~/Downloads/ICSim/ICSim-master$ make
gcc -I/usr/include/SDL2 -c -o icsim.o icsim.c
gcc lib.c
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o: in function _start': (.text+0x18): undefined reference to
main'
/usr/bin/ld: (.text+0x1c): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [Makefile:14: lib.o] Error 1
I could install and create all required files, and after that I ran it with "./icsim vcan0" command. A few seconds later I got this error message:
I tried also with clean command to delete all created files and then recreate them, however the same error message popped up.
Do you know what could cause this failure?
here is the list of files.
drwxrwxr-x 5 rajan rajan 4096 Jun 21 20:54 .
drwxr-xr-x 25 rajan rajan 4096 Jun 21 20:54 ..
drwxrwxr-x 2 rajan rajan 4096 Jun 21 20:48 art
-rw-rw-r-- 1 rajan rajan 20553 Jun 21 20:48 controls.c
drwxrwxr-x 2 rajan rajan 4096 Jun 21 20:48 data
drwxrwxr-x 8 rajan rajan 4096 Jun 21 20:48 .git
-rwxrwxr-x 1 rajan rajan 13598 Jun 21 20:48 icsim.c
-rw-rw-r-- 1 rajan rajan 14111 Jun 21 20:48 lib.c
-rw-rw-r-- 1 rajan rajan 8338 Jun 21 20:48 lib.h
-rw-rw-r-- 1 rajan rajan 13168 Jun 21 20:48 lib.o
-rw-rw-r-- 1 rajan rajan 35149 Jun 21 20:48 LICENSE
-rw-rw-r-- 1 rajan rajan 300 Jun 21 20:48 Makefile
-rw-rw-r-- 1 rajan rajan 3378 Jun 21 20:48 README.md
-rwxrwxr-x 1 rajan rajan 100 Jun 21 20:48 setup_vcan.sh
Hello Craig,
I could run everything ok but I can only use the arrow up and see the mph raising. As per the other commands they are not impacting on the icsim. I think I can see them in the cansniffer because frames change but I dont understand why I cant see them on the simulator.
Any idea?
Thanks
Hi,
I've been trying to get this to work with CANable on a raspberry pi but I seem to be having a communication problem with the can interface.
Basically I bring up the physical can interface by:
sudo slcand -o -c -s5 /dev/serial/by-id/*CANtact*-if00 can0
sudo ifconfig can0 up
Using candump I can see the actual interface itself is working fine.
As soon as I run ./controls can0
the terminal fills up with write: No buffer space available
.
Just curious if anyone has any thoughts on how to get this working.
I guess the only thing I can think of is I've installed can-utils via apt, but then provided lib.o for ICSim by compiling can-utils myself.
Thanks,
Matt
Hello ,
I am trying to open ICsimulator by running command ./icsim vcan0 but it is giving error as ' No such file or directory'.
this issue is due to missing folders present on git-hub.
'Icsim' and 'controls' these folders are missing on github currently.
Please help me to get these missing folders.
I am reachable at [email protected]
That is the error. I am trying to install libsdl2-dev ,libsdl2-image-dev and can-utils packets but it can't complete my request plss help me to solve my issue #21
Could you please specify the license for this project? I would like to use this for my research and perhaps fork and improve upon the existing code base. Thank you.
Right now there's just a delay sleep(x)
in every iteration of the main loop. This makes is so that the CAN messages can come in at an inconsistent rate. In text mode, the default delay was sending too many messages for the IC to keep up.
The loop should track how long since the last loop, and if it's going to fast, then sleep the appropriate amount of time.
when i run the command ./icsim.c or ./controls.c it comes back with the error: failed to open controls: cannot recognise format of binary file
Good afternoon,
im trying to interact with the simulator, i have a NGS Maverick gamepad. But nothing is happening, i installed some drivers and the remote is recognized by the system, and by the program too:
No Haptic support
Name: GreenAsia Inc. USB Joystick
Number of axes: 5
Number of buttons: 12 ...
The simulator is on, and generating CAN messages, but no interaction with the joystick. Can you help me with this?
Best regards
hey bro one file is missing icsim executable file
i even tried to compile icsim.c to executable program
gcc icsim.c -o icsim
this throwed me error
help me bro
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.