Jump to content
43oh

BRey

Members
  • Content Count

    60
  • Joined

  • Last visited

Reputation Activity

  1. Like
    BRey got a reaction from tripwire in Energia MT SPI transfer question   
    I am slowly learning about RTOS with Energia MT. In working out some issues with libraries, I found this in the SPI transfer() function:
     
      /* wait for transfer to complete (ie for callback to be called) */
        while (transferComplete == 0) {
            ;
        }
    Lines 191-194 here:  https://github.com/energia/emt/blob/a350116673c64a5ba71a034b3baaa384b888776e/src/ti/runtime/wiring/SPI.cpp
    (Energia MT uses DMA for the SPI transfer and an interrupt callback routine sets transferComplete=1)
     
    Other RTOS reading leads to me believe this is not the best way to do this, or is this so fast that using an RTOS wait doesn't make sense?  (The AIR430boost library uses a semaphore)
     
    B
  2. Like
    BRey got a reaction from bluehash in Avnet - Free shipping thru 4/22 or $15 discount on carrier International   
    Thanks for this. In the details link I found: Enjoy free UPS 2-Day shipping (up to 10lbs) for all orders placed on products.avnet.com. Use promocode: WELCOME416
     
    B
  3. Like
    BRey got a reaction from energia in WiFiThing   
    Introduced himself over here:  http://forum.43oh.com/topic/9281-hello-from-wifithing-rapid-iot-creation/ But really didn't highlight that they are using Energia on both the Master and Remote devices. The Kickstarter page: https://www.kickstarter.com/projects/180874809/wifithing (Only 4 days left and few dollars short).   Fraunchpad, boosterpack compatible,  Anaren booster.
     
    Welcome!
    B
  4. Like
    BRey got a reaction from bluehash in ESP8266 - Anyone here play with one?   
    @@Rickta59 Thanks for the clarification and interesting reading. I don't know much about either MIPS or Tensilica, but I also found some interesting reading about their intermingled "roots."
     
    @@ghlawrence2000 I also rushed out to buy and had problems with the original modem firmware. I found the SDK compiled code much more reliable. I have been following this guy who is apparently planning something close to commercial with ESP12s:  http://tech.scargill.net/home-control-2015/
     
    B
  5. Like
    BRey got a reaction from Fred in ESP8266 - Anyone here play with one?   
    I have a few of them-ESP01, ESP12 & ESP201. They are all the same core, just different available pins & antennas. There isn't much variation in price( $3 - $4 ea.); the ESP01 comes with through holes & pins so it is easy to start with but only has a few I/o. I like the 201 for breadboarding (after moving the 4 pins on the end to the top of the board) Documentation is poor, but the net is filling in the missing pieces.
     
    Delivered firmware uses RX/TX & "AT" (modem) command extensions. Easy to set up, reliable, but slow. Automatically stores settings in Flash (SSID, passkey, baud, etc.) Lots of Arduino users. 
     
    Then the SDK was released and usage exploded. It is a MIPS core running 80mhz with lots of flash. There are several SDK forks some makefile/gcc but most Eclipse. I have used one with MQTT built in, played with the nodeMCU Lua, and now there is an Arduino port (Using the Arduino 1.6+ IDE, select ESP8266 board) Similar code compatibility issues to using Arduino code in Energia. If you want simple, go Arduino. I like Eclipse OK and the code produced has been more reliable for me.
     
    The game changer here is the price & price/performance esp. since a pretty solid wifi transceiver is builtin. Since it is Wifi I doubt true low power is possible, but there are some sleep modes and people experimenting. Deep sleep requires wiring a pin only available on the larger models (unless you can wire to the tiny chip!).
     
    I have gotten them fast from this guy: http://stores.ebay.com/tomyuen007?_trksid=p2047675.l2563He is across town (Atlanta) so 1-2 day service for me; but should be fast for anyone in the U.S. Ali & ebay probably best elsewhere.
     
    I find it ironic that Arduino people are hooking an 80mhz 32 bit MPU as a modem to their 16mhz 8bit boards.
     
    B
  6. Like
    BRey got a reaction from bluehash in ESP8266 - Anyone here play with one?   
    I have a few of them-ESP01, ESP12 & ESP201. They are all the same core, just different available pins & antennas. There isn't much variation in price( $3 - $4 ea.); the ESP01 comes with through holes & pins so it is easy to start with but only has a few I/o. I like the 201 for breadboarding (after moving the 4 pins on the end to the top of the board) Documentation is poor, but the net is filling in the missing pieces.
     
    Delivered firmware uses RX/TX & "AT" (modem) command extensions. Easy to set up, reliable, but slow. Automatically stores settings in Flash (SSID, passkey, baud, etc.) Lots of Arduino users. 
     
    Then the SDK was released and usage exploded. It is a MIPS core running 80mhz with lots of flash. There are several SDK forks some makefile/gcc but most Eclipse. I have used one with MQTT built in, played with the nodeMCU Lua, and now there is an Arduino port (Using the Arduino 1.6+ IDE, select ESP8266 board) Similar code compatibility issues to using Arduino code in Energia. If you want simple, go Arduino. I like Eclipse OK and the code produced has been more reliable for me.
     
    The game changer here is the price & price/performance esp. since a pretty solid wifi transceiver is builtin. Since it is Wifi I doubt true low power is possible, but there are some sleep modes and people experimenting. Deep sleep requires wiring a pin only available on the larger models (unless you can wire to the tiny chip!).
     
    I have gotten them fast from this guy: http://stores.ebay.com/tomyuen007?_trksid=p2047675.l2563He is across town (Atlanta) so 1-2 day service for me; but should be fast for anyone in the U.S. Ali & ebay probably best elsewhere.
     
    I find it ironic that Arduino people are hooking an 80mhz 32 bit MPU as a modem to their 16mhz 8bit boards.
     
    B
  7. Like
    BRey got a reaction from bluehash in A new MSP430 coming [MSP432 ARM]   
    To answer my own question, the Cloud IDE references Energia-0101E0015b1 so I guess an update is coming soon.
  8. Like
    BRey got a reaction from tripwire in A new MSP430 coming [MSP432 ARM]   
    This tells you my age, but maybe they are reviving the Intel 432: http://en.m.wikipedia.org/wiki/Intel_iAPX_432
    Good find @@AWenzel
  9. Like
    BRey got a reaction from Rickta59 in Issues with MSP430G2 HW UART on Ubuntu 14.04   
    I have had better results using a separate USB-Serial (TTL) adapter wired to P1.1 & P1.2 and pulling the rx/tx jumpers.  The FET still works via the onboard USB & I can run 115200 baud. I generally use Putty. The FET needs to be connected before starting Energia and doesn't seem to handle swapping TI devices while it is running, but I have been able to swap serial adapters.
     
    I have these udev rules:
     
     #MSP430
    SUBSYSTEM=="usb",ATTR{idVendor}=="0451",ATTR{idProduct}=="f432",GROUP="dialout",MODE="666" #Stellaris SUBSYSTEM=="usb",ATTR{idVendor}=="1cbe",ATTR{idProduct}=="00fd",GROUP="dialout",MODE="666" #Arduino UNO SUBSYSTEM=="usb",ATTR{idVendor}=="2341",ATTR{idProduct}=="0043",GROUP="dialout",MODE="666" 
  10. Like
    BRey got a reaction from bluehash in [Energia Library] LowPowerLab RFM69 adapted to Energia   
    I have posted my adaptation of the LowPowerLab HopeRF RFM69 (Semtech SX1231) wireless module library: https://github.com/brey549/RFM69.git  The RFM69 modules are improved versions of the popular RFM12b units (Jeelabs, openenergymon, etc) and offer up to 100mw output as well as digital RSSI() and OOK modes.  I have successfully tested MSP<>MSP, Stellaris<>Stellaris,MSP<>Stellaris,MSP<>Arduino,Stellaris<>Arduino.
     
    I only had to change the attachInterrupt() call in RFM69.cpp & add #define overrides for the interrupts() & noInterrupts() functions in RFM69.h  I have extensively tested the library on both the MSP430G2553 & the Stellaris LM4F modules and only using the default SPI ports(Pins 7,14,15) . I chose Pin 6 for the interrupt in and Pin 8 for the SlaveSelect.
     
    I tried many different approaches for Interrupt disable/enable; and these are the only approaches that have held up under heavy packet traffic:
    For the MSP430:
     
    #define interrupts() P1IE |= BIT4; // turn on/off our interrupt !!MUST MATCH IRQ PIN!!
    #define noInterrupts() P1IE &=~BIT4; // Method used by attachInterrupt()
    This has the disadvantage that it must be changed in code to match a pin change.
     
    The Stellaris proved illusive, several recommended/coded approaches just wouldn't hold up under stress (the "Gateway" example receiving from 4 or 5 high rate nodes-eventually the board freezes mid-reception); I found this method in the HardwareSerial library:
     
    #define interrupts()        ROM_IntMasterEnable();  // Stellaris fast enable/disable
    #define noInterrupts()      ROM_IntMasterDisable();
     
    The "Node" & "Gateway" examples work "out of the box" note that LPL uses Pin 9 for the LED; I just pulled the jumper plug off the RED_LED and added a jumper lead to Pin 9.  I have pounded my Launchpads with millions of packets but programming is not my field so let me know of any fixes or improvements.
     
    B
     
    PS: These HopeRF modules are pretty small, I use these Breakout boards: https://github.com/uChip/RFM69W_BOB  (available from Oshpark 3/$6.75)
  11. Like
    BRey got a reaction from Automate in [Energia Library] LowPowerLab RFM69 adapted to Energia   
    I have posted my adaptation of the LowPowerLab HopeRF RFM69 (Semtech SX1231) wireless module library: https://github.com/brey549/RFM69.git  The RFM69 modules are improved versions of the popular RFM12b units (Jeelabs, openenergymon, etc) and offer up to 100mw output as well as digital RSSI() and OOK modes.  I have successfully tested MSP<>MSP, Stellaris<>Stellaris,MSP<>Stellaris,MSP<>Arduino,Stellaris<>Arduino.
     
    I only had to change the attachInterrupt() call in RFM69.cpp & add #define overrides for the interrupts() & noInterrupts() functions in RFM69.h  I have extensively tested the library on both the MSP430G2553 & the Stellaris LM4F modules and only using the default SPI ports(Pins 7,14,15) . I chose Pin 6 for the interrupt in and Pin 8 for the SlaveSelect.
     
    I tried many different approaches for Interrupt disable/enable; and these are the only approaches that have held up under heavy packet traffic:
    For the MSP430:
     
    #define interrupts() P1IE |= BIT4; // turn on/off our interrupt !!MUST MATCH IRQ PIN!!
    #define noInterrupts() P1IE &=~BIT4; // Method used by attachInterrupt()
    This has the disadvantage that it must be changed in code to match a pin change.
     
    The Stellaris proved illusive, several recommended/coded approaches just wouldn't hold up under stress (the "Gateway" example receiving from 4 or 5 high rate nodes-eventually the board freezes mid-reception); I found this method in the HardwareSerial library:
     
    #define interrupts()        ROM_IntMasterEnable();  // Stellaris fast enable/disable
    #define noInterrupts()      ROM_IntMasterDisable();
     
    The "Node" & "Gateway" examples work "out of the box" note that LPL uses Pin 9 for the LED; I just pulled the jumper plug off the RED_LED and added a jumper lead to Pin 9.  I have pounded my Launchpads with millions of packets but programming is not my field so let me know of any fixes or improvements.
     
    B
     
    PS: These HopeRF modules are pretty small, I use these Breakout boards: https://github.com/uChip/RFM69W_BOB  (available from Oshpark 3/$6.75)
  12. Like
    BRey got a reaction from larsie in Over the air programming   
    Felix at lowpowerlabs has set it up on his moteinos(Arduino minis with RFM radios) using an SPI flash module and a modified bootloader that looks for hex records in the flash when it starts.  He has some posts and links to his github here:  http://lowpowerlab.com/blog/category/moteino/wireless-programming/  
     
    Hopefully his explanations and codes samples will be helpful (I am also on thin ice regarding this stuff).
    B
  13. Like
    BRey got a reaction from bluehash in panStamp switching to CC430   
    They give credit to Mr. Kimball (Rickta59):  "panStamp's serial firmware loader, developed by Rick Kimball"
  14. Like
    BRey got a reaction from pabigot in Zigbee packet sniffer   
    If you already have the TI stick, this converts the CC2531 capture to Wireshark: https://github.com/andrewdodd/ccsniffpiper.
  15. Like
    BRey got a reaction from PenguinInfinity in TI Back to School Promotion   
    @@PenguinInfinity  Yes, it is old stock and discontinued. My manufactured date is 2011. Metawatch calls this and the AU2000(digital) models Gen1. Current models are Gen2. Someone in a forum post said he was able to run Gen2 software on an AU2000, but I doubt this will work on the Analog/Digital.  
     
    @@tezet  The license is Code Composer Studio IDE - Node Locked Single User (N01D) with 1 year of updates.  IE. no restrictions. This will come in handy for developing on the new Launchpad.
  16. Like
    BRey got a reaction from bluehash in TI Back to School Promotion   
    @@PenguinInfinity  Yes, it is old stock and discontinued. My manufactured date is 2011. Metawatch calls this and the AU2000(digital) models Gen1. Current models are Gen2. Someone in a forum post said he was able to run Gen2 software on an AU2000, but I doubt this will work on the Analog/Digital.  
     
    @@tezet  The license is Code Composer Studio IDE - Node Locked Single User (N01D) with 1 year of updates.  IE. no restrictions. This will come in handy for developing on the new Launchpad.
  17. Like
    BRey got a reaction from GeekDoc in TI Back to School Promotion   
    I found this in the Github project description: "...The CCS IDE is available for FREE to all Meta Watch users that purchased a WDS11x development system or a development clip for STRATA or FRAME. Until there is a special download site, just get the 30 evaluation version and email ccs@metawatch.org when you need your license upgraded."
     
    When I sent the note I included the fact that I have been using CCS for some time so the 30 day evaluation period isn't valid.
     
    I was surprised at the quick response, there are notes in the metawatch forums about multiple week waits.
  18. Like
    BRey got a reaction from bluehash in TI Back to School Promotion   
    I found this in the Github project description: "...The CCS IDE is available for FREE to all Meta Watch users that purchased a WDS11x development system or a development clip for STRATA or FRAME. Until there is a special download site, just get the 30 evaluation version and email ccs@metawatch.org when you need your license upgraded."
     
    When I sent the note I included the fact that I have been using CCS for some time so the 30 day evaluation period isn't valid.
     
    I was surprised at the quick response, there are notes in the metawatch forums about multiple week waits.
  19. Like
    BRey got a reaction from bluehash in TI Back to School Promotion   
    Can anyone tell if this kit includes the full CCS license? The watch says it comes with the programming clip and this thread says that entitles you to the CCS license:  http://www.metawatch.org/forums/thread/1157/free-license-for-code-composer-studio#dis-post-8232
     
    Also, I find this interesting, the analog hands are controlled by the processor: http://www.metawatch.org/forums/thread?thread=436#dis-post-2776
  20. Like
    BRey got a reaction from guipoletto in TI Back to School Promotion   
    Can anyone tell if this kit includes the full CCS license? The watch says it comes with the programming clip and this thread says that entitles you to the CCS license:  http://www.metawatch.org/forums/thread/1157/free-license-for-code-composer-studio#dis-post-8232
     
    Also, I find this interesting, the analog hands are controlled by the processor: http://www.metawatch.org/forums/thread?thread=436#dis-post-2776
  21. Like
    BRey got a reaction from adrianF in [Energia Library] Anaren CC110L AIR BoosterPack   
    Rei-
    Thanks for working with and encouraging Anaren to provide this. I have been testing and have it working on both MSP & Stellaris, including MSP to Stellaris.
     
    What data rate/power level did you use to achieve 100 meters?
     
    B
  22. Like
    BRey got a reaction from bluehash in Energia and raspberry pi   
    I have several PlugComputers that I use to communicate with Launchpads. The PlugComputer is an ARM Linux box similar to the RPi; I run debian and Arch. I use Modbus Serial protocol and have connected using both the USB cable and also hard wired to the serial port pins (the Plug has a 3.3v ttyS0).  I have used this Arduino implementation in Energia: https://sites.google.com/site/jpmzometa/arduino-mbrt/arduino-modbus-slave and Python Minimal Modbus  on the Plug:  http://minimalmodbus.sourceforge.net/
     
    B
×
×
  • Create New...