Jump to content
43oh

gch

Members
  • Content Count

    12
  • Joined

  • Last visited

Posts posted by gch

  1. Hello Robert,

    Thank you very much for your reply.
    I just tested it at home and it works fine. It seems that the problem is the multiple identical SSIDs it gets from the network at my work.
    Do you have any suggestion on solving this issue or I should report it to the Network Admins?
    Best,
    George
     
  2. Dear All,

    I am working on a RedbearLab Wifi Micro module (https://redbear.cc/product/wifi/wifi-micro-kit.html) which although connects to the network unfortunately it does not take an IP Address and it sticks at the while loop printing dots. This module used to work about 2 months ago.

    I have also scanned the network getting the following output. I am trying to connect to "forth public access" but I can see that it shows 3 networks of the same name while it should be only one. In my mobile I can see only one.

    //--------------------------------------------------------------

    Scanning available networks...
    ** Scan Networks **
    number of available networks:12
    0) eduroam    Signal: -81 dBm    Encryption: WPA
    1) forth public access    Signal: -81 dBm    Encryption: None
    2) eduroam    Signal: -86 dBm    Encryption: WPA
    3) AMI_WIFI    Signal: -87 dBm    Encryption: None
    4) AMI_Lobby    Signal: -86 dBm    Encryption: None
    5) eduroam    Signal: -86 dBm    Encryption: WPA
    6) HP-Print-9c-Color LaserJet MFP    Signal: -53 dBm    Encryption: WPA
    7) AMI_WIFI    Signal: -77 dBm    Encryption: None
    8) AMI_Lobby    Signal: -76 dBm    Encryption: None
    9) eduroam    Signal: -76 dBm    Encryption: WPA
    10) forth public access    Signal: -76 dBm    Encryption: None
    11) forth public access    Signal: -59 dBm    Encryption: None

    //--------------------------------------------------------------

    The code I have uploaded is the following ....

    Any help will be really appreciated.

    Best,

    George

     

    /*
      Web client

     This sketch connects to a website (http://www.google.com)
     using a WiFi shield.

     This example is written for a network using WPA encryption. For
     WEP or WPA, change the Wifi.begin() call accordingly.

     This example is written for a network using WPA encryption. For
     WEP or WPA, change the Wifi.begin() call accordingly.

     Circuit:
     * WiFi shield attached

     created 13 July 2010
     by dlf (Metodo2 srl)
     modified 31 May 2012
     by Tom Igoe
     */


    #ifndef __CC3200R1M1RGC__
    // Do not include SPI for CC3200 LaunchPad
    #include <SPI.h>
    #endif
    #include <WiFi.h>

    // your network name also called SSID
    char ssid[] = "forth public access";
    // your network password
    //char password[] = "launchpad";

    // if you don't want to use DNS (and reduce your sketch size)
    // use the numeric IP instead of the name for the server:
    //IPAddress server(50,62,217,1);  // numeric IP for Google (no DNS)
    char server[] = "energia.nu";    // name address for Google (using DNS)

    // Initialize the Ethernet client library
    // with the IP address and port of the server
    // that you want to connect to (port 80 is default for HTTP):
    WiFiClient client;

    void setup() {
      //Initialize serial and wait for port to open:
      Serial.begin(115200);
      delay(5000);
      // attempt to connect to Wifi network:
      Serial.print("Attempting to connect to Network named: ");
      // print the network name (SSID);
      Serial.println(ssid);
     
      // Connect to WPA/WPA2 network. Change this line if using open or WEP network:
      WiFi.begin(ssid);
     // WiFi.begin(ssid, password);
      while ( WiFi.status() != WL_CONNECTED) {
        // print dots while we wait to connect
        Serial.print(".");
        delay(300);
      }
     
      Serial.println("\nYou're connected to the network");
      Serial.println("Waiting for an ip address");
     
      while (WiFi.localIP() == INADDR_NONE) {
        // print dots while we wait for an ip addresss
        Serial.print(".");
        delay(300);
      }

     

      Serial.println("\nIP Address obtained");
      printWifiStatus();

      Serial.println("\nStarting connection to server...");
      // if you get a connection, report back via serial:
      if (client.connect(server, 80)) {
        Serial.println("connected to server");
        // Make a HTTP request:
        client.println("GET /hello.html HTTP/1.1");
        client.println("Host: energia.nu");
        client.println("Connection: close");
        client.println();
      }
    }

    void loop() {
      // if there are incoming bytes available
      // from the server, read them and print them:
      while (client.available()) {
        char c = client.read();
        Serial.write(c);
      }

      // if the server's disconnected, stop the client:
      if (!client.connected()) {
        Serial.println();
        Serial.println("disconnecting from server.");
        client.stop();

        // do nothing forevermore:
        while (true);
      }
    }


    void printWifiStatus() {
      // print the SSID of the network you're attached to:
      Serial.print("SSID: ");
      Serial.println(WiFi.SSID());

      // print your WiFi shield's IP address:
      IPAddress ip = WiFi.localIP();
      Serial.print("IP Address: ");
      Serial.println(ip);

      // print the received signal strength:
      long rssi = WiFi.RSSI();
      Serial.print("signal strength (RSSI):");
      Serial.print(rssi);
      Serial.println(" dBm");
    }

     

     

  3. Hello again,

    I have connected the RedbearLab WifiMicro (http://discuss.redbear.cc/t/cc3200-wifi-micro/897/3) with a Real-Time Clock using I2C communication (SDA, SCL) and a sensor board using UART communication (Rx, Tx).

    When initiating the low power mode by using the api "goto_sleep(seconds)" should I also call the function "setupPeripherals()" and redefine the SDA, SCL, RX, Tx pins or this is just needed for the Digital In/Out pins?

    Thanks in advance.

    Best George

     

  4. Hello,

    Thank you again for your reply.

    I finally made working the MK20 usb dongle by updating the firmware with my laptop and then worked to my office PC.

    Regarding the upload to the WifiMicro after a lot of uploads and resets I finally uploaded code successfully with the following message which will be sent to the Energia by RedbearLab for debugging ......

     

     

    Sketch uses 22,624 bytes (8%) of program storage space. Maximum is 262,144 bytes.
    Opening COM5
    Can't open device
    Triggering bootloader....

    Getting storage list
    Bootloader Version: 4
    Silicon version ES1.32 or higher
    Bootloader version is 2, 1, 4, 0
    It's a CC3200 device: PG1.33 or higher
    Switch UART pinmux to APPS
    Switch to NWP bootloader complete
    Load common boot command for PG1.33 or higher
    Bootloader version is 2, 0, 4, 0
    BlockSize is 4096, number of blocks is 16
    erasing 13 blocks starting from  0
    erasing file "/sys/mcuimg.bin"
    deleting file "/sys/mcuimg.bin"
    erase file completed
    Downloading file "/sys/mcuimg.bin" with size 24776
    .......Download complete
    DEBUG cc3200prog.c:2667: write failed
    DEBUG cc3200prog.c:2673: write failed
    DEBUG cc3200prog.c:2679: write failed
    DEBUG cc3200prog.c:2685: write failed

     

  5. Dear All,

    I am writing to you because I am experiencing problems with uploading code to CC3200 module.

    I have purchased the RedbearLab WifiMicro Kit (http://www.exp-tech.de/en/redbearlab-wi-fi-micro-kit) which worked for a few uploads but after that I had the following error:

    //---------------------------------------------------------------------------------------------------

    Sketch uses 2,936 bytes (1%) of program storage space. Maximum is 262,144 bytes.
    Can't open device
    Opening COM5

    Triggering bootloader....
    Getting storage list
    Bootloader Version: 4
    Silicon version ES1.32 or higher
    Bootloader version is 2, 1, 4, 0
    It's a CC3200 device: PG1.33 or higher
    Switch UART pinmux to APPS
    --- Connection failed trying to reconnect... (1 attempt)
    Switch to NWP bootloader complete
    Load common boot command for PG1.33 or higher
    Bootloader version is 2, 0, 4, 0
    BlockSize is 4096, number of blocks is 16
    erasing 13 blocks starting from 0
    erasing file "/sys/mcuimg.bin"
    deleting file "/sys/mcuimg.bin"
    erase file completed
    Downloading file "/sys/mcuimg.bin" with size 2936
    .Download complete
    DEBUG cc3200prog.c:2667: write failed
    DEBUG cc3200prog.c:2673: write failed
    DEBUG cc3200prog.c:2679: write failed
    DEBUG cc3200prog.c:2685: write failed

    //---------------------------------------------------------------------------------------------------

    After a few uploads both the WifiMicro and the MK20 Usb dongle stop functioning. I cannot see the MK20 at the Com Ports anymore.

    So, instead of using the MK20 to upload code I used the FTDI Friend by Adafruit and  I connected (GND, CTS, VCC, Tx, Rx, RTS) of the FDTI to the corresponding pins of the WifiMicro (GND, NRST, VDD, Rx, Tx, D13) http://discuss.redbear.cc/t/cc3200-wifi-micro/897. Unfortunately I am getting the following error in uploading ...

    Any help will be really appreciated!

    Best,

    George

    //----------------------------------------------------------------------------------------------------

    Energia: 1.6.10E18 (Windows 8.1), Board: "RedBearLab WiFi Micro w/ CC3200 (80MHz)"

    Sketch uses 22,576 bytes (8%) of program storage space. Maximum is 262,144 bytes.
    Opening COM7
    Can't open device
    Triggering bootloader....
    Trigger bootloader failed. Retrying... (1 attempt)
    Trigger bootloader failed. Retrying... (2 attempt)
    Trigger bootloader failed. Retrying... (3 attempt)
    Trigger bootloader failed after 3 attempts
    Failed to trigger bootloader
    An error occurred while uploading the sketch

    //----------------------------------------------------------------------------------------------------

  6. Dear All,

    I am interested in purchasing the following Wifi module based on CC3200 ... http://www.exp-tech.de/en/redbearlab-wi-fi-micro

    I have noticed that it can be programmed with Arduino like syntax using Energia. I have three questions please:

    1) Is there any API to lower power consumption (hibernated mode) since I would like to send data every 2-3 hours?

    2) I would like to send data over SSL and I noticed that it has a crypto engine. Could you please let me know if there is any API to upload certificates?

    If positive are there any examples in Energia?

    3) I looked also at the Wifi examples of Energia 1.6.10 but I did not find any example with SSL. Could you please let me know if there is a library for SSL?

    Thank you in advance.

    Best,

    George

×
×
  • Create New...