Arduino Mega Server

Модератор: Alex

Alex
Сообщения: 2357
Зарегистрирован: Пт апр 20, 2012 12:53 pm
Благодарил (а): 42 раза
Поблагодарили: 262 раза

Re: Arduino Mega Server

Сообщение Alex » Ср сен 21, 2016 12:14 pm

Во-первых лог неполный, во-вторых меня смущает строка

Код: Выделить всё

Network adapter: none
Это говорит о том, что вы скорее всего провели инсталляцию с отклонениями от инструкции

http://hi-lab.ru/arduino-mega-server/do ... tion/setup
DimKa2008
Сообщения: 7
Зарегистрирован: Вт сен 20, 2016 10:32 pm
Благодарил (а): 0
Поблагодарили: 0

Re: Arduino Mega Server

Сообщение DimKa2008 » Ср сен 21, 2016 9:50 pm

Alex писал(а):Во-первых лог неполный, во-вторых меня смущает строка

Код: Выделить всё

Network adapter: none
Это говорит о том, что вы скорее всего провели инсталляцию с отклонениями от инструкции

http://hi-lab.ru/arduino-mega-server/do ... tion/setup
это весь лог из сериал порта, больше ничего нет.

Хм... Как то странно... ничего не делал. решил вечером попробовать еще раз достучаться и получилось....
Только вместо стартовой странцы иероглифы
Alex
Сообщения: 2357
Зарегистрирован: Пт апр 20, 2012 12:53 pm
Благодарил (а): 42 раза
Поблагодарили: 262 раза

Re: Arduino Mega Server

Сообщение Alex » Чт сен 22, 2016 8:55 am

это весь лог из сериал порта, больше ничего нет.
Так это значит, что АМС у вас «завис».

Судя по вашим постам, у вас неправильно синсталлирована система и проект. Сносим всё, ставим 1.6.5. r2 и распаковываем дистрибутив и вводим настройки СТРОГО ПО ИНСТРУКЦИИ — и всё у вас заработает.
serghei
Сообщения: 2575
Зарегистрирован: Пт ноя 06, 2015 10:22 am
Откуда: Кишинёв
Благодарил (а): 303 раза
Поблагодарили: 282 раза

Re: Arduino Mega Server

Сообщение serghei » Чт сен 22, 2016 9:25 am

Не спешите сносить. У меня пару раз выводились иероглифы при битой SD карте. Внимательно проверьте правильность названий файлов и их содержание. А лучше использовать новую карту. То есть система стартовала и в веб чего то выводила, и потом зависала. У кого то из наших подобное было , когда не грузились полноэкранные демо в 3-д.
PS . Поменял уже 2 картридера , пока нашел нормальный. Первый вообще " ломал " карточку до полной не вменяемости....
AMS : ESP32 + NRF24 + 1Wire-I2C мост DS2482 + счетчик DS2423 + сеть MySensors + редактирование страниц в браузере + Upload по воздуху + SPIFFS
DimKa2008
Сообщения: 7
Зарегистрирован: Вт сен 20, 2016 10:32 pm
Благодарил (а): 0
Поблагодарили: 0

Re: Arduino Mega Server

Сообщение DimKa2008 » Чт сен 22, 2016 7:09 pm

Заработало... но как-то странно... ничего особо не делал. просто спустя какое то время вновь включил и начал показывать иероглифы. потом спустя еще какое то время страница начала отражаться нормально.
Но возник один вопрос. если подключаю к просто источнику питания ничего не происходит. пишет, что сервер не ответил. если подключаю к ноуту, то отображается все как нужно... ничего не понимаю.
Sps
Сообщения: 45
Зарегистрирован: Вт окт 27, 2015 4:23 pm
Благодарил (а): 6 раз
Поблагодарили: 1 раз

Re: Arduino Mega Server

Сообщение Sps » Пт сен 23, 2016 12:31 pm

