Search found 6 matches
- Fri May 01, 2015 9:04 pm
- Forum: General Discussion and Questions
- Topic: How can I use CAN?
- Replies: 1
- Views: 3117
Re: How can I use CAN?
Damy2005, do you have the CAN wires connected to another CAN device? Something on the bus must reply with an 'ACK', so you need to connect something CAN to it.
- Fri May 01, 2015 5:10 pm
- Forum: General Discussion and Questions
- Topic: CAN, OSError: 116
- Replies: 10
- Views: 14072
Re: CAN, OSError: 116
Happy to report that by only upgrading to Micro Python v1.4.2 on 2015-04-21; PYBv1.0 with STM32F405RG from v1.3.10 made it capable to transmit data to other devices with the same commands (note, using a MCP2562 transceiver): >>> from pyb import CAN >>> can1 = CAN(1, CAN.NORMAL, extframe=False, presc...
- Fri May 01, 2015 12:43 pm
- Forum: General Discussion and Questions
- Topic: CAN, OSError: 116
- Replies: 10
- Views: 14072
Re: CAN, OSError: 116
Thank you Bryan! That was a typo, but before the cut and paste, scary thing is, I've typed it in wrong twice in REPL!!!
So, can1.send('h', 123, timeout=100) works a lot better, if only the Error: 116 would not follow it! I will upgrade the firmware now and report back!
So, can1.send('h', 123, timeout=100) works a lot better, if only the Error: 116 would not follow it! I will upgrade the firmware now and report back!
- Thu Apr 30, 2015 6:14 pm
- Forum: General Discussion and Questions
- Topic: CAN, OSError: 116
- Replies: 10
- Views: 14072
Re: CAN, OSError: 116
Ok, we have: Micro Python v1.3.10 on 2015-02-13; PYBv1.0 with STM32F405RG and the timeout=5000 line is complaing about extra arguments, do I need a newer version than 1.3.10? >>> can1.send('test', 123, timetout=5000) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: e...
- Wed Apr 29, 2015 10:18 pm
- Forum: General Discussion and Questions
- Topic: CAN, OSError: 116
- Replies: 10
- Views: 14072
Re: CAN, OSError: 116
Yes, I have the pyboard wired to a MCP2562, which in turn is connected to 2 more CAN systems talking fine to each other (they, PIC18F2580 devices, have FTDI serial to USB converters, so I can watch them on the PC too). Could it be that my baud rate is not close enough to the 125kbps that the other t...
- Wed Apr 29, 2015 9:07 pm
- Forum: General Discussion and Questions
- Topic: CAN, OSError: 116
- Replies: 10
- Views: 14072
Re: CAN, OSError: 116
Any luck with this problem? I am seeing the exact same OSError: 116! {from a fresh power-up, REPL through COM29:} >>> from pyb import CAN >>> can = CAN(1, CAN.NORMAL, extframe=False, prescaler=22, sjw=1, bs1=6, bs2=8) # aiming for a 125kbps baud (127k now) >>> can.setfilter(0, CAN.LIST16, 0, (123, 1...