Вопрос по коду для EasyVR 3 для моста

Kruppa
Offline
Зарегистрирован: 18.12.2015

Здравствуйте!
У меня еще одна проблема) Прошу подсказать!

Купил EasyVR и шилд для подключения к ардуино (прям сверху). Всё спаял.

Теперь для скетча-моста зашел в Ардуино, Файл ->примеры-> EasyVR - > bridgeEasyVR

Залил в ардуино. Открыл коммандер для EasyBR (перемычку поставил на SW),

пишет, что оборудование нашел, но некорректный софтвеер...
Может на самом деле, я не тот код для моста в ардуино поставил?

Заранее спасибо, если что-то сможете подсказать

Kruppa
Offline
Зарегистрирован: 18.12.2015

Вот тот код моста :
 

/*
  EasyVR Bridge

  Soft-connects the PC Serial port with the EasyVR module, using Arduino
  like a USB/Serial adapter.

**
  Example code for the EasyVR library v1.6
  Written in 2014 by RoboTech srl for VeeaR <http:://www.veear.eu> 

  To the extent possible under law, the author(s) have dedicated all
  copyright and related and neighboring rights to this software to the 
  public domain worldwide. This software is distributed without any warranty.

  You should have received a copy of the CC0 Public Domain Dedication
  along with this software.
  If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
*/

#include "Arduino.h"
#if !defined(SERIAL_PORT_MONITOR)
  #error "Arduino version not supported. Please update your IDE to the latest version."
#endif

#if defined(SERIAL_PORT_USBVIRTUAL)
  // Shield Jumper on HW (for Leonardo and Due)
  #define port SERIAL_PORT_HARDWARE
  #define pcSerial SERIAL_PORT_USBVIRTUAL
#else
  // Shield Jumper on SW (using pins 12/13 or 8/9 as RX/TX)
  #include "SoftwareSerial.h"
  SoftwareSerial port(12,13);
  #define pcSerial SERIAL_PORT_MONITOR
#endif

#include "EasyVR.h"

EasyVR easyvr(port);

void setup()
{
  // setup PC serial port
  pcSerial.begin(9600);

  // bridge mode?
  int mode = easyvr.bridgeRequested(pcSerial);
  switch (mode)
  {
  case EasyVR::BRIDGE_NONE:
    // setup EasyVR serial port
    port.begin(9600);
    // run normally
    pcSerial.println(F("---"));
    pcSerial.println(F("Bridge not started!"));
    break;
    
  case EasyVR::BRIDGE_NORMAL:
    // setup EasyVR serial port (low speed)
    port.begin(9600);
    // soft-connect the two serial ports (PC and EasyVR)
    easyvr.bridgeLoop(pcSerial);
    // resume normally if aborted
    pcSerial.println(F("---"));
    pcSerial.println(F("Bridge connection aborted!"));
    break;
    
  case EasyVR::BRIDGE_BOOT:
    // setup EasyVR serial port (high speed)
    port.begin(115200);
    // soft-connect the two serial ports (PC and EasyVR)
    easyvr.bridgeLoop(pcSerial);
    // resume normally if aborted
    pcSerial.println(F("---"));
    pcSerial.println(F("Bridge connection aborted!"));
    break;
  }
}

void loop()
{
}

 

Kruppa
Offline
Зарегистрирован: 18.12.2015

Запустил сегодня TestEasyVr, результат мониторинга com-порта - "не загружен мост", EasyVR не обнаружен...
Уже все перепроверил, контакты несколько раз перепаял,  единственное, что смущает, когда замерил напряжение на 12 и 13 пинах, то на 12 ножке - около нуля , а на 13 -около 5V