Jump to content
43oh

Agam

Members
  • Content Count

    27
  • Joined

  • Last visited

Everything posted by Agam

  1. Hi, I tried that code mentioned in the above link. But something is not matching. I made changes in my wificlient.cpp file but did not get any fruitful result. Can you or anyone from your engineering team provide me the code for connect() function in nonblocking mode?
  2. i am also facing this issue.... Has any one found out the solution??
  3. Hi, I am using MQTT client on CC3200 with Energia. Case1=> When CC3200 is connected to wifi router and there is Internet connection on the router, I received data on MQTT and there was no delay in connection of either tcp or mqtt client. Case2=> This case is valid only when CC3200 is connected to the router but there is no Internet on it. Now the issue is that as cc3200 is connected to the router with no Internet, it will try again and again to establish MQTT connection. But when it tries to establish tcp client connection it takes 28 seconds and when return code from tcp arrives
  4. Hi, I am using CC 3200 in ap mode first then when I feed the cc3200 with ssid and password it starts its STA mode. But sometimes cc3200 hangs when shifting from ap 2 sta mode. And when the reset button is pressed my cc3200 connects to ssid that i sent. Why is that happening? Is there any way by which I can do a software reset? I know about the watchdog timer but how to use it in this case. I am pasting my connection code here. #ifndef __CC3200R1M1RGC__ #include <SPI.h> #endif #include <WiFi.h> #include <udma_if.h> const char ssid[] = "CC3200"; const char
  5. Here is my code .... Everything is working as expected. #include <WiFi.h> #define AP_MODE 0 #define STA_MODE 1 #include <udma_if.h> uint8_t mode = 0; const char ssid[] = "CC3200"; const char wifipw[] = "password"; const char s[2] = "-"; char *token; String y = ""; char Rssid[100],Rpsk[100]; unsigned int Port =2390; char packetBuffer[255]; IPAddress Ip(255,255,255,255); char b[1024]; int j=0; WiFiUDP Udp; void setup() { Serial.begin(115200); pinMode(RED_LED, OUTPUT); pinMode(PUSH2, INPUT_PULLUP); if(WiFi.begin() !=WL_CONNECT_FAILED) { Serial.println(
  6. @@PaoloIT Hi, I was facing issues with moving from AP mode to STA mode. But I fixed it. I am using Energia and I am using UDP packets to send ssid and password. Now the problem that I face is that I want my cc3200 to remember the last ssid. At present when a power recycle is done again the AP mode starts. How can I store the last ssid. Kindly provide some help in the form of energia code. Here is the code. #ifndef __CC3200R1M1RGC__ #include <SPI.h> #endif #include <WiFi.h> const char ssid[] = "CC3200"; const char wifipw[] = "password"; const char s[2] = "-"; cha
  7. Hi All, My Ap mode to STA mode is working on CC3200. I made the changes in the WiFi.cpp file. Now I tried to integrate the simplewbserver code. But it is not working. Web page is not opening at that ip. I am sharing my code here.I have used udp packets to send new ssid and password to cc3200. AP mode to sta mode is working but webserver code not working. Can anyone see my code and tell what is the mistake that I have made. #ifndef __CC3200R1M1RGC__ #include <SPI.h> #endif #include <WiFi.h> const char ssid[] = "CC3200"; const char wifipw[] = "pass
  8. Hi All, My Ap mode to STA mode is working on CC3200. I made the changes in the WiFi.cpp file. Now I tried to integrate the simplewbserver code. But it is not working. Web page is not opening at that ip. I am sharing my code here.I have used udp packets to send new ssid and password to cc3200. AP mode to sta mode is working but webserver code not working. Can anyone see my code and tell what is the mistake that I have made. #ifndef __CC3200R1M1RGC__ #include <SPI.h> #endif #include <WiFi.h> const char ssid[] = "CC3200"; const char wifipw[] = "password"; const ch
  9. Hi i am not able to understand this. { "packages": [ { "name": "energia", "maintainer": "Energia", "websiteURL": "http://www.energia.nu/", "email": "make@@energia.nu", "help": { "online": "http://energia.nu/reference" }, "platforms": [ { "name": "Energia CC3200 EMT boards", "architecture": "cc3200emt", "version": "1.0.0", "category": "Energia", "url": "http://energia.nu/downloads/download_core.php?file=cc3200-1.0.2.tar.bz2", "archiveFileName": "cc3200-1.0.2.tar.bz2", "checksum": "SHA-256:48ad1392d766fd354a368576989e42375da6e072e8337ffa2424463f5c632446", "size": "1791123", "boards": [ {"
  10. I also tried the same app.For me it worked on one cc3200.But when I connected it on the other cc3200, it didn't work. Also probability of successful connection is less.
  11. Hi, I am new to cc3200. Would like to use above discussed functionality. Can anyone share the entire energia code for this with relevant changes in header and cpp files?
  12. Hi, I am working with cc3200. I want my device to be able to connect to any network. I want to enable ap mode on energia and then enter networks ssid and password and switch to station mode?? I am new to cc3200 ? can somebody post his/her code of energia here along with changes required in header files or cpp files. Please reply asap
  13. Hi, I am working with cc3200. I want my device to be able to connect to any network. I want to enable ap mode on energia and then enter networks ssid and password and switch to station mode?? I am new to cc3200 ? can somebody post his/her code of energia here along with changes required in header files or cpp files. Please reply asap.
  14. Hi all, How to run MQTT server on cc3200 from energia. Is there any libarary to do so?
  15. Hi all, how to run os mode(multiple threads) on cc3200 from energia.
  16. Hi, I am working on a project that reads the values from the weighing machine and the data is then sent to cc3200 web server from where a client can access the data. For dynamic change of data on web page i am refreshing the page at 0.5 seconds.Everything is working as expected. Now the new requirement is that a user has to enter some predefined value on web page and after that the further calculation is to be done. I am unable to do so.How to Enter any value on web page and then obtain that value in my code and then do further processing.
  17. Hi, I am new to CC3200. Actually I want to use the Uart of cc3200. My application is to read data from a serial transmitter of another device using CC3200 and print the data on the serial monitor of Energia. I saw that there are two kinds:- Serial and Serial1. Can I use serial1 to read the data and then print data on serial monitor of Energia using Serial. Do I need to shift the J6,J7 from flash mode to BP mode?? I have seen the pinmapping. In that I found that Serial 1 is connected on UART1_Rx on GPIO11 i.e. P1-10 of CC3200 launchpad. Do I need to connect the perip
  18. Hi , Actually it is working when I commented GPIOINTStatus function in gpio.h file. But I would like to ask how to know which pin is on which Gpio base and what is 0x40 etc.... Main issue is unable to get pin mapping.
  19. I used your code. I saw that PRCm clk for GPIOA2 was not Enabled. But I got the error as :- In file included from Blink.ino:1:0: C:\energia-0101E0014-windows\energia-0101E0014\hardware\cc3200\cores\cc3200/driverlib/gpio.h:121:49: error: 'tBoolean' has not been declared extern long GPIOIntStatus(unsigned long ulPort, tBoolean bMasked); ^ My code is:- #include "driverlib/gpio.h" #include "Energia.h" #include "inc/hw_ints.h" #include "inc/hw_memmap.h" #include "inc/hw_timer.h" #include "inc/hw_types.h" #include "debug.h" #include "inte
  20. Hi, Previously I was using CC3200 launch pad for developing my module. But now I want to use GPIOs and control leds etc on launch pad. When using normally, I used digitalWrite(pinnumber,1); But now I want to control led etc using GPIO. How to accomplish that in Energia. I have seen peripheral library for cc3200 , but I am not able to use it. Kindly help asap.
  21. Hi, I want to use USR-C322. I want to use Energia to burn the code.I would like to know how to burn the code using JTAG and how to connect the SOP pins. Please refer:- http://energia.nu/cc3200guide/] I would like to know that while using CC3200 TI launchpad, a jumper used to be there from SOP2 and TCK_JTAG while coding with energia. Now how to use USR-C322 with Energia. I want to burn my code using Energia.
  22. Hi, I want to use USR-C322. I want to use Energia to burn the code.I would like to know how to burn the code using JTAG and how to connect the SOP pins. Please refer:- http://energia.nu/cc3200guide/] I would like to know that while using CC3200 TI launchpad, a jumper used to be there from SOP2 and TCK_JTAG while coding with energia. Now how to use USR-C322 with Energia. I want to burn my code using Energia.
  23. I have modified the code and now the zero crossing interrupt is occurring.But the timer is still not functioning.Can anyone see and tell whether I have configured it right? #include "inc/hw_ints.h" #include "inc/hw_memmap.h" #include "inc/hw_timer.h" #include "inc/hw_types.h" #include "debug.h" #include "interrupt.h" #include "timer.h" #include "driverlib/prcm.h" #include "inc/hw_gprcm.h" #include "wiring_private.h" #include "driverlib/rom_map.h" #include "driverlib/pin.h" void setup() { pinMode(2,INPUT_PULLUP); pinMode(4,OUTPUT); noInterrupts(); MAP_PRCMPeripheralClkEnable(PRCM_TIMERA0,PRCM
  24. I have modified the code and now the zero crossing interrupt is occurring.But the timer is still not functioning.Can you see and tell whether I have configured it right? #include "inc/hw_ints.h" #include "inc/hw_memmap.h" #include "inc/hw_timer.h" #include "inc/hw_types.h" #include "debug.h" #include "interrupt.h" #include "timer.h" #include "driverlib/prcm.h" #include "inc/hw_gprcm.h" #include "wiring_private.h" #include "driverlib/rom_map.h" #include "driverlib/pin.h" void setup() { pinMode(2,INPUT_PULLUP); pinMode(4,OUTPUT); noInterrupts(); MAP_PRCMPeripheralClkEnable(PRCM_TIMERA0,PRCM_RU
×
×
  • Create New...