Re: mbed LPC1768 project
Posted by
Ziq on
Jan 04, 2016; 6:38pm
URL: http://bluesaab-forum.90.s1.nabble.com/mbed-LPC1768-project-tp111p114.html
EDIT: formatting disappeared due to re-login, fixed now!
Seth: the tranciever for CAN itself is seldom included, I guess it's due to the fact that there are different hardware layers that can be used for CAN (12V, 24V, RS485 etc.)
I updated the original post the connections I have so far. Since I plan to integrate the mic as soon as you guys have some success with it the design is not complete ;)
The reason I bought the Sparkfun breakout of RN52 was that I bought BC05B due to your previous recommendation, planned to solder some wires on it for first prototype but managed to destroy it =P
Karlis: You switched the numbers on the transceiver ;)
Well I had a good base to start with and thought if there should be different classes for the different modules they should not be dependent on each other, hence interaction is in the main loop. I would like to have communication interrupt-based in the future but then I have to figure out how to trigger software interrupts to trigger the main loop.. Right now my RN52 implementation is quite slow since I wait for response before continuing, I measured the time to 12-14 ms until I had the response but it seems to work. Right now it's -10°C outside and I haven't taken it for a drive in a couple of days so the SID extremely slow when I test so it's hard to really know at the moment...
I haven't actually tested the status handling properly, I'm a bit reluctant to work on it before I have upgraded the RN52 firmware. But you are right, I make the interpretation in RN52.get (RN52.cpp, row 77) and will take action needed in the end of my main loop.
Saab 9-5 2005 Nav
Building my own project based on mbed LPC1768 + RN52