Coder Social home page Coder Social logo

icsim's People

Contributors

grazfather avatar mike-jorgeson avatar willayd avatar zombiecraig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

icsim's Issues

Setting the speed to Zero on ./controls start

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.

READ BAD ADDRESS

when i start the command ./icsim vcan0 and after ./controls vcan0, the instrument cluster stops giving the error READ BAD ADDRESS

Errors during install

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

Web view Android input file

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

Dashboard and Control Panel Can not Run at the Same Time

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.

CAN data description

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.

Feature request: Add the ability to use keyboard instead of controller

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.

FAILED: icsim

Hello All - I am facing this error I have been trying to solve for the last few days. Would someone be able to give me some advice? Thanks.

Screenshot 2024-02-14 at 11 52 08 AM

Permission denied:

I am having a problem running program, i get the same error for just about every action as well. I have made sure everything is installed but still not sure what the problem is. Any help would be appreciated. I am new to this so if its some obvious issue please bear with me and thank you .

VirtualBox_Rabble Clone_09_10_2023_23_59_51

Cansniffer and Candump commands are not showing any results

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...

fatal error: SDL2/SDL.h

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.

Can't fix read: bad address even with new SDL2 libraries when opening icsim and controls at the same time

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

Error DATA_DIR not found

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.

make will not compile on Raspberian

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!

Visual Glitch

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.

Need help: when I type "make", these errors came out

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

image

Error: "icsim" is not resonding

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:

image

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?

ICSim executable file is missing in repo.

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

but it don't have icsim executable file. please fix it.
Capture

Only throttle command

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

Trying to use with CANable: write: No buffer space available

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

For ICSim folders are missing on github

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]
ICsim_folder_missing

i have problem

when run ./icsim vcan0
i see error Using CAN interface vcan0
SIOCGIFINDEX: No such device
Uploading it.png…

License?

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.

Rate limit control loop

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.

Can't interact with ICSim

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

there is file missing icsim

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

@zombieCraig

car

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.