4 posts / 0 new
Last post
Triggermouse
Triggermouse's picture
Spoofing/fuzzing can frame data

Is there a way to spoof/fuzz via the OVMS only? I thought I could do this via OVMS along with Savvycan, however I can never get Savvycan to actually spoof anything. For example, I want to inject data into a certain frame that should unlock a door, turn on a light, change a gauge etc. Is there a way via the shell command in OVMS module that I can just enter a command to inject in order to test/spoof to make sure I have the right frame id/data? Thank you!

dexter
dexter's picture
Spoofing/fuzzing can frame data

I haven't used that myself, but the former RE TCP server has been moved into the CAN log/play framework. It still has the "transmit" mode, but is confusingly included only in "can log":

OVMS# can log start tcpserver ?
discard CAN logging as TCP server (discard mode)
simulate CAN logging as TCP server (simulate mode)
transmit CAN logging as TCP server (transmit mode)

OVMS# can log start tcpserver transmit ?
crtd Start CAN logging as TCP server (transmit mode)
gvret-a Start CAN logging as TCP server (transmit mode)
gvret-b Start CAN logging as TCP server (transmit mode)
lawricel Start CAN logging as TCP server (transmit mode)
pcap Start CAN logging as TCP server (transmit mode)
raw Start CAN logging as TCP server (transmit mode)

For manual CAN transmissions, use "can … tx":

OVMS# can can1 tx ?
extended Transmit extended CAN frame
standard Transmit standard CAN frame

OVMS# can can1 tx standard ?
Usage: can can1 tx standard <id> <data...>

Example tx of length 4 frame to id 0x123:
can can1 tx standard 123 1a 2b 3c 4d

Regards,
Michael

Triggermouse
Triggermouse's picture
Perfect, thanks again for all

Perfect, thanks again for all your help Michael! You have been a real life saver!

dar63
Hi triggermouse !

Hi triggermouse !
If, thanks to the information given by Michael, you achieve to get data and understand how to work, I am very interested with a guide for dummies.
This is really something I'd like to learn, to go deeper with OVMS box.
Thanks
David

Log in or register to post comments
randomness