CAN bus implementation

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
SwimDude0614
Posts: 32
Joined: Mon Mar 10, 2014 1:32 am

Re: CAN bus implementation

Post by SwimDude0614 » Mon Jun 23, 2014 2:40 am

Thanks! I built from source and it worked wonderfully. For anyone wondering, the instructions on dfu-util's site work perfectly (Ubuntu 14.04 64-bit).

http://dfu-util.gnumonks.org/build.html

User avatar
TravisT
Posts: 72
Joined: Sun Feb 23, 2014 2:31 pm
Location: Portland, OR
Contact:

Re: CAN bus implementation

Post by TravisT » Tue Jun 24, 2014 9:26 am

I am glad I am motivating you to work on the CAN implementation. I also asked to see if I can get some official support as well. Not sure how busy people are who are involved with this project... hope not too busy.

I do not want to steer the thread away from the issue you are seeing so I will keep this short.
_______________
Travis Travelstead

SwimDude0614
Posts: 32
Joined: Mon Mar 10, 2014 1:32 am

Re: CAN bus implementation

Post by SwimDude0614 » Tue Jun 24, 2014 3:24 pm

I'm not sure what kind of officiality you're looking for - if you mean part of the pyboard module, then that's exactly what I'm working on. I am working to add source code to the micropython project, not just an independent library/add on.

If you want to see the current progress, check out this thread: http://forum.micropython.org/viewtopic.php?f=3&t=176

jevers76
Posts: 5
Joined: Thu Jan 02, 2014 9:10 pm

Re: CAN bus implementation

Post by jevers76 » Mon Aug 04, 2014 1:29 am

SwinDude0614, how is your CAN bus project? I am also planning to add CAN to Micropython. I plan to first use the STM32Cube utility to make a standalone project and get the two CANs on the stm42f407 to talk to each other. Then add it into Micropython. I am using a STM32F407 discovery board and emblocks IDE as the software as my downloader/debugger tool.

SwimDude0614
Posts: 32
Joined: Mon Mar 10, 2014 1:32 am

Re: CAN bus implementation

Post by SwimDude0614 » Mon Aug 04, 2014 2:11 am

I'm afraid I haven't touched it since my last post. I've picked a previous personal project and have been working entirely on that.

blmorris
Posts: 348
Joined: Fri May 02, 2014 3:43 pm
Location: Massachusetts, USA

Re: CAN bus implementation

Post by blmorris » Tue Aug 05, 2014 4:09 am

SwimDude0614 - Hope your new project is going well, sorry to hear that you won't be working on uPy CAN for the time being. I just wanted to thank you for putting your preliminary work on creating a new micropython module in C up on the dev wiki. It saved me a lot of time that I would have spent figuring out the basic structure of the modules, very useful as I made a small tweak to the I2C class and will be useful as I attempt to tackle I2S (any week now…)

User avatar
TravisT
Posts: 72
Joined: Sun Feb 23, 2014 2:31 pm
Location: Portland, OR
Contact:

Re: CAN bus implementation

Post by TravisT » Sat Feb 14, 2015 7:13 am

I have been away for a bit working on other project and came back to see if I found any updates. On another thread I found what appears to be a working implementation of CAN.

http://forum.micropython.org/viewtopic. ... +bus#p2596

Is it true that it is now working? Has any of you tried it?

I will look into the code to also see if there is hardware level filtering.
_______________
Travis Travelstead

SwimDude0614
Posts: 32
Joined: Mon Mar 10, 2014 1:32 am

Re: CAN bus implementation

Post by SwimDude0614 » Sat Feb 14, 2015 7:18 am

That's great news! I have not tried it. Looking forward to hearing from someone with the hardware that can confirm it works

User avatar
TravisT
Posts: 72
Joined: Sun Feb 23, 2014 2:31 pm
Location: Portland, OR
Contact:

Re: CAN bus implementation

Post by TravisT » Sat Feb 14, 2015 7:43 am

Yes, I am excited also. This is what was holding me back from using this on projects that I can really put my time into.

Also found this reference that also included filters, which makes me happy.
http://forum.micropython.org/viewtopic. ... ages#p3062
_______________
Travis Travelstead

User avatar
TravisT
Posts: 72
Joined: Sun Feb 23, 2014 2:31 pm
Location: Portland, OR
Contact:

Re: CAN bus implementation

Post by TravisT » Sat Feb 14, 2015 8:15 am

_______________
Travis Travelstead

Post Reply