PyCom Setup: Difference between revisions
Bobblybook (talk | contribs) No edit summary |
Bobblybook (talk | contribs) No edit summary |
||
| Line 23: | Line 23: | ||
OSError: [Errno 2] ENOENT | OSError: [Errno 2] ENOENT | ||
Means that the referenced file is not found. Check file path and file name (TTN has a different file name to the code template). Also remove the leading '/' from the flash directory. I'm not sure of the file structure on the LoPy, but it seems that it's not placed in root, and therefore a relative path is needed instead. | Means that the referenced file is not found. Check file path and file name (TTN has a different file name to the code template). Also remove the leading '/' from the flash directory. I'm not sure of the file structure on the LoPy, but it seems that it's not placed in root, and therefore a relative path is needed instead. | ||
Port 1700 is used on TTN. Works fine for me at home, need to test this at WTS to see if the ports are open. | |||
Revision as of 07:58, 7 April 2022
1. Board soldering (TODO: Schematic/images)
2. Firmware updater
- Expansionboard/Pygate: https://docs.pycom.io/updatefirmware/expansionboard/
- LoPy/WiPy: https://docs.pycom.io/updatefirmware/device/
3. Install Atom + Pymakr plugin. Pymakr and firmware install tools only work on x86 processors, so ARM devices (eg. Raspberry pi) will not work for this step.
- For Windows, Visual Studio C++ 2019 is required (2022 currently isn't supported): Downloads & Resources
- For linux: install node v16 (v17 does NOT work currently) and 'make' tools + toolchain.
4. Set up Pygate gateway:
- Register new device in TTN (https://www.thethingsnetwork.org)
- Use template code from Pycom for the gateway: https://docs.pycom.io/tutorials/expansionboards/pygate/
Need permission to access serial port! Can be an issue on linux if serial won't connect in Atom.
Common errors: AttributeError: 'module' object has no attribute 'callback' This usually means that WiPy firmware has not been updated.
OSError: [Errno 2] ENOENT Means that the referenced file is not found. Check file path and file name (TTN has a different file name to the code template). Also remove the leading '/' from the flash directory. I'm not sure of the file structure on the LoPy, but it seems that it's not placed in root, and therefore a relative path is needed instead.
Port 1700 is used on TTN. Works fine for me at home, need to test this at WTS to see if the ports are open.