Micropython, Pycom y Sigfox

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
ErickFalcon
Posts: 1
Joined: Fri Mar 20, 2020 5:00 pm

Micropython, Pycom y Sigfox

Post by ErickFalcon » Fri Mar 20, 2020 5:09 pm

Buen dia. Estoy utilizando Atom para Programar una placa Lopy4 con MicroPython, El siguiente error me aparece en varios codigos cuando quiero cargar un codigo directo en la placa, el error no aparece cuando solo utilizo la herramienta Run, Solo aparece cuando uso la herramienta Upload project to device. Aqui adjunto el codigo que no me permite Upload al dispositivo.

from network import Sigfox
import socket

# init Sigfox for RCZ1 (Europe)
sigfox = Sigfox(mode=Sigfox.SIGFOX, rcz=Sigfox.RCZ1)

# create a Sigfox socket
s = socket.socket(socket.AF_SIGFOX, socket.SOCK_RAW)

# make the socket blocking
s.setblocking(True)

# configure it as uplink only
s.setsockopt(socket.SOL_SIGFOX, socket.SO_RX, False)

# send some bytes
s.send(bytes([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]))


Esta es la respuesta donde aparece el error:

>>>
Uploading project (main folder)...

>>>
>>>
>>> Safe booting device... (see settings for more info)

>>> ets Jun 8 2016 00:22:57

rst:0x7 (TG0WDT_SYS_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff8020,len:8
load:0x3fff8028,len:2176
load:0x4009fa00,len:19760
entry 0x400a05bc
Pycom MicroPython 1.20.2.rc3 [v1.11-2037465] on 2020-02-05; LoPy4 with ESP32
Pybytes Version: 1.3.1
Type "help()" for more information.
>>> Reading file status
No files to upload
Upload done, resetting board...
OKets Jun 8 2016 00:22:57

rst:0x7 (TG0WDT_SYS_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff8020,len:8
load:0x3fff8028,len:2176
load:0x4009fa00,len:19760
entry 0x400a05bc
Smart Provisioning started in the background
See https://docs.pycom.io/smart for details
Traceback (most recent call last):
File "main.py", line 3, in <module>
NameError: name '​' isn't defined
Pycom MicroPython 1.20.2.rc3 [v1.11-2037465] on 2020-02-05; LoPy4 with ESP32
Pybytes Version: 1.3.1
Type "help()" for more information.
>>>

Necesito ayuda, Gracias :)

Cualquier duda o aclaracion mandela para actulizar la información o dar mas datos sobre el problema en cuestion.


MODERATOR NOTE: I approved this post, but please repost in English.

User avatar
jimmo
Posts: 1769
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Micropython, Pycom y Sigfox

Post by jimmo » Tue Apr 14, 2020 5:30 am

ErickFalcon wrote:
Fri Mar 20, 2020 5:09 pm
Estoy utilizando Atom para Programar una placa Lopy4 con MicroPython,
This might be better asked in the Pycom forum over at https://forum.pycom.io/

I also have a LoPy4 board and have found it to be quite unreliable.

Post Reply