Jump to content

numeros

Members
  • Content Count

    3
  • Joined

  • Last visited

About numeros

  • Rank
    Noob Class

Recent Profile Visitors

16 profile views
  1. numeros

    Sensor Controller with Energia

    Excellent, That way the code worked flawlessly! Thank you very much!
  2. numeros

    Sensor Controller with Energia

    Hello, thanks for your kind response. I've attached the program using Clock, based in the Galaxia_Clock example. -> Galaxia_TX_Sensors.txt : The function called by myClock.begin() only gets to execute once, transmmiting the packet successfully and showing the sent packet, but it gets stuck there. I've also attached the same program, but excluding all Serial calls. -> Galaxia_TX_Sensors_loop_same_values.txt : The function is executed every 3000ms as defined in the myClock.begin() function, but the sensor readings don't change, it keeps sending the same sensor values to the receiving unit. If I add a counter to the string, the number changes but the sensor readings keep being the same. I've also tried initializing the sensors again in the called function, but that doesn't work either. It seems that something in the clock function or the rtos is keeping the sensors library to sucesfully return the sensors values after the first function execution...
  3. numeros

    Sensor Controller with Energia

    Hello, I tried to replicate the low power home network weather monitor using the Galaxia library and the available sensors library to program a CC1350 sensortag rev 1.5.1, but it fails to compile as the library (galaxia) doesn't seem to be compatible with that platform. Using the default multitasking library, is not possible to get sensor readings using timer or clock, as the code inside the loop only executes once, or shows the same sensor readings despite using the get() function in the reading. The only way it worked for me is using a conventional loop (read sensors, transmit using easylink, delay). But as the ideal way to do this is to achieve a very low power consumption after each data transmission, I tried shutting down the peripherials (Wire.end()) before calling the delay(), but it simply crashes. I know that the delay functions in EnergiaMT are a idle task that puts the processor in a low power mode, depending on the contrstraints set by the active peripherials. I have attached 2 examples, only 1 line different (wire.end() before the delay()), and very different results. sensor_read_not_working.txt -> reading and transmitting sensor values in CC1350 sensortag and not working if wire.end() is called to save power. (sensor values don't change). sensor_read_tx_working.txt -> reading and transmitting sensor values in CC1350 sensortag but without ending the wire function, the sensor values change. I don't want to think the only reliable way to do simple sensor readings, sub-ghz TX and enter low power mode is using Sensor Controller Studio.
×