Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. Energia Version energia-1.6.10E18 I beleive this is refered to as Energia V17 Anaren C110L Booster Pack - there is no revision on silkscreen MSP430F5529 Launc Pad Rev 1.6 Running Energia Sketch AIR430BoostUSAFCC -WirelessTest.ino Including test serial output dispaly at end of this write up Basic Problem: CC110l Signal Receive strenght is reported near minimum when boards are only 6 inches to 1 foot aparts. Range is only a few feet before test crash. RSSI reports -45 at about 6-8 inches and -60 at 12-14 inches. I'm running wirelesstest.ino using 2 configurations of MSP430F5529 with a CC110L Booster Pack. This test sets up both boards to transmit and recevie an incrementint 0-9 count from each other and display the DATA count with RSSI, LQI, CRCBIT status info. It infintely repeats, no action required. I have both on seperate USB ports on my laptop mapped to serial COM5 and COM7. Both COM ports put out the status seen below and repeat endlessly with no error. I had same problem with previous version of energia and have tried ths with 4 different CC1101 boards. The launch pads run other programs fine. The boards are about 6 inches aprt and report RSSI value of -45 and going to about a foot its -63, I can see the RSSI value change in real time as I move the boards closer or further apart. The sketch has variable POWER_MAX set. I runt the sketch through Energia showing the near bottom signal strenght and I have also imported the wirlesstest.ino to CCS and reloaded the code o launchpads using CCS to try to find out what value is being programmed for power level but I'm not so experienced in debugging this very complcated driver code with structures calling structures and pointers used everywhere. I can't understand why the signal strenght is so low, I can see any configuration error I'm making either H/W or Energia -wise. If the code is bugged surley other would see this. But it seems like for some reason the POWER_MAX variable is not being programmed correctly. It goes through several redefines and POWER_MAX is reall not POWER_MAX, It sets the board to around 4dbm as I can trace through the driver files but that is pretty high power anyway, and I should be able to go thru rooms and not drop out with boards a few feet apart. I have tried this in different rooms and places and have tied battery power to my boards to seperate them from the PC and I get the same problem. The other wireless tests in the FCC directory fail as well after a few feet of board seperation. As far as RSSI value reported below the CC110L specification Section 5.18.2 page 37, in middle of page it has a note saying RSSI is reported in dbm value. Below that it states the RSSI Status Register is a 2s compliment and gives equations of how to convert to dbm, below that are graphs that show Power Level vs RSSI value. These 2 graphs are nearly 100% linear so fo a given RSSI value, lets say best case I'm getting of -45, the output power level is -45 dbm. So weather RSSI resgister is the actual dbm or needs conversion either way, my power is near bottom and after a seperation of a few feet the serail output stops logically because there is near 0 signal strenght My though is to try and use CCS to find what value is being programmed for power level. That is not so easy, I've debugged and looked over the code in great detail but I'm more towards the upper novice when it comes to code this complicated. If anyone has an idea why this low signal level may be happening or can advise a idea of what I could use as a watchpoint for the programmed power level value that would help alot. I've had these for 6 months now and have yet to make them work at anything other than a few feet of distance. Some CCS debug info I've found: Sketch Begins with Radio.begin(0x01, CHANNEL_1, POWER_MAX); In A110X2500Radio.c POWER_MAX is redfiend: Line 77 #define POWER_MAX POWER_4_DBM // Alias for maximum provided power In A110X2500Radio.c Line 69 POWER_4_DBM = 0, // 4dBm In A110LR09Config.h starting at Line 64 there is a large " Power Table user Settings" All but 5 entries are commented out. One of the uncommented lines, Line 85 #define A110LR09_POWER_4_0_DBM // 4.0dBm Note the A110LR09_POWER_4_0_DBM very close to POWER_4_DBM from A110X2500Radio.c Line 69 I'm wondering if this table is supposed to be selecting the actual power level and for some reason the #define POWER_MAX POWER_4_DBM statement that occurs early on is not getting translated or equated correctly, the code doesn't see a valid power level selected and its programmed at this low value or this low power level I'm seeing is the default? Thanks a million , sorry for the book I wrote, would this have been more appropriate put in Energia Libraries, I'm a newbie, not sure - Don Below is the output from one of the boards on serial port, the other boards output is identical. RX (DATA, RSSI, LQI, CRCBIT): (0Air!, -45, 0, 1) TX (DATA): 2Air! RX (DATA, RSSI, LQI, CRCBIT): (1Air!, -45, 0, 1) TX (DATA): 3Air! RX (DATA, RSSI, LQI, CRCBIT): (2Air!, -45, 0, 1) TX (DATA): 4Air! RX (DATA, RSSI, LQI, CRCBIT): (3Air!, -45, 0, 1) TX (DATA): 5Air! RX (DATA, RSSI, LQI, CRCBIT): (4Air!, -45, 0, 1) TX (DATA): 6Air! RX (DATA, RSSI, LQI, CRCBIT): (5Air!, -45, 0, 1) TX (DATA): 7Air! RX (DATA, RSSI, LQI, CRCBIT): (6Air!, -45, 0, 1) TX (DATA): 8Air! RX (DATA, RSSI, LQI, CRCBIT): (7Air!, -45, 0, 1) TX (DATA): 9Air! RX (DATA, RSSI, LQI, CRCBIT): (8Air!, -45, 0, 1) TX (DATA): 0Air! RX (DATA, RSSI, LQI, CRCBIT): (9Air!, -45, 0, 1)
  3. Today
  4. Problems with Energia on MSP430 LaunchPad

    Hi, I'm getting the same issue when attempting to run the demo program Blink 'usbutil: unable to find a device matching 0451:f432 '. Looking at the 'Common error messages' no further forward. I am using following SW versions:- PC os - WinXP Energia 1.6.10E18 ES430-UART driver The board thats indicated on the ide is :MSP-EXP5430G2553lp' ? The board documentation only has - MSP-EXP5430G2553- so not sure what lp means on the Energia IDE. Port is :COM3
  5. Part Number: TM4C123GH6PM Tool/software: Energia 1.6.10E18 LaunchPad board name and version: TIVA TM4C123GH6PM IDE version: Energia 1.6.10E18 or CCS7.0 OS name and version: Windows7 While uploading a simple LED Blink code on Tiva TM4C123GH6PMevaluation board, I get an error "Failed: Unable to find an entry in the TPI ini file for "TMS470REX"", failing to upload to the device. Please help!
  6. Msp430 software serial error

    Use the hardware serial to communicate, not software serial. As dubnet noted, post your code.
  7. Yesterday
  8. Without LaunchPad

    Yeah. Its so hard understanding for me
  9. Without LaunchPad

    Hi @mesuttopuzlu you need to create a new variant. Do a search on 43oh for “Energia variant”. See for example:
  10. Without LaunchPad

    Hi everone. I am newbe on MSP430 family and new member this forum. Can I use Energia Framework for another MSP430 family without LaunchPad. Because we have a started project that is about water speed measurment and we used MSP430F4152 MCU on the HardWare. There is no posibilty changing MCU on project now. My question is so simple; Is there any posibilty programming MCU on Energia (for example MSP430FR4133 or MSP430F4152) without LaunchPad?
  11. Msp430 software serial error

    With the 5529 you don't want to use software serial. It isn't necessary as the 5529 has 2 hardware serial ports. if you are doing an include of the software serial library in your code you will want to remove it. Also, please only post once. You may also want to post your code with your request for help. It allows folks to better help you.
  12. Hi , I had a problem blinking a Led in a simulink model using Embedded Coder For Energia package(having a pulse generator and digital output on pin 39) , it gives me that error and am irritated about it : 'C:/Program' is not recognized as an internal or external command, operable program or batch file. gmake: * [Tawfiks.o] Error 1### Creating HTML report file Tawfiks_codegen_rpt.html### Build procedure for model: 'Tawfiks' aborted due to an error.Error(s) encountered while building "Tawfiks":### Failed to generate all binary outputs. Any idea how to solve this problem?
  13. Hello, I'm actually trying to communicate with Gps through Uart. But every time its giving error like this. error: #error This version of SoftwareSerial supports only 20, 16 and 8MHz processors. I don't know how to solve it. so, please help me to finish this project. it's very urgent Thanks in advance.
  14. Last week
  15. Problems with Energia on MSP430 LaunchPad

    > Has anyone found a solution? Maybe this will help??? https://github.com/energia/Energia/wiki/Common-error-messages
  16. energia software serial with msp430f5529

    My understanding is that the software serial is only supported in the value line MCUs under energia. However, the 5529 has two hardware serial ports available under energia. I have used both ports on the 5529 with energia in past projects.
  17. while integrating GPS with my msp430. I'm getting these errors from the library. so please someone help me out. C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp:81:2: error: #error This version of SoftwareSerial supports only 16MHz processors C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::begin(long int)': C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp:251:31: error: 'table' was not declared in this scope C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'virtual size_t SoftwareSerial::write(uint8_t)': C:\Users\softdesigners\Desktop\energia-1.6.10E18\libraries\SoftwareSerial\SoftwareSerial.cpp:319:26: error: 'XMIT_START_ADJUSTMENT' was not declared in this scope
  18. MSP432 RTC User adjust

    now I have done some alterations on my file clock.c, and i see in the register's the clock working, so how can I get each parameter (Year, Month, Day, Hour, Minute)
  19. hello! have you got the code for the cc3200?
  20. mCPC, C-Programmable Controller

    mCPC430 is an industry ready, freely C-programmable controller, based on MSP430 processor. It offers the flexibility of C programming language using integrated development environment from Texas Instruments. The main advantage of using this device is that it can take a product from concept to market in a short time by investing only in writing the application code. Thus, the product designer will focus on writing the application code, based on an already designed and tested hardware system. Model mCPC Microcontroller MSP430F6736A 25 MHz system clock, 128 KB Flash, 8 KB SRAM, 24-bit Sigma-Delta ADC, RTC, 32-bit hardware multiplier RTC 32.768 kHz, ±20 ppm Digital inputs 2 digital inputs Digital outputs 2 digital outputs, optically isolated, open-collector Analog inputs 2 universal analog inputs (differential 24-bit) - thermistor, RTD Pt100, Pt500, Pt1000, 2 or 4 wire - bridge sensor - electronic device 2 analog 4-20/2-10 mA (10-bit) Communication interface - 2 x RS232, ultra-low power - RS485, MAX3471, 1.6 μA with receiver enabled Memory archives EEPROM, 25LC256, 32768 x 8-bit organization Power supply Battery 3.6V, A, AA and/or external power supply 5 ... 27VDC, or photovoltaic panel Backup power 330 mF supercap Ambient temperature -25 … +55 °C Housing Polycarbonate UL 94 V0, crystal-clear lid, Bocube Protection Class IP66 Dimensions Length-151mm x Height-80mm x Width-60mm
  21. Earlier
  22. @energia Sorry for the delay following up on this - had some family medical issues that I had to be present for. If it is okay, I'm posting my version here in case somebody else needs to do the same thing, will save them a few steps I basically combined the sketch you linked to with the WPA example - this allowed me to get details about the board (mac, IP) and do basic troubleshooting. Switched the Ethernet client to WiFi and plugged in my own values for SMTP and email addresses. I put a comment in indicating which lines somebody who wants to use this would need to change. My next step is to combine this with the "test" firmware I wrote for my PCB, and, if everything works on the Launchpad, upload the bin using Uniflash. Will let you know how that works out! Code from attached Sketch: //combines the WPA WiFi example with the Arduino "panic email" sketch - uses WiFi client in place of Ethernet - WPA client shows data about your board and connection in serial monitor // //replace the variables on lines 8, 10, 12, 15, 17, 18, 67, 71, 75, 82, and 84 (for your board and your SMTP server) // //If all variables are correct, board connects to router then waits until SW3 is pressed, then sends email. // #include <SPI.h> #include <WiFi.h> WiFiClient client; //the Pin for SW3 on a launchpad int buttonPinSW3 = 3; //your router's SSID char ssid[] = "YourSSID"; //your router's password char password[] = "YourPassword"; boolean statusCheck=false; //your board's mac address byte mac[] = { 0xDA, 0xE5, 0x13, 0x25, 0x47, 0xB8 }; //your SMTP server char server[] = "mail.send.com"; int SMTPport = 25; void setup() { Serial.begin(115200); Serial.print("Attempting to connect to Network named: "); Serial.println(ssid); WiFi.begin(ssid, password); while ( WiFi.status() != WL_CONNECTED) { Serial.print("Attempting to connect to Network named: "); Serial.println(ssid); Serial.println("."); delay(300); } Serial.println("\nYou're connected to the network"); Serial.println("Waiting for an ip address"); while (WiFi.localIP() == INADDR_NONE) { Serial.print("."); delay(300); } Serial.println("\nIP Address obtained"); printCurrentNet(); printWifiData(); pinMode(buttonPinSW3, INPUT); } void loop() { if(digitalRead(buttonPinSW3)==HIGH && statusCheck==false) { if(sendEmail()) Serial.println(F("Email sent")); else Serial.println(F("Email failed")); statusCheck = true; } else if (digitalRead(buttonPinSW3)==LOW) { statusCheck = false; } } byte sendEmail() { byte thisByte = 0; byte respCode; if(client.connect(server,SMTPport)) { Serial.println(F("connected")); } else { Serial.println(F("connection failed")); return 0; } if(!eRcv()) return 0; // change to your public ip client.println(F("helo [173.6.157.102]")); if(!eRcv()) return 0; Serial.println(F("Sending From")); // change to your email address (sender) client.println(F("MAIL From: <sender@send.com>")); if(!eRcv()) return 0; // change to recipient address Serial.println(F("Sending To")); client.println(F("RCPT To: <reader@readme.com>")); if(!eRcv()) return 0; Serial.println(F("Sending DATA")); client.println(F("DATA")); if(!eRcv()) return 0; Serial.println(F("Sending email")); // change to recipient address client.println(F("To: You <reader@readme.com>")); // change to your address client.println(F("From: Me <sender@send.com>")); client.println(F("Subject: Panic Alarm!\r\n")); client.println(F("The panic button was pressed!!!")); client.println(F(".")); if(!eRcv()) return 0; Serial.println(F("Sending QUIT")); client.println(F("QUIT")); if(!eRcv()) return 0; client.stop(); Serial.println(F("disconnected")); return 1; } byte eRcv() { byte respCode; byte thisByte; int loopCount = 0; while(!client.available()) { delay(1); loopCount++; // if nothing received for 10 seconds, timeout if(loopCount > 10000) { client.stop(); Serial.println(F("\r\nTimeout")); return 0; } } respCode = client.peek(); while(client.available()) { thisByte = client.read(); Serial.write(thisByte); } if(respCode >= '4') { efail(); return 0; } return 1; } void efail() { byte thisByte = 0; int loopCount = 0; client.println(F("QUIT")); while(!client.available()) { delay(1); loopCount++; // if nothing received for 10 seconds, timeout if(loopCount > 10000) { client.stop(); Serial.println(F("\r\nTimeout")); return; } } while(client.available()) { thisByte = client.read(); Serial.write(thisByte); } client.stop(); Serial.println(F("disconnected")); } void printWifiData() { // print your WiFi IP address: IPAddress ip = WiFi.localIP(); Serial.print("IP Address: "); Serial.println(ip); Serial.println(ip); byte mac[6]; WiFi.macAddress(mac); Serial.print("MAC address: "); Serial.print(mac[5], HEX); Serial.print(":"); Serial.print(mac[4], HEX); Serial.print(":"); Serial.print(mac[3], HEX); Serial.print(":"); Serial.print(mac[2], HEX); Serial.print(":"); Serial.print(mac[1], HEX); Serial.print(":"); Serial.println(mac[0], HEX); } void printCurrentNet() { Serial.print("SSID: "); Serial.println(WiFi.SSID()); byte bssid[6]; WiFi.BSSID(bssid); Serial.print("BSSID: "); Serial.print(bssid[5], HEX); Serial.print(":"); Serial.print(bssid[4], HEX); Serial.print(":"); Serial.print(bssid[3], HEX); Serial.print(":"); Serial.print(bssid[2], HEX); Serial.print(":"); Serial.print(bssid[1], HEX); Serial.print(":"); Serial.println(bssid[0], HEX); long rssi = WiFi.RSSI(); Serial.print("signal strength (RSSI):"); Serial.println(rssi); byte encryption = WiFi.encryptionType(); Serial.print("Encryption Type:"); Serial.println(encryption, HEX); Serial.println(); } WiFi_Email_Example.ino
  23. Congrats for reaching level 430

    Definitely. I have to get badges back. I'll look into this. Good eye! Goodjob Fmilburn!
  24. SRAM decay and reset

    Hi all, I have a potentially odd question. I am using and MSP430FR5994 board and would like to measure SRAM decay. However, whenever I toggle the system from on to off and then on again the locations in SRAM that I am reading are full of random of values. While I would expect random values, I would not expect them at the timescales that I have the system off. The system is off for no more than 10ms. According to https://spqr.eecs.umich.edu/papers/rahmati-usenix12.pdf that should be short enough where I get very little decay. I should also specify that the random values seem to be consistent across runs; what I mean is they don't really seem random at all since the values appear each time. Some Questions: 1. Could this have something to with my SRAM controller settings? I do not set anything in this regard. 2. Could this have something to do with the way I am powering the board? Probably out of the scope of this forum, but I do have a capacitor, so even though I say "turn off," the voltage supplied to the board usually does not reach zero. Cheers!
  25. Sd card interface with msp430

    For USB access you'll need to use CCS/IAR or similar and the TI MSPWare USB libraries for the communication (look in particular at the both HID and CDC protocols), and you will have to code the interface between the USB messaging protocol to transfer data between the PC and the MSP430<->SD card. I don't think there's an Energia-based way to use the USB connection, and to transfer data between USB and UART would require you writing that code as well.
  26. Shouldn’t there be a special badge on 43oh for earning 430 reputation points? Well, congrats to my dear friend @Fmilburn for having crossed that line of 43oh awesomeness
  27. Energia Hybrid Code

    I think what you are doing is fine for pedagogical purposes and for that matter development. I too have been frustrated at times by not knowing what is going on in Energia and the time it takes to hunt it down. Nonetheless, I found it useful especially when starting out. Note that when you use DriverLib it is possible to hover the cursor in CCS and see what is going on underneath.
  28. Energia Hybrid Code

    Rei, You are clearly demonstrating the benefits of a deeper level of knowledge, which allows you to pick your battles (so to speak), and focus on the production of both code and devices that are efficient not only when they run, but also during the development process. Thanks for sharing your insights. Bob
  29. MSP432 RTC User adjust

    Hi @biza, This two conversions are quite simple to do. Decimal to BCD (considering a number between 0 and 99) - Divide the number by 10 - take te result and shift left 4 places - take the modulo of division (%) by 10 - add the reminder to the left shifted value BCD to Decimal (considering a number between 0 and 99) - Shift right 4 places and multiply by 10 - apply a "AND" opperation between the number and "0xF" to isolate the lowest nible, then, add to last number This video show this: - https://www.youtube.com/watch?v=nieuAryQ2SI
  30. MSP432 RTC User adjust

    can anyone some help me? I have some problems with user rtc configuration in msp432 I made a firmware where the user choose by hardware configuration adjust date and time (alarm clock). The problem is ... after the user adjust date and time I would like use the rtc to control the watch and show the current date and time in a lcd. The problem is ... after the user adjust date and time I would like use the rtc to control the watch and show the current date and time in a lcd. Soo i need some help in two things pass the user value (decimal) to hexadecimal or BCD and the inverse get the hexadecimal or BCD value to decimal to show in LCD . I'am using CCS, in CMSIS on attach i leave the code I have made to test it!
  1. Load more activity
×