board no longer streaming nor storing to SD card

RushdaRushda Pakistan
edited December 2016 in Cyton
Hello, I have been trying to acquire data using the kit, following the tutorial steps. Somehow, nothing is displayed on the gui, when I stream the data. I have tried changing the battery, but I got NO results. Moreover NO data is being stored in the sdcard as well. This toolkit I am using is 2 years old, and been used for data acquisition before as well, but suddenly it is not working. I am trying to burn the opensource code again. Can someone plz suggest some better alternative. Any help would be appreciated.

Comments

  • wjcroftwjcroft Mount Shasta, CA
    Are you sure the COM / tty port is working? Do you have the FTDI drivers installed? Can you use a terminal program to send a '?' to the COM port and see if you get the firmware response printout?

    Do you have LEDs lighting up on the dongle and mainboard?

    Can you try another laptop?
  • I have checked that the COM port is working, Moreover I have been using multiple laptops so that is not the issue I guess. I have checked for the FTDI drivers and they are installed already. The LEDs for dongle and mainboard are both up. I have not checked for the Firmware response though. I shall try that out!
  • wjcroftwjcroft Mount Shasta, CA
    You won't know "that the COM port is working" until you get a response from '?'.
  • I checked the com port on cmd using command netstat -a -n. It showed that the port was active.But when I used hyperterminal to check, it stated "Failure: Communications timeout - Device failed to poll Host $$$". Does it mean the port is not working, or no connection is being established?
  • wjcroftwjcroft Mount Shasta, CA
    Try another laptop or OS.
  • I have tried different laptops, but somehow it is not working. I flashed dongle as well, but no results . Anyway, Thankyou for all the suggestion.
  • wjcroftwjcroft Mount Shasta, CA
    The dongle must be set to the correct radio channel, did you do that?
  • Yes I set it to the correct radio channel. I updated the firmware in both dongle and device, and it was a success. But there is still no data in the live stream. I now plan to update the hex file in boot loader using Pickit.When I load code in to the device I keep getting the error, 'no target found' . I have tried different methods but they did not resolve the issue.
  • wjcroftwjcroft Mount Shasta, CA
    I suggest you upgrade to V2 firmware. I'm going to mention AJ Keller @pushtheworld, if he has any suggestions. AJ is the dev for V2.


  • This sounds like a radio channel problem. "No target found" means the wireless serialport could not be established between the two RFDuinos. 
  • RushdaRushda Pakistan
    We have tried following for OpenBCI 32 bit in the given order:
    Flashing device radio (successful)
    Flashing dongle radio (successful)
    Burning bootloader on the device (PIC32MX250F128B in MPLAB IPE) using PicKit 3. (Successful but since then the led on the board is blinking pleasantly whenever we power up the device)
    Flashing the firmware on the device ("No target found" error)

    What do we try next?
  • wjcroftwjcroft Mount Shasta, CA
    You did not mention whether you tried the V2 firmware? Did you flash V1 or V2?

    I recall the ATmega (8 bit) board flashed the LED. But the PIC (32 bit) board comes on solid when powered up.

    If you have flashed V2, you can try the radio config utility,

    http://openbci.com/community/openbci-radio-configuration-utility/
  • RushdaRushda Pakistan
    We tried V2 firmware. It gave the error 'No device found'. Then we tried V1 firmware again and the device started working. Although the device is working, we are still not able to figure out what the issue was. Thankyou for all your help and support.
  • wjcroftwjcroft Mount Shasta, CA
    OK, that's great to hear. So your problem is resolved.

    Remember with V2 you need to flash V2 firmware in BOTH RFduinos and mainboard. You can't use V1 RFduino firmware with V2.

  • edited January 2017
    did you follow these instructions when flashing the V2 Device and Dongle?
    Important! As of firmware version 2, you must first flash the board with the line radio.flashNonVolatileMemory(); in the setup() function uncommented, then comment the line back out and program again. It is very important that you reprogram the board with the line commented out. We must do this because with firmware version two, the channel number is stored to non-volatile memory so we can change the channel number of the system from the PC/Driver.


    Your problem sounds like a radio channel number mismatch is the print out from the HOST "Failure: Communications timeout - Device failed to poll Host $$$" when there is no polling DEVICE. 
  • RushdaRushda Pakistan
    Yes,we did flash board with the above stated line,the device and dongle radio were flashed successfully. The firmware V2 however resulted in the error of 'No device found'
  • Did you remove radio.flashNonVolatileMemory() after flashing? Were you able to get the radio config utility up and running when you had V1 firmware? Sounds like there is still confusion on what needs to be done to get the system to work. 

    As long as the both radios are on the same channel, you but the board in bootloader mode, there is no way for you to get a "No target found" error. Another key thing to make sure is that the dongle has it's switch in GPIO6 not RESET when trying to do OTA firmware uploading.
  • PedroPedro Puerto Rico
    Hi. We are experiencing the same problem Rushda had (not able to upload the arduino code via bluetooth and getting the error message "target not found"). We are successfully uploading the hex file to the PIC32 and programming both RFduino as device and host. Any help would be appreciated.
  • PedroPedro Puerto Rico
    Hi William,

    Thanks for your input. After trying the Autoscan and programming the RFduino for the board with the Device arduino code, I managed to connect with the Cyton board. I'm still not sure what the problem was because I had tried to program both RFduino with the Host and Device codes and had failed to connect. I will try to make further tests to see if it keeps working. Again, thanks for your help.
  • wjcroftwjcroft Mount Shasta, CA
    Pedro, that's great!

    With the new firmware on the RFduino's, both microcontrollers MUST agree on the radio channel number they are using to communicate. It sounds likely that your 2 RFduinos, although programmed correctly with their firmware, were somehow not agreeing on channel number. The Autoscan fixed this.

    Once the channels agree, they will not change.

    William

Sign In or Register to comment.