Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by lilyhack

  1. I didn't get it working with Anaren ZigBee So I used Digi XBee modules (XBee S2C) with TI TM4C129 on Energia This code should help you getting started. Connect the Xbee TX, RX to TI RX, TX respectively ( I used UART3 of TI) and GND, 3.3V for power.
  2. I am trying to find the timing of how long it takes for an analogread operation like below. How do I do that in energia? Is there a way I can timestamp before and after the code and take the difference? voltSensor= analogRead(A7);
  3. Do you have an example of how to read/write to the internal EEPROM?
  4. I am building a control system (TM4C129/123) that generates many data. These data are sent back to a higher level controller (Raspberry Pi) through ZigBee. Now, instead of TI always sending the data, I want to change the system so that when Raspberry Pi request data, only then TI sends data. So that means storing those data until the data request come. The data can be lost after the power off. How do I do that? I understand there is a limit to how long we can store the data depending on the size of the data.
  5. @@Robert I am planning to use ADC functionalities. Is that part of driverlib?
  6. Can we use Tivaware with Energia? On a Mac? All the downloadable TivaWare libraries I see here are .exe files. Did anyone try it?
  7. I am using the current sensor HO 10-P with my TM4C123 launchpad board. Essentially I have to connect the Vout pin to a GPIO, configure the GPIO as an ADC pin and then configure the ADC controller to read the Vout from the sensor. I will connect the Vout to PE2 (which is AIN2 and also a GPIO). Wondering how to configure this GPIO as an ADC and then read it? Can you show a sample code snippet?
  8. I am using this current sensor in my project. The Vout pin needs to be connected to the ADC. The best way to do this is to connect it to some analog pin and tie that analog pin to ADC through the code. Anything else? Can you refer to a sample code for this?
  9. I have an XBee (S2C) connected to my Mac and another XBee connected to a TI microcontroller (TIVA-C129) communicating with each other - Mac as a coordinator and TI as a router. I can communicate between them, but on the TI side, I can't read the exact data that is coming in the serial port. On the Mac, I am running below python code that reads the incoming serial data through XBee and writes an acknowledgment. #!/usr/bin/python import serial ser = serial.Serial('/dev/tty.usbserial-A104IC2U', 9600) ack='A' while True: incoming = ser.readline().strip() if incoming != 'A': print '%s' % inco
  10. I am planning to port this code for TIVA-C129 using Energia (on a Mac). 1st trying if it even compiles. I have below include #include "XBee.h" #include <SoftwareSerial.h> Getting error "#include <SoftwareSerial.h> ^ compilation terminated." I even tried doing #include "SoftwareSerial.h" but same error. What am I missing?
  11. Not sure how to use UART1 but I used UART3 and used Serial3 in the code and it worked. Thanks.
  12. I am using TM4C129 Launchpad launchpad and trying to connect XBee Series 2 (S2C) through UART. Looking into the pinout of TM4C129, I am connecting like below XBee TX <---> RX (UART0) XBee RX <---> TX (UART0) XBee 3.3V <---> pin#41 XBee GND <---> pin#62 I use below code on the LaunchPad at Energia void setup() { Serial.begin(9600); //pinMode(13, OUTPUT); } void loop() { Serial.println('H'); delay(1000); Serial.println('L'); delay(1000); } And the below python code runs on my Mac as a coordinator
  13. Does Energia support Anaren A2530E24A-LPZ ZigBee module? Specifically for TM4C123GXL Launchpad (or TM4C129 Launchpad)? If so, how can I get some code samples? Anaren site only has example for CCS. If not, does Energia support any other ZigBee module to work with TivaC?
  14. Thought lm4f is for stellaris, not for TIVA. But looks like it has all the libraries. Thanks for the help.
  15. After installing Energia in Mac, what is the path for Energia Libraries? /Documments/Energia/libraries doesn't have anything. A quick Google search says the library path in Mac is /Applications/Energia.app/Contents/Resources/Java/hardware But I don't see any library folder for TIVA-C (TM4C129) there which is what I am using. The installation in Mac seems to created different directory structure than Windows (I don't own a PC anymore). I am looking for TIVA-C Ethernet libraries installed while installing Energia. Any suggestion?
  16. I am using the WebClient example to connect to a service running on my local network on a raspberry pi. If I use IP address of the raspberry PI as the server, I can connect IPAddress server(192,168,46,70); // RPI But if I use char server[] = "http://raspberrypi.local"(.local name created through Avahi), the connection failed. Anybody else had this issue before? How did you revolve?
  17. I am using DhcpAddressPrinter example with M4C129 LaunchPad to generate IP address from Mac address. It works in my home network but not in the office network. I get below message in my office network "Failed to configure Ethernet using DHCP" What am I missing?
  18. Is mDNS supported for TM4C129 LaunchPad? Is there an example at Energia?
  19. Hi I have a web server running on TM4C129 LaunchPad. How can I access it remotely. We followed 'EthernetWebServer' example at Energia and also below example. But it sets up the IP that is dependent on your router and not accessible remotely. E.g. running the server at office and accessing it from home? energia.nu/.../ Is there any other example for remote access?
  20. I am using TM4C129 LaunchPad for an Industrial IoT product. We want to have a web server running on it. I am looking into this example of setting up the IP address. To do it this way, every time you join a new network, you have to change the code for a different IP address. Is there a way to avoid this problem? Any example of how can I change the IP address automatically as soon as it joins a a new network? I believe that the TivaWare provided example enet_io for the TM4C129x board does what I am looking for. But I would like an example in Energia. Can you please help?
  21. Hi, I know that Energia is still not supporting CC3200 LaunchXL (http://energia.nu/pin-maps/guide_cc3200launchpad/) Is there any expected timeline on when it will support CC3200 LaunchXL?
  22. Looks like cloudshark has got some problem. The link doesn't work after posting. Please see this dropbox link https://www.dropbox.com/s/effz7ywmxl3rl7p/mDNS-CC3000.pcapng
  23. Please see this now https://www.cloudshark.org/captures/5781a9217a05 is the CC3000 IP
  24. @Thorvard Thanks a lot. Here is the packet (w/o any firmware update) https://www.cloudshark.org/captures/bdb28f23975f
  • Create New...