Arduino Mega Server
Модератор: Alex
Re: Arduino Mega Server
По первому логу вроде всё нормально, но он не такой информативный — давайте посмотрим на лог от 0.16 версии.
Re: Arduino Mega Server
Лог с версии 0,16Alex писал(а):По первому логу вроде всё нормально, но он не такой информативный — давайте посмотрим на лог от 0.16 версии.
AMS Mega (0.16) started...
Modul Hardware...
Controller: Arduino Mega
Total memory: 8192
Free memory: 3880 (47%)
Network adapter: none
started
Modul EEPROM...
Name: AMS Mega
Address: 24
started
Modul Ethernet...
MAC: 0 2A F5 12 67 FA
IP: 192.168.1.100
started
Modul SD...
SD init... OK
index.htm... found
Check..............
Files: 144
Size: 1977975
started
Modul SD Info...
SD type: SD2
Filesystem: FAT32
Cluster: 4096
SD size: 1971 MB
started
Modul NTP...
Local port: 123
started
Modul RTC...
Waiting for NTP sync...
Transmit NTP request (129.6.15.30:123)
Re: Arduino Mega Server
Во-первых лог неполный, во-вторых меня смущает строка
Это говорит о том, что вы скорее всего провели инсталляцию с отклонениями от инструкции
http://hi-lab.ru/arduino-mega-server/do ... tion/setup
Код: Выделить всё
Network adapter: nonehttp://hi-lab.ru/arduino-mega-server/do ... tion/setup
Re: Arduino Mega Server
это весь лог из сериал порта, больше ничего нет.Alex писал(а):Во-первых лог неполный, во-вторых меня смущает строка
Это говорит о том, что вы скорее всего провели инсталляцию с отклонениями от инструкцииКод: Выделить всё
Network adapter: none
http://hi-lab.ru/arduino-mega-server/do ... tion/setup
Хм... Как то странно... ничего не делал. решил вечером попробовать еще раз достучаться и получилось....
Только вместо стартовой странцы иероглифы
Re: Arduino Mega Server
Так это значит, что АМС у вас «завис».это весь лог из сериал порта, больше ничего нет.
Судя по вашим постам, у вас неправильно синсталлирована система и проект. Сносим всё, ставим 1.6.5. r2 и распаковываем дистрибутив и вводим настройки СТРОГО ПО ИНСТРУКЦИИ — и всё у вас заработает.
Re: Arduino Mega Server
Не спешите сносить. У меня пару раз выводились иероглифы при битой SD карте. Внимательно проверьте правильность названий файлов и их содержание. А лучше использовать новую карту. То есть система стартовала и в веб чего то выводила, и потом зависала. У кого то из наших подобное было , когда не грузились полноэкранные демо в 3-д.
PS . Поменял уже 2 картридера , пока нашел нормальный. Первый вообще " ломал " карточку до полной не вменяемости....
PS . Поменял уже 2 картридера , пока нашел нормальный. Первый вообще " ломал " карточку до полной не вменяемости....
AMS : ESP32 + NRF24 + 1Wire-I2C мост DS2482 + счетчик DS2423 + сеть MySensors + редактирование страниц в браузере + Upload по воздуху + SPIFFS
Re: Arduino Mega Server
Заработало... но как-то странно... ничего особо не делал. просто спустя какое то время вновь включил и начал показывать иероглифы. потом спустя еще какое то время страница начала отражаться нормально.
Но возник один вопрос. если подключаю к просто источнику питания ничего не происходит. пишет, что сервер не ответил. если подключаю к ноуту, то отображается все как нужно... ничего не понимаю.
Но возник один вопрос. если подключаю к просто источнику питания ничего не происходит. пишет, что сервер не ответил. если подключаю к ноуту, то отображается все как нужно... ничего не понимаю.
Re: Arduino Mega Server
Всем добрый день, подскажите каким образом реализовать на (AMS 0.14 Mega 2560 + W5100) систему подогрева/охлаждения помещения с установкой заданной температуры через веб-интерфейс и записью настроек в EEPROM в идеале с использованием таймера, часов, календаря для работы по заданному месячному, суточному алгоритму, достаточно в этом случае использовать уже имеющиеся модули (с возможной доработкой) или придется писать новые.
Re: Arduino Mega Server
Подскажите плиз.
Есть мега и 2 w5100. Запускаю самое начало, просто чтоб увидеть сайт.
Собственно не появляется сайт, как-будто его нет или не читается карта.
Взял другой шилд с ним всё заработало.
Попробовал из примеров. Не происходила инициализация. Сменил PinMode с 4 на 53.
Инициализация карты прошла как и запись/чтение файлов.
Но сайт так и не появился. Нет его:(
Что посоветуете?
Есть мега и 2 w5100. Запускаю самое начало, просто чтоб увидеть сайт.
Собственно не появляется сайт, как-будто его нет или не читается карта.
Взял другой шилд с ним всё заработало.
Попробовал из примеров. Не происходила инициализация. Сменил PinMode с 4 на 53.
Инициализация карты прошла как и запись/чтение файлов.
Но сайт так и не появился. Нет его:(
Что посоветуете?
Re: Arduino Mega Server
Добрый день, Alex!
Подскажите, а версия Ардуино принципиальна? У меня сейчас 1.6.12, так вот AMS не компилируется вообще
Библиотеки конечно же подключил.
*** Сообщение запрещено. Сообщение похоже на спам. ***
Подскажите, а версия Ардуино принципиальна? У меня сейчас 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