pietro_m | In reply to @ulno:matrix.org 2, what's the up, the pi gives your PC? you mean the IP? I have the pi plugged into my router (it's a pi 1, so no wifi). And my laptop connected through wifi to the same router.
the router gives an ip to the pi, I can see the local web portal page, but some of the links there returns a "502 bad gateway" error
| 22:07:48 |
pietro_m | Linux ulnoiotgw 4.19.25-v7+ #1205 SMP Mon Feb 25 18:19:20 GMT 2019 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
ulnoiot@ulnoiotgw:~ $ cd iot-test/node1/
ulnoiot@ulnoiotgw:~/iot-test/node1 $ ulnoiot menu
ulnoiot Simple Shell
Use mouse, arrow keys, enter, or shortcut key to select.
You are about to initialize a device that is locally connected to the
gateway via usb or serial from the following path:
iot-test/node1
Are you sure, and have you connected only one node to the gateway?
Running initialize serial
Trying to select serial port.
Traceback (most recent call last):
File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 86, in <module>
sys.exit(main(sys.argv))
File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 81, in main
return do_probe(options.esp_port)
File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 18, in do_probe
ser.read_all() # discard all
File "/home/ulnoiot/ulnoiot/.local/vp/lib/python3.5/site-packages/serial/serialutil.py", line 648, in read_all
return self.read(self.in_waiting)
File "/home/ulnoiot/ulnoiot/.local/vp/lib/python3.5/site-packages/serial/serialposix.py", line 467, in in_waiting
s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)
OSError: [Errno 25] Inappropriate ioctl for device
Using ttyAMA0.
Traceback (most recent call last):
File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 86, in <module>
sys.exit(main(sys.argv))
File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 81, in main
return do_probe(options.esp_port)
File "/home/ulnoiot/ulnoiot/bin/dongle_probe.py", line 18, in do_probe
ser.read_all() # discard all
File "/home/ulnoiot/ulnoiot/.local/vp/lib/python3.5/site-packages/serial/serialutil.py", line 648, in read_all
return self.read(self.in_waiting)
File "/home/ulnoiot/ulnoiot/.local/vp/lib/python3.5/site-packages/serial/serialposix.py", line 467, in in_waiting
s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)
OSError: [Errno 25] Inappropriate ioctl for device
Processing esp8266 (framework: arduino; platform: espressif8266; board: esp01_1m)
---------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp01_1m.html
PLATFORM: Espressif 8266 > Espressif Generic ESP8266 ESP-01 1M
HARDWARE: ESP8266 160MHz 80KB RAM (1MB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 48 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP8266TrueRandom> 1.0
|-- <AsyncMqttClient> 0.8.2
| |-- <ESPAsyncTCP> 1.2.0
| | |-- <ESP8266WiFi> 1.0
|-- <DHT> 1.0.0
|-- <DallasTemperature> 3.8.0
| |-- <OneWire> 2.3.4
|-- <FastLED> 3.2.4
| |-- <EspSoftwareSerial> 3.4.1
|-- <U8g2> 2.25.4
| |-- <Wire> 1.0
| |-- <SPI> 1.0
|-- <LiquidCrystal_I2C>
| |-- <Wire> 1.0
|-- <Grove Barometer Sensor BMP085> 2.0.0
| |-- <Wire> 1.0
|-- <Grove - Barometer Sensor BMP280> 1.0.1
| |-- <Wire> 1.0
|-- <BH1750>
| |-- <Wire> 1.0
|-- <SparkFun TSL2561> 1.1.0
| |-- <Wire> 1.0
|-- <SparkFun APDS9960 RGB and Gesture Sensor> 1.4.2 #c6435c6
| |-- <Wire> 1.0
|-- <MPU6050>
| |-- <I2Cdev>
| | |-- <Wire> 1.0
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <waveform>
|-- <HX711_ADC_ID1900>
|-- <ArduinoOTA> 1.0
| |-- <ESP8266WiFi> 1.0
| |-- <ESP8266mDNS> 1.2
| | |-- <ESP8266WiFi> 1.0
|-- <SPI> 1.0
|-- <Wire> 1.0
|-- <VL53L0X>
| |-- <Wire> 1.0
|-- <OneWire> 2.3.4
|-- <ESP8266WiFi> 1.0
|-- <Ticker> 1.0
Linking .pioenvs/esp8266/firmware.elf
Retrieving maximum program size .pioenvs/esp8266/firmware.elf
Building .pioenvs/esp8266/firmware.bin
Checking size .pioenvs/esp8266/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [==== ] 41.0% (used 33576 bytes from 81920 bytes)
PROGRAM: [=== ] 32.5% (used 332928 bytes from 1023984 bytes)
Configuring upload protocol...
Looking for upload port...
Use manually specified: /dev/ttyAMA0
Uploading .pioenvs/esp8266/firmware.bin
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
*** [upload] Error 2
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
error: failed sending 0xC0
error: failed sending 8 bytes
error: failed sending 36 bytes
error: failed sending 0xC0
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
==================== [ERROR] Took 43.37 seconds ====================
============================= [SUMMARY] =============================
Environment nodemcu [SKIP]
Environment wemos_d1_mini [SKIP]
Environment wemos_d1_mini_pro [SKIP]
Environment olimex [SKIP]
Environment esp-m [SKIP]
Environment sonoff [SKIP]
Environment esp8266 [ERROR]
==================== [ERROR] Took 43.37 seconds ====================
Trouble compiling or uploading new firmware, check errors.
Initializing/adopting not successfull, check errors above.
An error occurred running initialize serial. Check output, continue,
and eventually try again later.
┌─────────────────────────┐
│ Continue (C, Enter) │
└─────────────────────────┘
| 02:24:07 |