Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login
    1. Home
    2. Popular

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • F

      Open source Licence

      Watching Ignoring Scheduled Pinned Locked Moved Announcements & News
      27
      6 Votes
      27 Posts
      17k Views
      B
      I am pleased to confirm that the firmware of Pycom modules is now Open source and can be found here https://github.com/pycom/pycom-micropython I remember to read in the past a topic in the "Announcements & News" about that PyCom and Micropython (Damien George) will work together on ESP32 port. Well, I would like to know some things: Where are there this topic? Anyone can past me the URL? Is this https://github.com/micropython/micropython-esp32 the official address to MicroPython to ESP32 where PyCom and Damien are working together? I remember (via that announcement) that PyCom will be to commit the source code ESP32 project directally to official port (address above), is that happen? Because I checked today that last commit was done more than a month ago and less than a month PyCom released a new firmware with modifications on the MicroPython. Thank you.
    • R

      Camera image over MQTT

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython low power
      27
      0 Votes
      27 Posts
      18k Views
      S
      @jcaron Dear Jcaron: Tnx for your reply. Sorry, if I couldn't make it clear. But, I now I have made it to sending a few hundreds of bytes now (upto 1KB). As soon as I am done with the final project, I will share my updates.
    • D

      Pytrack and Pysense firmware release 0.0.2

      Watching Ignoring Scheduled Pinned Locked Moved Announcements & News firmware pytrack pysense
      27
      1 Votes
      27 Posts
      12k Views
      T
      @jmarcelino s/n is "1713000002" @Pajarraco sorry I should have said that I already used those drivers... but strangely, I had to manually select the drivers as the device appeared as "unknown device" and windows 10 didn't ask me to choose what to do automatically
    • D

      New firmware release 1.7.6.b1

      Watching Ignoring Scheduled Pinned Locked Moved Announcements & News firmware
      27
      0 Votes
      27 Posts
      12k Views
      sorenS
      @jmarcelino yes, of course. It's the part where I'm using the socket that is commented out right now: import machine from machine import UART from network import WLAN #from network import LoRa #lora = LoRa(mode=LoRa.LORAWAN) #from machine import SD import socket #import ssl #import time import os import pycom print('starting up..') #sd = SD() #os.mount(sd, '/sd') #time.sleep(5) #os.listdir('/sd') #time.sleep(5) uart = UART(0, 115200) os.dupterm(uart) pycom.heartbeat(False) pycom.rgbled(0x7f0000) # red wlan = WLAN() #print('SD mounted!') if machine.reset_cause() != machine.SOFT_RESET: print('setting wlan config...') wlan.init(mode=WLAN.STA) wlan.ifconfig(config=('10.0.0.88', '255.255.255.0', '10.0.0.1', '8.8.8.8')) if not wlan.isconnected(): print('looking for network...') wlan.connect('NETGEAR64', auth=(WLAN.WPA2, 'oddchair195'), timeout=5000) while not wlan.isconnected(): machine.idle() print('connected to wifi!') #s = socket.socket() #ss = ssl.wrap_socket(s) #ss.connect(socket.getaddrinfo('www.google.com', 443)[0][-1]) #print('connected to internet!') space = os.getfree('/flash') print('free flash mem: ', space) pycom.rgbled(0x007f00) # green
    • D

      Function similar to Pulse In in C

      Watching Ignoring Scheduled Pinned Locked Moved LoPy lopy error
      27
      1 Votes
      27 Posts
      9k Views
      D
      @robert-hh Thanks a lot, Man! Works like a charm. :) Now I get where I was wrong! I was measuring pulses the wrong way. Moreover, I wasn't resetting the self.start variable..!! :'D Thank You, Devang.
    • Z

      Send a file from one Lopy to another Lopy

      Watching Ignoring Scheduled Pinned Locked Moved LoPy lopy to lopy wlan wifi lopy
      27
      0 Votes
      27 Posts
      8k Views
      Z
      Good again. I return to post, because I would need the LoPy that receives the txt file is the one that starts the wifi as wlan = WLAN (mode = WLAN.AP, ssid = 'Gateway1', auth = (WLAN.WPA2, 'password'), antenna = WLAN.INT_ANT) I have tried to modify the code as I have the partner that works so that it is but I get error everywhere. Once trying once more, if I do not restart the board and try to execute the code, I always get the error: Traceback (most recent call last): File "<stdin>", line 17, in <module> OSError: [Errno 12] ENOMEM Because it is ? If someone can give me a hand code please! Capture Errors: [image: 1528129559872-f1.png] [image: 1528129567703-f2.png] used code: Server And Wifi AP: from network import WLAN import socket import select import time #Setup WiFi AP wlan = WLAN(mode=WLAN.AP, ssid='Gateway1', auth=(WLAN.WPA2,'password'), antenna=WLAN.INT_ANT) port = 12345 s = socket.socket() s.bind(socket.getaddrinfo("0.0.0.0", port)[0][4]) s.listen(1) print("Running server") while True: cl, remote_addr = s.accept() cl.setblocking(True) print("Client connection from:", remote_addr) file = "/flash/registro2.txt" with open(file, 'wb') as f: try: data = s.recv(1024) print(data) f.write(data) except TimeoutError: break Client and Lopy and in charge to send file: from network import WLAN import socket import select import machine import time # Abrimos wifi wlan = WLAN(mode=WLAN.STA) nets = wlan.scan() for net in nets: if net.ssid == 'Gateway1': print('Network found!') wlan.connect(net.ssid, auth=(net.sec, 'password'), timeout=5000) while not wlan.isconnected(): machine.idle() # save power while waiting print('WLAN connection succeeded!') break else: raise Exception("WiFi network not found") # sleep just to make sure the wifi is connected time.sleep(1) ip, subnet, gateway, dns = wlan.ifconfig() # Connect to server # Bind to the port port = 12345 s = socket.socket() s.connect((gateway, port)) s.setblocking(True) s.settimeout(2) while True: readable, writable, errored = select.select([s], [], []) for s in readable: cl, remote_addr = s.accept() cl.setblocking(True) print("Client connection from:", remote_addr) file = "/flash/registro.txt" print("Sending: ", file) with open(file, 'rb') as f: data = f.read(1024) while(data): print("sending", data) cl.sendall(data) data = f.read(1024) print("Done Sending") cl.close()
    • E

      LoPy4 - I2C - FRAM Memory - MicroPython Library

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython i2c fram
      27
      0 Votes
      27 Posts
      123 Views
      J
      @Eric-Tremblay Ah sorry I had missed that. No, the message is correct. The address is on 16 bits, so takes two bytes to send. What happens when you try a read?
    • A

      Pymakr will not connect - inconsistent following firmware 0.9.3.b2

      Watching Ignoring Scheduled Pinned Locked Moved Pymakr
      26
      0 Votes
      26 Posts
      12k Views
      K
      @abilio Thanks for your response and for the Pycom team on working on the solution to the issues. I did the same thing (firmware upgrade to 0.9.6.b1, pymakr 1.0.0.b7) and I'm using Windows 10. I am able to: FTP into LoPy with read and write access to the files (i.e. I can update my boot.py) telnet to LoPy via putty connect to LoPy via WLAN using another computer (Mac OS X) I am not able to: connect to LoPy via serial port (using both PyMakr and putty). PyMakr shows the following, and it seems like it connects to it then drops off: [image: 1480118842984-upload-0226ee5e-dfa4-472a-a010-67a51a93b6bc.png] connect to LoPy via wlan using Pymakr Also, I've kept the putty Window (serial) when I try connecting via my Mac (wlan) or Windows (PyMakr) and it prints the following during the attempts: [image: 1480119799988-upload-28c78253-0a34-4575-a745-6454fede1651.png] I've noticed in the new PyMakr, it has the Soft-reset settings as part of the configuration. Does this mean, the if machine.reset_cause() != machine.SOFT_RESET... is not needed for the boot.py? I've tried it with and without, and I have the same results. It should just work with this right? import os from machine import UART uart = UART(0, 115200) os.dupterm(uart)
    • J

      Crash when connecting to my home Wifi router

      Watching Ignoring Scheduled Pinned Locked Moved LoPy
      26
      0 Votes
      26 Posts
      11k Views
      W
      Same for me, upgraded firmware to 1.0.0.b1 on my LoPy, re-enabled IPv6 on router, happy puppy sinds then. Thank you for quickly fixing Pycom team!
    • T

      NTC temperature sensor

      Watching Ignoring Scheduled Pinned Locked Moved LoPy sensors lopy adc temperature ntc
      26
      0 Votes
      26 Posts
      15k Views
      robert-hhR
      @jmarcelino: Yes, Ive read that. But you would still have to compensate for the non-zero range (at least in your circuit). So at the moment and with limited requirements for precision, using the lower attenuation variants 0 and 6db and simply adding an offset would be sufficient as compensation. If you need precise values, yes, then an external ADC is anyhow recommended. B.T.W. Is there still the option to use the ADC in 10 bit mode, like by an option res = xx in the channel set-up?
    • D

      New firmware release, version 1.6.4.b1

      Watching Ignoring Scheduled Pinned Locked Moved Announcements & News lopy wipy firmware sipy
      26
      6 Votes
      26 Posts
      10k Views
      L
      @daniel I see that some timings/stability improved in pin. Now i am able read samsung tv codes without any problem from python code without need of C function as previously :) I tested this i suppose in many previous versions (last tested lower than 1.5) and it was not stable enought but now it work :)
    • B

      Alex's Corner - Week 3 - LoPy LoRaWAN Nano-Gateway & TTN

      Watching Ignoring Scheduled Pinned Locked Moved Events webinar lora lopy nano gateway lorawan
      26
      2 Votes
      26 Posts
      17k Views
      J
      @jmarcelino can you help me please? I was able to connect my NanoGateway to TTN, then I connected a node and i no had problems, however, now I am having problems to connect the node, when I start the node the following messages appear in the NanoGateway: [ 884.453] Received packet: {"rxpk": [{"data": "ABeYANB+1bNwQfHGnEnVs3BtML tNbMI=", "time": "2018-02-14T15:38:34.160580Z", "chan": 0, "tmst": 860755474, "s tat": 1, "modu": "LORA", "lsnr": 5.0, "rssi": -20, "rfch": 0, "codr": "4/5", "fr eq": 903.9001, "datr": "SF7BW125", "size": 23}]} [ 884.710] Push ack [ 887.718] Pull ack [ 889.710] Pull rsp [ 890.633] Sent downlink packet scheduled on 866.755, at 923.299 Mhz using SF12BW500: b' yZ\xe2\xb8 \x 191\xc3NL\xc7/\xba+\xf4\xc4' but the node is still getting "not joined yet", I am using the 915 Mhz.
    • C

      Lora-Mac=‎FFFFFFFFFFFFFFFF

      Watching Ignoring Scheduled Pinned Locked Moved LoPy lopy mac
      26
      0 Votes
      26 Posts
      12k Views
      J
      @Xykon Hi, how could I make sure I am using an unique MAC?, thanks
    • M

      LoPy + SP3485 + Modbus Lib Test. Register Read Error

      Watching Ignoring Scheduled Pinned Locked Moved LoPy lopy modbus sp3485
      26
      0 Votes
      26 Posts
      9k Views
      M
      @daniel Good afternoon, the modifications work perfect. Best regards. Mariano.
    • N

      Telstra LTE Cat-M Working on FiPy .... Just..

      Watching Ignoring Scheduled Pinned Locked Moved FiPy fipy lte cat-m1 lte-m telstra
      26
      0 Votes
      26 Posts
      10k Views
      John BairdJ
      @ioag Any chance you could share your Telstra connect code? I must be doing something wrong... Does anyone have an update on the stability issues?
    • F

      SD card doesn't work on pysense

      Watching Ignoring Scheduled Pinned Locked Moved Discussion pysense code micropython
      26
      0 Votes
      26 Posts
      5k Views
      S
      @Henning I had the same issue with the Expansionboard v3.1. The issue got solved, after using another Expansionboard v3.1 I've bought recentely..... I never used the SD-Card slot on the first one before, so I don't know, why it seems to be broken. Well, at least it works flawless with the second Expansionboard.
    • K

      OneWire.py problem

      Watching Ignoring Scheduled Pinned Locked Moved GPy onewire ds18b20
      26
      0 Votes
      26 Posts
      2k Views
      A
      @robert-hh said in OneWire.py problem: The [refurbished] driver is here: https://github.com/robert-hh/Onewire_DS18X20. It follows the API of the native MicroPython driver. Taking this chance, we want to thank @robert-hh so much for taking care of all the details regarding this driver. It was a real pleasure to work together with you getting this a real home and - to top it all off - big thanks that you also made its API match the one of the native driver, so people can swap them in and out. We have been doing this through [1] already and are very happy about it. [1] https://github.com/hiveeyes/hiveeyes-micropython-firmware/commit/2a23af47
    • P

      What do I misunderstand about rgbled()?

      Watching Ignoring Scheduled Pinned Locked Moved Discussion
      26
      0 Votes
      26 Posts
      159 Views
      P
      @robert-hh And precise enough to create the timing signals for a WS2812! I remember writing a piece of C-code for a PIC microcontroller controlling a whole string of these leds and wrestling with that for a bit. Thanks for your support. I was getting a little bit frustrated with the lopy on my bench but am starting to realize now that the difficult bit here is not in the networking but in the way a high-level language like Python interfaces with low level hardware. Just more stuff to learn :-)
    • R

      AWS IoT Device Support for LoPy

      Watching Ignoring Scheduled Pinned Locked Moved LoPy
      25
      0 Votes
      25 Posts
      12k Views
      R
      @juriw Thanks a Lot!
    • M

      MemoryError: memory allocation failed, allocating 2048 bytes - LOPY - 1.2.0.b1

      Watching Ignoring Scheduled Pinned Locked Moved LoPy
      25
      0 Votes
      25 Posts
      13k Views
      C
      @Shaun I can enumerate at least 5 active people from this forum that required the frozen functionality.
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 7 / 10