xv4y 46 Posted January 9, 2013 Share Posted January 9, 2013 Hi! I am proud to share with you the result of my work during this afternoon. This code is some kind of beta as I have not tested everything. I have done a successful communication between a MSP430G2452 driving a cheap 433 Mhz transmitter to a Arduino Nano listening the receiver. I have not tested the client/server examples but I will try it soon with some 2,4GHz modules I have. The code compiles on both MSP430G2452 and MSP430G2553 but the latter has not been tested. Apart from understanding what was done by the code, my work has been to change the timer and interrupts codes from AVR to MSP430, and to port the crc16.h AVR/libc library to Energia (mostly rewriting no real coding). Comments are welcome of course. I will try to make the same code working on both Arduino and Energia/MSP430 later. The link to download is at the bottom of this blog article : http://xv4y.radioclub.asia/2013/01/09/librairie-virtualwire-1-10-pour-le-msp430/ The original documentation applies : http://www.open.com.au/mikem/arduino/VirtualWire.pdf http://www.open.com.au/mikem/arduino/ Yan. Rickta59, demon1977, energia and 3 others 6 Quote Link to post Share on other sites
RichardVowles 12 Posted January 10, 2013 Share Posted January 10, 2013 Their prices have come down on Aliexpress - 5 pairs are only US 69c a pair. Quote Link to post Share on other sites
Rickta59 589 Posted January 10, 2013 Share Posted January 10, 2013 When I started contributing to the Energia project this is the kind of end result I envisioned. Many users building on a common platform and everyone benefiting. I'm happy you were able to get this going. One less thing I will have to write for myself! Thanks for sharing! -rick Quote Link to post Share on other sites
xv4y 46 Posted January 11, 2013 Author Share Posted January 11, 2013 Hi Rick, Thanks for this comment. I am happy too ;-) That was more than 10 years I have not been really working with micro-controlers. Now they are far more powerful and that gives a lot of flexibility. For me, Arduino has really changed the deal because you can now mix low level and high level programming allowing both new-comers and experimented developers to do interesting things together. Energia is a great project first because the MSP430 has its own advantages in some applications in front of the AVR. Now making it working also on Stellaris will sure make more community projects (including Arduino, Arduino Due, MSP430, Stellaris...) even more fruitful. About sharing, well since this code was in GPL I had no choice ;-) However I think working on an open platform one should contribute to the community. I will not publish all my codes, but as much as I can will try to do it for the libraries I will be working on in my projects. Yan. Quote Link to post Share on other sites
xv4y 46 Posted January 14, 2013 Author Share Posted January 14, 2013 Hi, The original author has now published version 1.12 of the library that should work on both Arduino (ATMega328) and Energia (MSP430G2452/G2553). Examples are provided for both platforms. Download is possible on the author's website. Comments and feedback are welcome. Yan. energia 1 Quote Link to post Share on other sites
demon1977 0 Posted January 22, 2013 Share Posted January 22, 2013 Hi, Version 1.12, the code no compiles: C:\energia\hardware\msp430\libraries\VirtualWire\VirtualWire.cpp:32:24: fatal error: util/crc16.h: No such file or directory compilation terminated. Quote Link to post Share on other sites
xv4y 46 Posted January 22, 2013 Author Share Posted January 22, 2013 Hi demon 1977 (great year), Perhaps the author forgot to include my port of the crc16.h library. Try to download my first version of the VirtualWire library (the first link on the first post here above). You will find the util directory you can copy in the library directory. If this not work either, try to use my library as this one is tested... Yan. Quote Link to post Share on other sites
demon1977 0 Posted January 22, 2013 Share Posted January 22, 2013 Hi Yan, I did not find the download link. Quote Link to post Share on other sites
xv4y 46 Posted January 22, 2013 Author Share Posted January 22, 2013 Here the last "library pack" I uploaded :http://xv4y.radioclub.asia/ftp/libraries_Energia_xv4y_20130109.zip Quote Link to post Share on other sites
demon1977 0 Posted January 22, 2013 Share Posted January 22, 2013 There's no file crc16.h Quote Link to post Share on other sites
xv4y 46 Posted January 23, 2013 Author Share Posted January 23, 2013 Hi, I have updated the package on my download page : http://xv4y.radioclub.asia/boutique/docs/ Yan. demon1977 and energia 2 Quote Link to post Share on other sites
xv4y 46 Posted January 26, 2013 Author Share Posted January 26, 2013 Mike McCauley, the original author, has added the missing files in the new 1.13 release... Yan. Quote Link to post Share on other sites
dodgecandle 0 Posted February 15, 2013 Share Posted February 15, 2013 Hello there, first of all, many thanks for your fantastic work, I have downloaded and installed latest version of VirtualWire library 1.14 et when trying to compile with Energia 009 I get the following errors: ..\VirtualWire.cpp:568:7: error: expected constructor, destructor, or type conversion before '(' token..\VirtualWire.cpp:648:1: error: expected '}' at end of input Any advices? Thanks in advance Quote Link to post Share on other sites
xv4y 46 Posted March 26, 2013 Author Share Posted March 26, 2013 Hi all, It seems that the original author as merged my code but not tested it compiling nor working. This my original port that works on G2553 and G2452. http://xv4y.radioclub.asia/ftp/VirtualWire110_Energia_XV4Y.zip Yan. Quote Link to post Share on other sites
WarEnd 0 Posted March 27, 2013 Share Posted March 27, 2013 Hi. Thanks Its compiles and run on msp430g2553 Except on msp430g2452 i get: core.a(TimerSerial.cpp.o): In function `TimerSerial__TxIsr':/home/warend/energia-0101E0009/hardware/msp430/cores/msp430/TimerSerial.cpp:213: multiple definition of `__isr_9'VirtualWire/VirtualWire.cpp.o:VirtualWire.cpp:(.text.Timer_A_int+0x0): first defined herecollect2: ld returned 1 exit status This error maybe because 2452 have only one timer ??? I buy many msp430g2452 chips, and cheap rf 315mhz from ebay: and now tray to compile virtualwire for my projects :-( Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.