Bounty to create a program

46 views
Skip to first unread message

Tom N

unread,
Jan 19, 2021, 5:11:44 AM1/19/21
to python-can
Hi all,
Looking for someone (will pay) to code me something that does this with python-can - using a pican2 duo on rpi.

can0 will rx
can1 will tx

program will listen for message on can0 from arbid 150 payload is 1a c6 - when message is received immediately send on can1 arbid 153 payload 7f 1a 

program will need to listen for message on can0 from arbid 250 payload 1a c1 when message is received immediately send on can1 arbid 253 payload 1a 98

So basically needs to listen for two messages at the same time and depending which one is seen on the network to send the one i need.

Let me know if you can

Felix Divo

unread,
Jan 19, 2021, 9:54:23 AM1/19/21
to python-can
Seems like if you are following this (https://github.com/hardbyte/python-can/blob/develop/examples/receive_all.py#L26) example, it should be quite simple to implement. Just check for the id (if msg.arbitration_id == 0x150 or msg.arbitration_id == 0x250) and then send it with bus.send(can.Message(arbitration_id=0x153, data=[0x7f, 0x1a])). So it should be easy to do if one is familiar with Python.

Felix D.

Tom N

unread,
Jan 19, 2021, 6:52:53 PM1/19/21
to python-can
Thanks Felix,

I will give it a go, thanks for the tip.

Reply all
Reply to author
Forward
0 new messages