Jump to content


  • Content Count

  • Joined

  • Last visited

About anwar1506

  • Rank
    Noob Class

Recent Profile Visitors

496 profile views
  1. I've reposted the question with more detail in a new post: http://forum.43oh.com/topic/10077-energia-compilation-error/ I hope someone can help me there instead
  2. Hey everyone, I'm trying to interface an MSP-EXP430FR5969 with a GPS+GSM module (https://tronixlabs.com.au/arduino/shields/3g-shield/adafruit-fona-3g-cellular-breakout-900-and-2100-mhz-for-optus-vodafone-australia/) I've been able to send a text message to my mobile using the Arduino, but when I try on Energia 1.6 with the module now plugged into the MSP430 I get compilation errors (mainly due to atof not being declared). Here's the code I am using: #include <stdlib.h> #include <stdio.h> #include "Adafruit_FONA.h" #define FONA_RX 4 #define FONA_TX 3 #define FONA_RST 5 #include <SoftwareSerial.h> SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX); SoftwareSerial *fonaSerial = &fonaSS; Adafruit_FONA_3G fona = Adafruit_FONA_3G(FONA_RST); void setup() { while (!Serial); Serial.begin(115200); fonaSerial->begin(4800); fona.begin(*fonaSerial); sendText(); } void loop() { } void sendText () { char sendto[21]= "04XXXXXXXX"; char message[141] = "Text Text Text Text Text Text Text Text Text Text Text Text"; fona.sendSMS(sendto,message); if (!fona.sendSMS(sendto, message)) { Serial.println(F("Sending message")); } else { Serial.println(F("Sent!")); } } "C:\Users\...\Adafruit_FONA.cpp:909:30: error: 'atof' was not declared in this scope" is the main error I am getting. Any suggestions on how to have this compile please? Thanks in advance
  3. Hi again all! I currently have the FONA 3g GPS + GSM module (linked in first first post) so that I can use both over the one UART connection. However, I can't get it to work My current connection is FONA Tx -> MSP Rx (P2.6) FONA Rx -> MSP Tx (P2.5) FONA Gnd -> MSP GNS (P20) FONA Vio -> MSP 5V Vcc (P1) I can upload the empty File -> New code and get the Serial monitor open (on COM5). I was expecting the GPS NMEA data to stream in but it is empty at every baud rate. Is there any basic test code to check if it is plugged in correctly and get some GPS data in? Thanks!
  4. Thank you, that was helpful! I'm still unsure how I should connect a UART module to the backchannel UART (pins 2.1 and 2.0) . Here's what the board currently looks like: https://postimg.org/image/6wcwjbho3/ I am using a micro-USB to computer so the Ez-FET jumpers are all disconnected (although I do have a JTAG debugger if it is necessary to use). Do I remove the RXD and TXD jumpers entirely (or flip them horizontally)? If so, then which pin do I use, the top or the bottom of each RXD/TXD? I have also read that the board uses UART to communicate with the computer. How is it possible then that I can use both UARTs whilst still having it plugged in for coding? Thanks
  5. Thanks for the response Fmilburn. With the MSP-EXP430FR5969, is it possible to connect a separate GPS and GSM module via UART to both Rx/Tx on board (layout shown here: http://energia.nu/wordpress/wp-content/uploads/2014/06/MSP430FR5969.jpeg I've looked at the User's guide and although the board has 2 UART interfaces, one of them is called 'Application (or "Backchannel") UART'. If I am unable to use both UARTs on board to communicate, how is it that the combined GPS + GSM module can interface with the micro-controller using just the 1 interface? Thanks!
  6. Hi! I would like to interface a combined GPS + GSM module to an MSP-EXP430FR5969 using Energia. The aim is at the press of a button/signal, an SMS is sent with the GPS lat/long coordinates at the time of the press. I am planning to use this module (https://tronixlabs.com.au/arduino/shields/3g-shield/adafruit-fona-3g-cellular-breakout-900-and-2100-mhz-for-optus-vodafone-australia/) to connect it all up. I've seen a lot of Arduino examples on this (e.g. using tinyGPS and softwareSerial) but I'm not sure if this same code will work on the MSP430. Will it? How can I go about changing the Arduino set up/pin definitions so that it'll work on the MSP430 using Energia? Thanks in advance
  • Create New...