Всем добрый день, подскажите каким образом реализовать на (AMS 0.14 Mega 2560 + W5100) систему подогрева/охлаждения помещения с установкой заданной температуры через веб-интерфейс и записью настроек в EEPROM в идеале с использованием таймера, часов, календаря для работы по заданному месячному, суточному алгоритму, достаточно в этом случае использовать уже имеющиеся модули (с возможной доработкой) или придется писать новые.
Agafonq2
Сообщения: 7
Зарегистрирован: Ср авг 17, 2016 3:44 pm
Благодарил (а): 0
Поблагодарили: 0

Re: Arduino Mega Server

Сообщение Agafonq2 » Пт сен 23, 2016 2:03 pm

Подскажите плиз.
Есть мега и 2 w5100. Запускаю самое начало, просто чтоб увидеть сайт.

Собственно не появляется сайт, как-будто его нет или не читается карта.
Взял другой шилд с ним всё заработало.

Попробовал из примеров. Не происходила инициализация. Сменил PinMode с 4 на 53.
Инициализация карты прошла как и запись/чтение файлов.
Но сайт так и не появился. Нет его:(
Что посоветуете?
gonzales
Сообщения: 5
Зарегистрирован: Чт мар 24, 2016 2:04 pm
Благодарил (а): 0
Поблагодарили: 0

Re: Arduino Mega Server

Сообщение gonzales » Пт сен 23, 2016 4:36 pm

Добрый день, Alex!
Подскажите, а версия Ардуино принципиальна? У меня сейчас 1.6.12, так вот AMS не компилируется вообще
Библиотеки конечно же подключил.

Код: Выделить всё

In file included from E:\AMS\Sketches\ams\Arduino\arduino_mega_server\arduino_mega_server.ino:115:0:

C:\Users\mironov\Documents\Arduino\libraries\DS1307RTC/DS1307RTC.h:19:22: error: 'tmElements_t' has not been declared

     static bool read(tmElements_t &tm);

                      ^

C:\Users\mironov\Documents\Arduino\libraries\DS1307RTC/DS1307RTC.h:20:23: error: 'tmElements_t' has not been declared

     static bool write(tmElements_t &tm);

                       ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\rtc.ino: In function 'void rtcInit()':

rtc:10: error: 'setSyncProvider' was not declared in this scope

     setSyncProvider(getNtpTime);

                               ^

rtc:14: error: 'setSyncProvider' was not declared in this scope

     setSyncProvider(RTC.get); // get time from RTC

                            ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\rtc.ino: In function 'void rtcSync()':

rtc:24: error: 'setSyncProvider' was not declared in this scope

   setSyncProvider(getNtpTime);

                             ^

rtc:26: error: 'timeStatus' was not declared in this scope

   if (timeStatus() != timeNotSet) {

                  ^

rtc:26: error: 'timeNotSet' was not declared in this scope

   if (timeStatus() != timeNotSet) {

                       ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\rtc.ino: In function 'void serialRTC()':

rtc:42: error: 'year' was not declared in this scope

   Serial.print(year()); 

                     ^

rtc:44: error: 'month' was not declared in this scope

   printDigits(month());

                     ^

rtc:46: error: 'day' was not declared in this scope

   printDigits(day());

                   ^

rtc:48: error: 'hour' was not declared in this scope

   printDigits(hour());

                    ^

rtc:50: error: 'minute' was not declared in this scope

   printDigits(minute());

                      ^

rtc:52: error: 'second' was not declared in this scope

   printDigits(second());

                      ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\rtc.ino: In function 'void showDuration(time_t)':

rtc:73: error: 'SECS_PER_DAY' was not declared in this scope

   if(duration >= SECS_PER_DAY){

                  ^

rtc:78: error: 'SECS_PER_HOUR' was not declared in this scope

   if(duration >= SECS_PER_HOUR){

                  ^

rtc:83: error: 'SECS_PER_MIN' was not declared in this scope

   if(duration >= SECS_PER_MIN){

                  ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\rtc.ino: In function 'void checkEvent(time_t*)':

rtc:94: error: 'now' was not declared in this scope

   time_t timeNow = now();

                        ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\rtc.ino: In function 'void setNtpInterval()':

rtc:149: error: 'timeStatus' was not declared in this scope

     if (timeStatus() == timeNotSet) {

                    ^

rtc:149: error: 'timeNotSet' was not declared in this scope

     if (timeStatus() == timeNotSet) {

                         ^

rtc:150: error: 'setSyncInterval' was not declared in this scope

       setSyncInterval(18);

                         ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\server.ino: In function 'void serverWorks()':

server:207: error: 'class EthernetServer' has no member named 'available_'

     EthernetClient sclient = server.available_(sock);

                                     ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\server_ajax.ino: In function 'String makeTime()':

server_ajax:226: error: 'hour' was not declared in this scope

     s += makeDigits(hour());

                          ^

server_ajax:227: error: 'second' was not declared in this scope

     if (second() % 2 == 0) {s += " ";}

                ^

server_ajax:229: error: 'minute' was not declared in this scope

     s += makeDigits(minute());

                            ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\server_ajax.ino: In function 'void setNoo()':

server_ajax:550: error: 'NOO_CHANNEL_1' was not declared in this scope

     nooOn(NOO_CHANNEL_1);

           ^

server_ajax:550: error: 'nooOn' was not declared in this scope

     nooOn(NOO_CHANNEL_1);

                        ^

server_ajax:554: error: 'NOO_CHANNEL_1' was not declared in this scope

     nooOff(NOO_CHANNEL_1);

            ^

server_ajax:554: error: 'nooOff' was not declared in this scope

     nooOff(NOO_CHANNEL_1);

                         ^

server_ajax:560: error: 'NOO_CHANNEL_2' was not declared in this scope

     nooOn(NOO_CHANNEL_2);

           ^

server_ajax:560: error: 'nooOn' was not declared in this scope

     nooOn(NOO_CHANNEL_2);

                        ^

server_ajax:564: error: 'NOO_CHANNEL_2' was not declared in this scope

     nooOff(NOO_CHANNEL_2);

            ^

server_ajax:564: error: 'nooOff' was not declared in this scope

     nooOff(NOO_CHANNEL_2);

                         ^

server_ajax:571: error: 'NOO_CHANNEL_3' was not declared in this scope

     nooSetLedLastState(NOO_CHANNEL_3);

                        ^

server_ajax:571: error: 'nooSetLedLastState' was not declared in this scope

     nooSetLedLastState(NOO_CHANNEL_3);

                                     ^

server_ajax:575: error: 'NOO_CHANNEL_3' was not declared in this scope

     nooOff(NOO_CHANNEL_3);

            ^

server_ajax:575: error: 'nooOff' was not declared in this scope

     nooOff(NOO_CHANNEL_3);

                         ^

server_ajax:599: error: 'nooBind' was not declared in this scope

       nooBind(command);

                      ^

server_ajax:601: error: 'nooUnbind' was not declared in this scope

         nooUnbind(command);

                          ^

server_ajax:619: error: 'NOO_CHANNEL_1' was not declared in this scope

       nooLed(NOO_CHANNEL_1, 0, 0, 0);

              ^

server_ajax:619: error: 'nooLed' was not declared in this scope

       nooLed(NOO_CHANNEL_1, 0, 0, 0);

                                    ^

server_ajax:620: error: 'NOO_CHANNEL_2' was not declared in this scope

       nooValue(NOO_CHANNEL_2, commandCorrect);

                ^

server_ajax:620: error: 'nooValue' was not declared in this scope

       nooValue(NOO_CHANNEL_2, commandCorrect);

                                             ^

server_ajax:636: error: 'NOO_CHANNEL_3' was not declared in this scope

         case 10: nooRed    (NOO_CHANNEL_3, 127); break;

                             ^

server_ajax:636: error: 'nooRed' was not declared in this scope

         case 10: nooRed    (NOO_CHANNEL_3, 127); break;

                                               ^

server_ajax:637: error: 'nooGreen' was not declared in this scope

         case 20: nooGreen  (NOO_CHANNEL_3, 127); break;

                                               ^

server_ajax:638: error: 'nooBlue' was not declared in this scope

         case 30: nooBlue   (NOO_CHANNEL_3, 127); break;

                                               ^

server_ajax:639: error: 'nooYellow' was not declared in this scope

         case 40: nooYellow (NOO_CHANNEL_3, 127); break;

                                               ^

server_ajax:640: error: 'nooMagenta' was not declared in this scope

         case 50: nooMagenta(NOO_CHANNEL_3, 127); break;

                                               ^

server_ajax:641: error: 'nooCyan' was not declared in this scope

         case 60: nooCyan   (NOO_CHANNEL_3, 127); break;

                                               ^

server_ajax:642: error: 'nooGray' was not declared in this scope

         case 70: nooGray   (NOO_CHANNEL_3, 127); break;

                                               ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\server_ajax.ino: In function 'void responseDash(EthernetClient)':

server_ajax:789: error: 'day' was not declared in this scope

     s += makeTag("day",      "", String(day()));

                                             ^

server_ajax:790: error: 'month' was not declared in this scope

     s += makeTag("month",    "", String(month()));

                                               ^

server_ajax:791: error: 'weekday' was not declared in this scope

     s += makeTag("weekday",  "", String(weekday()));

                                                 ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\tntp.ino: In function 'time_t getNtpTime()':

tntp:54: error: 'setSyncInterval' was not declared in this scope

       setSyncInterval(3600);

                           ^

tntp:55: error: 'SECS_PER_HOUR' was not declared in this scope

       return secsSince1900 - 2208988800UL + timeZone * SECS_PER_HOUR;

                                                        ^

tntp:59: error: 'setSyncInterval' was not declared in this scope

   setSyncInterval(18);

                     ^

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\upload.ino: In function 'void uploadWorks()':

upload:160: error: 'setSyncProvider' was not declared in this scope

       setSyncProvider(RTC.get); 

                              ^

upload:162: error: 'timeStatus' was not declared in this scope

       if (timeStatus() != timeSet) {

                      ^

upload:162: error: 'timeSet' was not declared in this scope

       if (timeStatus() != timeSet) {

                           ^

exit status 1
'setSyncProvider' was not declared in this scope
*** Сообщение запрещено. Сообщение похоже на спам. ***
serghei
Сообщения: 2575
Зарегистрирован: Пт ноя 06, 2015 10:22 am
Откуда: Кишинёв
Благодарил (а): 303 раза
Поблагодарили: 282 раза

Re: Arduino Mega Server

Сообщение serghei » Пт сен 23, 2016 4:44 pm

Ребята, если у Вас чего то не получается или идет не так как надо - покажите хоть картинку происходящего. За год изучения АМС насмотрелся всякого , но телепатически видеть еще не научился))). И что при этом вываливается в сериал...
AMS : ESP32 + NRF24 + 1Wire-I2C мост DS2482 + счетчик DS2423 + сеть MySensors + редактирование страниц в браузере + Upload по воздуху + SPIFFS
gonzales
Сообщения: 5
Зарегистрирован: Чт мар 24, 2016 2:04 pm
Благодарил (а): 0
Поблагодарили: 0

Re: Arduino Mega Server

Сообщение gonzales » Пт сен 23, 2016 4:45 pm

Добрый день, Alex!
Подскажите, а версия Arduino IDE пинципиальна? У меня сейчас стоит 1.6.12, так вот AMS не компилируется. Библиотеки я конечно же все подключил. Лог огромный, весь приводить не буду
Вот кусочек

Код: Выделить всё

In file included from E:\AMS\Sketches\ams\Arduino\arduino_mega_server\arduino_mega_server.ino:115:0:

C:\Users\mironov\Documents\Arduino\libraries\DS1307RTC/DS1307RTC.h:19:22: error: 'tmElements_t' has not been declared

     static bool read(tmElements_t &tm);

Код: Выделить всё

E:\AMS\Sketches\ams\Arduino\arduino_mega_server\rtc.ino: In function 'void showDuration(time_t)':

rtc:73: error: 'SECS_PER_DAY' was not declared in this scope
*** Сообщение запрещено. Сообщение похоже на спам. ***
Ответить