Search the Community

Showing results for tags 'wifi'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Found 29 results

  1. CC3200R chip with the ARM® Cortex®-M4 Core at 80 MHz CC3200 board based on the Launch_XL reference design Service Pack: servicepack_1.0.1.11-2.9.0.0 Energia IDE 1.6.10E18 Windows 10 Hello, Thank you for having this great forum and all the work you have done for the CC3200 SoC. I am having an issue with my project. I am utilizing the CC3200 for an IoT project. We recently did an installation of our prototype at a venue where they use a WEP network. Our CC3200 boards have worked fine with WPA networks but this is the first instance where we have had to work with a WEP network. Before I have them changing their network(in the middle of the woods at a campground) I was hoping to sort out why the WEP connection fails. Just using the ConnectwithWEP example provided by Energia IDE which utilizes the WiFi and wlan libraries I am unable to connect to a WEP network. I have recreated the network at my home setting up a WEP network using a 10 character hexadecimal key which is what they are using. (64 bit Encrypted WEP network) char ssid[] = "myssid"; int key_idx = 0; char key[] = "##########"; (where # is 0-9 A-F 10 characters long) The board finds the network but never connects (Attempting to to connect to Network named myssid ...........) However, If i make the key 13 characters long I connect to the network but then it sits waiting to be assigned an ip address. Furthermore, if I assign a static ip the board connects and is assigned the static ip but I have no network access via pinging the board or retrieving a web page via a GET request. I have read about this similar issue here: https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/t/415573 but it never seemed to have been answered. It seems like there is an issue with using 10 hexadecimal characters vs 13 ASCII characters. When I use the 10 character string it never gets to a certain point. If I add an additional 3 characters it makes it to a certain point but of course the key is wrong and so it is never assigned an ip address. I am able to connect to the WEP network with my pc and mobile phone. I have know idea what they use behind the scenes for making the network connection. I have begun looking through the WiFi libraries but it seems odd the problem would be there. It has survived through both Arduino and Energia trials and scrutiny. Any ideas of what I might try? Many thanks Sam
  2. Hello, I recently ported over an Energia sketch that had working WiFi functionality in order to help with remote logging for a project I'm working on. The WiFi works well, but now the CCS code that was handling the ADC interrupts and measuring data is no longer functioning. If possible, I would like to make minimal changes to the CCS code as it was working exactly as we desired. I feel like there must be a relatively simple fix that I'm missing but I can't seem to figure it out. Can someone please help figure out what's wrong the ADC interrupt in the following code? #include <stdint.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include "inc/hw_types.h" #include "inc/hw_gpio.h" #include "inc/hw_memmap.h" #include "inc/hw_ints.h" #include "sysctl.h" #include "gpio.h" #include "driverlib/gpio.h" #include "driverlib/timer.h" #include "driverlib/interrupt.h" #include "driverlib/debug.h" #include "driverlib/adc.h" #include "inc/tm4c123gh6pm.h" #include <string.h> #include <WiFiClient.h> #ifndef __CC3200R1M1RGC__ // Do not include SPI for CC3200 LaunchPad #include <SPI.h> #endif #include <WiFi.h> // your network name also called SSID char ssid[] = ""; // your network password char password[] = ""; WiFiClient client; IPAddress server(); uint16_t port = ; #define SAMPLING_RATE 80000.0 // #define TARGET_FREQUENCY 10000.0 // #define BLOCK_SIZE 80 #define BUFFER_SIZE 255 //result cannot be declared in interrupt handler uint8_t flag = 0; uint32_t buffer[BUFFER_SIZE]; uint32_t bufferIndex = 0; float goertzel(uint32_t buffer[]) { int k, i; const float floatN = (float)BLOCK_SIZE; float omega; k = (int) (0.5 + ((floatN * TARGET_FREQUENCY ) / SAMPLING_RATE)); omega = (2.0 * 3.14 * k)/floatN; float sine = sin(omega); float cosine = cos(omega); float coeff = 2.0 * cosine; float Q0 = 0; float Q1 = 0; float Q2 = 0; float scaling_factor = BLOCK_SIZE/2.0; for (i = 0; i < BUFFER_SIZE; i++) { Q0 = coeff * Q1 - Q2 + buffer[i]; Q2 = Q1; Q1 = Q0; } float imag, real, result; real = (Q1 - Q2 * cosine) / scaling_factor; imag = (Q2 * sine) / scaling_factor; result = sqrtf(real * real + imag * imag); return result; } void ADC3IntHandler(void) { float result = 0.0; ADCIntClear(ADC0_BASE, 3); if (flag == 0) { //GPIOPinWrite(GPIO_PORTB_BASE, GPIO_PIN_0, GPIO_PIN_0); flag = 1; } else { //GPIOPinWrite(GPIO_PORTB_BASE, GPIO_PIN_0, 0); flag = 0; } if (bufferIndex >= 255) { bufferIndex = 0; ADCSequenceDisable(ADC0_BASE, 3); result = goertzel(buffer); client.println(result); ADCSequenceEnable(ADC0_BASE, 3); } ADCSequenceDataGet(ADC0_BASE, 3, (buffer + bufferIndex)); bufferIndex++; } void setupADC(void) { SysCtlClockSet(SYSCTL_SYSDIV_2_5 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_25MHZ); //Enable ADC0 and timer SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0); //pin for testing //GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE, GPIO_PIN_0); TimerConfigure(TIMER0_BASE, TIMER_CFG_PERIODIC); TimerClockSourceSet(TIMER0_BASE, TIMER_CLOCK_SYSTEM); //625 - 40 kHz sampling rate TimerLoadSet(TIMER0_BASE, TIMER_B, 625); TimerControlTrigger(TIMER0_BASE, TIMER_B, true); //Disable before configuring ADCSequenceDisable(ADC0_BASE, 3); ADCSequenceConfigure(ADC0_BASE, 3, ADC_TRIGGER_TIMER, 0); ADCSequenceStepConfigure(ADC0_BASE, 3, 0, ADC_CTL_CH0 | ADC_CTL_IE | ADC_CTL_END); //sequencer 3 on PE3 SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE); //PE3 ADC pin GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_3); IntRegister(INT_ADC0SS3, ADC3IntHandler); ADCIntRegister(ADC0_BASE, 3, ADC3IntHandler); IntMasterEnable(); IntEnable(INT_ADC0SS3); ADCIntEnable(ADC0_BASE, 3); ADCSequenceEnable(ADC0_BASE, 3); SysCtlDelay(10); TimerEnable(TIMER0_BASE, TIMER_B); //Timer A conflicts with SPI of wifi module ADCIntClear(ADC0_BASE, 3); } void setup() { setupADC(); WiFi.begin(ssid, password); while ( WiFi.status() != WL_CONNECTED) { delay(300); } while (WiFi.localIP() == INADDR_NONE) { delay(300); } uint8_t tries = 0; while (client.connect(server, port) == false) { if (tries++ > 100) { while(1); } delay(100); } delay(1000); } void loop() { //client.println("hello"); } Thank you!
  3. Hello everyone, I have a project which requires GPS + Wi-fi capability and fastest clock speed mcu possible. For GPS capability I came across CC4000 which seems alright, but I'm confused on which launchpad board to select that has Wifi capability also. I have worked on Arduino but new to TI's Launchpad. Please suggest me for what should I buy. link for the CC4000 gps module kit : http://www.ti.com/tool/cc4000gpsem?keyMatch=gps&tisearch=Search-EN-Everything#descriptionArea
  4. Dear all, I would like to send over Wifi 350Kb of data using the "WiFiClient.print" API. Could you please let me know what is the maximum length of data I could send in every POST? Is it possible to increase it? Thanks in advance. Best, George
  5. Nice surprise! It’s here! Get your Wi-Fi® SensorTag today Get data from 10 sensors to the cloud in minutes Connect to the cloud in minutes with this ready-to-use demo platform Run applications on 2 AAA batteries Learn more
  6. 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 only then the rest of the code resumes to work. It hangs in that part. Is there any way to reduce this time by changing any parameter in the library? I found one constructor in MQTTclient.h library. Client(Network& network, unsigned int command_timeout_ms =30000); I changed the command timeout value by different ones but no change was observed. It was still taking 28 seconds. After that tcp return code came as 0 which indicated that tcp connection was not made. I would like to ask that is there any way to reduce this time. Like can the time it is waiting for return code be changed.Can it be made less? Please reply asap. Waiting for your guidance robertinant@yahoo.com.
  7. Hello, I have recently bought cc3100 booster pack to use with msp432 and energia. I connected the boosterpack with the launchpad as shown in the attached pic below. I tried to run the sketch "SimpleWebServerWiFi" , as shown in the tutorial page of energia. I didn't press any switches on the boosterpack and simply connected it with the main board and powered it on and uploaded the example sketch after changing the ssid and password.But the serial monitor outputs nothing and the "http://192.168.1.64/L " page does not load . Please help.
  8. Hi, I am currently working on a code in Energia that will allow me to upload and send a binary file wirelessly from a client site to the CC3200. So far, the code has successfully accomplished the following: -the board establishes a Wi-Fi network -commands from a laptop can interact with the board (the Energia Simple Wi-Fi Server example (LED ON/OFF) code was tested to ensure this was working) -a 9 byte binary file is sent through Wi-Fi to the board's volatile memory, saved from volatile memory into an on-baord flash memory file, and confirmed by sending it back to the laptop through a serial connection The code is eventually supposed to receive a larger binary file (we hope around 500 KB) that will represent points on a sinusoidal curve. This file will then be sent to the Audio Booster Pack board to play the audio file. I created a flash file which was opened, and written to through a buffer array containing the binary file contents. This method was successful for a 9 byte file, but I learned that a larger 500 KB file cannot be stored in a buffer array so easily. I think this is because of a lack of RAM space on the board. How can I implement a code in Energia in order save this larger binary file to the flash memory? Is the buffer array approach a good method? Latency isn't really an issue, as long as we can fit the whole file on the board, and then play it after. Thanks, any support is greatly appreciated!
  9. Hi I am trying to do a MC to MC communication using modbus. I assigned static IP's to both my MC's. WiFiServer MbServer(MB_PORT); WiFiClient client = MbServer.available(); if(client.available()) { ///Do something////// } My question here is, Is there are way I can check the senders IP address before reading modbus packed data in the loop. Because the receiver MC can be jammed with high data throughput as its a open connection (i.e anyone can send data to the MC by knowing its IP address). I want to read the senders IP before doing any data processing. I know using UDP protocol we can use RemoteIP(). Is there anything similar in this case. For sending and receiving MODBUS, im using the attached libraries. MgsModbus.cpp MgsModbus.h
  10. Hi, I've been following the ConnectWithWPA example to see the encryption type. However, it keeps showing me "Encryption Type: 0". What does this mean? Also what does the AUTO return value mean? (from this reference: http://energia.nu/reference/wifi/wifi_encryptiontype)
  11. Is there a way to wake the CC3200 via WiFi? I read this post but can someone let me know if this is operational in the latest version of Energia?
  12. This library allows you to quickly and easily connect your LaunchPad project to Exosite's Data Platform in the cloud. It connects your project using a MSP430F5529 LaunchPad and CC3000 BoosterPack. Two software packages are available: the Exosite barebones-template solution and a real-world example in the form of the Exosite BBQ Companion Combination. Both of these use-cases have code available for the Energia and Code Composer Studio IDEs. Present Support: MSP430F5529 LaunchPad Future Support: Tiva C Series TM4C123G LaunchPad Required: CC3000 Wi-Fi Transceiver BoosterPack Optional: ADS1118 BoosterPack (bonus Energia beta-library available) GitHub Repository: https://github.com/a-whitehead/exositeLaunchPad Note: A free account on Exosite Portals is required: https://ti.exosite.com
  13. I am trying to talk to the Microsoft Azure Event Hub from Energia but I'm a little baffled! Using the WiFi library I seem to be getting a successful connect (returns true) but ... nothing seems to get posted... I am trying to build the message up as in this (javascript) example http://fabriccontroller.net/iot-with-azure-service-bus-event-hubs-authenticating-and-sending-from-any-type-of-device-net-and-js-samples/ but not seeing anything (even failed messages) reported in the event hub. I wanted to stick with Energia rather than switch to anything else, but after a couple of days banging my head on a wall I'm a little suck! Any ideas would be much appreciated (as I'm probably doing something dumb!) if there's a way to debug this / get error messages from the connection or the attempt to post that would be a huge help... Gotta use the Azure end point for this, so that's the one constant. char sas[] = "SharedAccessSignature {sig from the generation example}"; char serviceNamespace[] = "{ns}.servicebus.windows.net"; char hubName[] = "{hub}"; char deviceName[] = "device01"; void loop() { ////// WiFiClient client; float t = 10.1; client.stop(); // if there's a successful connection: if (client.connect(serviceNamespace, 443)) { Serial.println("connecting..."); // send the HTTP POST request: client.print("POST /"); client.print(hubName); client.print("/publishers/"); client.print(deviceName); client.println("/messages HTTP/1.1"); client.println("Host: www.arduino.cc"); client.println("Content-Type: application/atom+xml;type=entry;charset=utf-8"); client.print("Authorization: "); client.println(sas); client.println(); client.print("{ Temperature: "); client.print(t); client.println(" }"); client.println(); // note the time that the connection was made: delay(10000); } else { // if you couldn't make a connection: Serial.println("connection failed"); delay(1000000); } }
  14. In present work, I aim to control servo motor as an Internet of Things(IoT) so i use ESP8266 , which is the low cost wifi module (approx. 3$), to establish connection between Tiva LaunchPad(as a client) and Computer(as a server) via internet with Transmission Control Protocol (TCP). I use Java application to create server to control servo on the PC side of the project. One can see the Java Application in below video. Video Tutorial https://www.youtube.com/watch?v=2NBJP0-isrg Servo Motor: Micro Servo 3.7G (approx. 1.5$) WiFi Module: ESP8266 (approx. 3$) Source code (IoT.rar) can be found in below link. It incudes both Java(as a Server) and Code Composer Studio(as Client) codes. TI E2E
  15. Hi, I'm using a cc3200 Launchpad. On my first run, I provided the SSID and Passphrase to connect to my router as shown below: char ssid[] = "testrouter"; char passphrase[] = "testpassphrase"; WiFi.begin(ssid, passphrase); I've noticed that there was a recent addition into the WiFi.begin(ssid, pass) method in the WiFi.cpp file which seems to add the SSID and Passphrase into its own profile. if (iRet == 0) { sl_WlanProfileAdd(ssid, NameLen, 0, &SecParams, 0, 6, 0); _connecting = true; return status(); } else { return WL_CONNECT_FAILED; } I'm having issues when I'm trying to retrieve the profile using the "int sl_WlanProfileGet()" method. I'm able to retrieve the SSID but unable to retrieve the Passphrase correctly. Following is the code I'm using to retrieve the SSID and Passphrase: char pName[32]; int pNameLen; unsigned char pMacAddr[8]; SlSecParams_t *pSecParams; SlGetSecParamsExt_t *pSecExtParams; unsigned long pPriority; sl_WlanProfileGet(0, pName, &pNameLen, pMacAddr, pSecParams, pSecExtParams, &pPriority); // index 0 pName[pNameLen] = '\0'; pSecParams->Key[pSecParams->KeyLen] = '\0'; Serial.println(pName); // prints "testrouter" -CORRECT Serial.println(pSecParams->Type); // prints 2 -CORRECT (SL_SEC_TYPE_WPA) Serial.println(pSecParams->Key); // prints "" -WRONG WiFi.begin(pName, pSecParams->Key); // doesn't connect successfully Please let me know if I'm doing something wrong or if there is another way to connect to a past profile? Thanks! Edit: My actual problem is that, if I do Smartconfig and I successfully send the SSID and Passphrase to the CC3200 and it connects to WiFi router but the CC3200 powers OFF and then powers ON again, how do I make it connect to the last known SSID and passphrase without having to do Smartconfig again?
  16. Hi everybody, People might have read the hackaday post describing the ESP8266. The ESP8266 is a really low price Wifi chip, which uses serial communication (just like the Wifly etc.) to connect to wifi. Although the CC3100 and CC3200 are the better chips, the ESP8266 main differentiating point is its ridiculous low price. I've ordered 8 for $3.50 each (aliexpress). It doesn't seem to support IPv6 out of the box, but there is an SDK, which might open future possibilities. I was thinking to make a library for energia to support the ESP8266. Anyone interested? Are there specific starting points to make this library usable? I am looking at two scenario's: - MQTT client - Relaying sensor data or control. - Web service - Returning a JSON object with sensor data. It would be nice to use the hooks of an ethernet library and only need to process strings/arrays of bytes. Edit: As this wifi dongle uses an UART, how do I create two UARTS on a G2553? Kind regards, Eelco Rouw
  17. Below is a link to the port of the Arduino Library HTTPClient for Energia/MSP430. It works with the latest version of Energia with F5529LP + CC3000 BoosterPack. Simply download/clone the library into the hardware/msp430/libraries folder of Energia and the library will appear upon restart. The library makes it easy to interact with web servers using Energia/MSP430. The included example shows how to download a webpage (energia.nu), check http response codes and display the content of the downloaded webpage. GitHub Link: https://github.com/zlalanne/HttpClient
  18. Hello everyone, Is it possible to create a "host name" for the wifi server running on CC3200 Launchpad?, if yes, does anyone know how or have a sample code?. Thanks.
  19. Hi, I'm trying to get the ConnectWithWPA example sketch working with the CC3100BOOST boosterpack on a MSP-EXP430FR5969 LaunchPad and got the following compilation error: c:/ti/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: ConnectWithWPA.cpp.elf section `.bss' will not fit in region `ram' c:/ti/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: region `ram' overflowed by 862 bytes collect2: ld returned 1 exit status I'm running the latest version of Energia (0101E0013) Has any one ran into this? How do I get around it? Thanks
  20. Below is a link to a port of the Arduino library to interact with xively for Energia/MSP4305529LP. For those that don't know xively (formerly cosm) is an IoT online service where you can send and receive data from. It allows you to view the data sent in graph form to view trends over long periods of time. This library requires the HTTPClient Library found here: 43oh Github Once both libraries are installed you have access to high level APIs to send and receive data to the Xively servers. There are examples that demonstrate how to upload/download a single datapoint as well as an example that uploads to several different channels at once. More information can be found on the github page. https://github.com/zlalanne/xively_energia
  21. Hi There, Anyone tried (and succeeded) in getting the CC3100 booster pack up and running with the FR5969 LP? I'm getting compilation errors and it looks like it's running out of RAM when I try to compile the example WiFi programs. Errors are ScanNetworks.cpp.elf section .bss will not fit in region 'ram' "region RAM overflowed by 880bytes" Any thoughts? ~DaveS
  22. Hi there, I am trying to use the WiFi.startSmartConfig() feature for the CC3000 booster pack on a TIVA C launchpad, but I can't seem to get it to work with energia (works fine with TI examples on code composer). I'm using smartconfigAES16 as the key and home_assistant as the device name, is there an example of how to use smartConfig with energia? I currently have it running in the setup() function, but it seems to get caught within the WiFi.startSmartConfig() function. I'm using the java applet http://www.ti.com/ww/en/wifi/smartConfig/ for the smartconfig. Thank you in advance!
  23. Hello, I am thinking on starting a new project, a web controlled robot!!! I was wondering if anyone has any experience with using an (Arduino)Ethernet shield with the MSP launchpad?? My plan is to build something like this: http://www.lynxmotion.net/viewtopic.php?f=20&t=6343 Or if anyone has any other ideas for easy, cheap web interaction with the launchpad. I don't want to use a wifi shield, because I would like to add video streaming in the future and wifi shields are not very video friendly. Thanks
  24. Hi guys, For my final year project I'm going to be doing some embedded development related to "the internet of things". The specs aren't fully formed yet but it'll be mcu+sensors+wifi+maybe some actuators. At the moment I've been doing some research on components, and was wondering if I could get some of your input? So for wifi connectivity I'm looking at the CC3000 and RN-171, and currently favouring the CC3000. I was wondering if anyone worked with either of these chips, and what they thought about them? My big question involves choosing a microcontroller (ideally a development board initially). The final application will likely be battery powered, so low power is a must. Sensors etc need some a/d, and since it is wifi enabled I would like a reasonable amount of RAM/Flash to experiment with. Currently, since I have some experience with the value line series, I'm considering the MSP430F5529 board since it seems to have ample resources. I was wondering if anyone could weigh in with thoughts/ ideas/ suggestions? I've also been looking into the STM32LVDISCOVERY board, but have seen a few complaints with about the quality of resources (libraries etc) available for it. I know this forum might be biased towards the MSP430 but I'm posting in other micros hoping to get the opinions of those who have worked with other brands, but all feedback is welcomed :grin: (Its not a major issue for me, but when it comes to development I tend to prefer working in Linux and avoiding the use of an IDE, so any chips with compilers that support Linux would be a bonus )
  25. Just came across this. http://www.sparkdevices.com/ Arduino compatible (through custom integration of Wiring libraries) Wi-Fi 802.11 b/g 32-bit STM32 72MHz ARM Cortex M3 128KB of Flash memory, 20KB of RAM Texas Instruments SimpleLink CC3000 Wi-Fi chip 2MB of external flash memory Still in development, supposed to come out in Autumn 2013