• RE: How to bring up the network in Spresense?

    Hi,

    The wifi.h file was just a plain header file holding my wifi credentials.
    Just remove it, or create it, and add the missing defines you will get when you build next time.
    SSID and password probably.

    @vivekbhadra said in How to bring up the network in Spresense?:

    @TE-KarlKomierowski ok thanks. I tried compiling the drivers source file and I am getting the below errors:

    esp8266/esp8266_main.c:23:18: fatal error: wifi.h: No such file or directory
     #include "wifi.h"
                      ^
    compilation terminated.
    ERROR: arm-none-eabi-gcc failed: 1
           command: arm-none-eabi-gcc -M -fno-builtin -mabi=aapcs -Wall -Wstrict-prototypes -Wshadow -Wundef -g -Os -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -I. -isystem /home/vbhadra/spresense/sdk/../nuttx/include -D__KERNEL__ -pipe -gdwarf-3 -isystem /home/vbhadra/spresense/sdk/bsp/include -isystem /home/vbhadra/spresense/sdk/modules/include -I /home/vbhadra/spresense/sdk/drivers/lcd -I /home/vbhadra/spresense/sdk/../nuttx/drivers/video -I /home/vbhadra/spresense/sdk/drivers/esp8266 esp8266/esp8266_main.c
    make[1]: *** [.depend] Error 1
    esp8266/esp8266_main.c:23:18: fatal error: wifi.h: No such file or directory
     #include "wifi.h"
                      ^
    compilation terminated.
    

    I guess you might have grabbed the wifi.h from the nuttx tree? In case you still have the same header file, would you mind pass it to me please?

    Cheers

    posted in Spresense
  • RE: How to bring up the network in Spresense?

    @vivekbhadra said in How to bring up the network in Spresense?:

    @TE-KarlKomierowski Thanks a lot Karl for sending the ESP8266 drivers. I will try integrating it in the Spresense SDK. Just to double check, has it already been integrated in the Spresense SDK? In that case I would not spend time on integrating it. But if not, do you have the Kconfig file for the drivers? Thanks again.

    Hi, no they have not been integrated. I simply add them to my makefile to compile to object files to be linked together.

    posted in Spresense
  • RE: How to bring up the network in Spresense?

    Hi @vivekbhadra

    I think that the best way would to have Spresense send pictures over Wifi to free up the SD card.

    To get the wifi to work:
    https://developer.sony.com/develop/spresense/tutorials-sample-projects/spresense-tutorials/how-to-equip-spresense-with-wifi-connectivity

    I have a set of drivers for ESP8266 that have been ported to Spresense SDK. I will have to email them to you since I can't upload them here.

    BR

    posted in Spresense
  • RE: Recorder_WAV -- Multiple Recordings

    @user1388

    Hi,

    This is a known issue. I have found a temporary solution for now. Unfortunately, this requires that you build the Spresense Arduino package again. You can use this: https://github.com/sonydevworld/spresense-arduino-compatible

    Currently, when an error is detected, the Audio module stops working. However, this can be changed and when FIFO OVERFLOW is detected, samples can be dropped instead.

    As a result, the application does not finish recording, but on the other hand does not guarantee that all samples will be saved.

    Solution:

    • Find function bool AudioRecorderSink::write(const AudioRecSinkData_s &param) in the file sdk/modules/audio/objects/media_recorder/audio_recorder_sink.cpp

    • Comment line number 84.

    • Return true instead of false on line number 85.

    After the changes, the function should look like this:

    bool AudioRecorderSink::write(const AudioRecSinkData_s &param)
    {
      if (param.byte_size > 0) {
        if (CMN_SimpleFifoGetVacantSize(static_cast<CMN_SimpleFifoHandle *>
            (m_output_device_hdlr.simple_fifo_handler)) < param.byte_size)
          {
            // MEDIA_RECORDER_WARN(AS_ATTENTION_SUB_CODE_SIMPLE_FIFO_OVERFLOW);
            return true;
          }
    
        if (CMN_SimpleFifoOffer(static_cast<CMN_SimpleFifoHandle *>
            (m_output_device_hdlr.simple_fifo_handler),
            static_cast<const void*>(param.mh.getVa()), param.byte_size) == 0)
          {
            MEDIA_RECORDER_WARN(AS_ATTENTION_SUB_CODE_SIMPLE_FIFO_OVERFLOW);
            return false;
          }
    
        m_output_device_hdlr.callback_function(param.byte_size);
      }
      return true;
    }
    

    This is only a temporary solution. If I find other, I will let you know.

    posted in Spresense
  • RE: Other image sensors?

    Hi @JanKok

    I don't know much about the sensors you have mentioned. But Framos is a reseller of Sonys imaging sensors.
    They will most probably be able to assist you: https://www.framos.com/en/

    Please keep in mind that Spresense uses a CMOS parallel interface to connect the camera to keep the power consumption as low as possible.

    BR

    posted in Spresense
  • RE: Camera app cannot detect SD card

    Hi @vivekbhadra ,

    1. No, USB connected to the Main board is fine.
    2. No, but if the SD card is fine, and works in a computer, has FAT filesystem and still doesn't work with Spresense, try with a different Spresense if you have a different one.
    3. I am using master too.

    You will get the same config as I if you just:

    tools/config.py -k release
    tools/config.py examples/camera
    

    I don't think that the CONFIG_CXD56_SPISD has to be set since the SD card is not running on a regular SPI bus but the SDIO bus.

    https://github.com/sonydevworld/spresense-hw-design-files/blob/master/CXD5602PWBEXT1/schematics/CXD5602PWBEXT1_schematics.pdf

    Press the main board to the extension board again if you can, maybe the connection is not proper in the B2B connector.

    I can also email you my nuttx.spk file I used when I tested this. You can just flash that one down and see. Then you will have the exact same binary as I did and that has been proven to work.

    posted in Spresense
  • RE: Camera app cannot detect SD card

    Hi @vivekbhadra ,

    I did the following:

    tools/config.py -k release
    tools/config.py examples/camera
    make buildkernel
    make 
    

    I flashed it and then ran the camera example and this is the output.

    NuttShell (NSH) NuttX-7.22
    nsh> 
    nsh> help
    help usage:  help [-v] [<cmd>]
    
      [           date        help        mksmartfs   rm          uname       
      ?           dd          hexdump     mh          rmdir       umount      
      basename    df          kill        mount       set         unset       
      break       echo        ls          mv          sh          usleep      
      cat         printf      mb          mw          shutdown    xd          
      cd          exec        mkdir       poweroff    sleep       
      cp          exit        mkfatfs     ps          test        
      cmp         false       mkfifo      pwd         time        
      dirname     free        mkrd        reboot      true        
    
    Builtin Apps:
      camera
    nsh> camera
    FILENAME:/mnt/sd0/VIDEO001.YUV
    FILENAME:/mnt/sd0/VIDEO002.YUV
    FILENAME:/mnt/sd0/VIDEO003.YUV
    FILENAME:/mnt/sd0/VIDEO004.YUV
    FILENAME:/mnt/sd0/VIDEO005.YUV
    FILENAME:/mnt/sd0/VIDEO006.YUV
    FILENAME:/mnt/sd0/VIDEO007.YUV
    FILENAME:/mnt/sd0/VIDEO008.YUV
    FILENAME:/mnt/sd0/VIDEO009.YUV
    FILENAME:/mnt/sd0/VIDEO010.YUV
    

    I think either your SD card is not working or the main board is not correctly mounted to the extension board.
    What filesystem do you have on your SD card and how big is the card? Can you verify that it is working as it should in your PC?

    nsh> mount
      /mnt/sd0 type vfat
      /mnt/spif type smartfs
      /proc type procfs
    
    posted in Spresense
  • RE: Suggestion for future versions of Sony Audio Control API

    Thanks four your feedback, will relay it to the engineering team.

    posted in General Sony related developer discussions
  • RE: Suggestion: server application for testing API requests for multiple devices

    The more that ask the more I have to bargain with ☺

    posted in General Sony related developer discussions