Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Popular

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

    Log in to post
    • All categories
    • Announcements & News
    •      Beta Announcements & Development News
    •      Announcements only for members
    • Helium Hotspot
    •      Support
    • Pylife
    • Pybytes IoT platform
    •      Announcements & News
    •      Ideas
    •      Support & Troubleshooting
    • Getting Started
    •      Discussion
    •      WiPy 2&3
    •      LoPy
    •      SiPy
    •      GPy
    •      FiPy
    •      Pymakr
    •      Pymate
    •      Expansion Board
    •      MicroPython
    • Tutorials
    •      Projects
    •      Guides
    • Firmware
    •      Discussion
    •      Enhancements
    •      Issues & Bugs
    • Wireless Technologies
    •      WiFi
    •      Bluetooth
    •      LoRa
    •      Sigfox
    •      Cellular
    • Software Tools
    •      Discussion
    •      Enhancements
    •      Issues & Bugs
    • Events
    • Comments & Feedback
    • Jobs at Pycom
    • PyGo
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All Time
    • Day
    • Week
    • Month

    • F

      WEEKLY UPDATE W/C 7th Nov
      Announcements & News • • Fred  

      27
      2
      Votes
      27
      Posts
      9457
      Views

      Ralph

      Hi @jonirons, Sorry about not responding to this issue 16 days ago, it got forgotten between all the other posts. I just responded to your message in that topic.
    • E

      LoPy4 - I2C - FRAM Memory - MicroPython Library
      MicroPython • i2c fram • • Eric Tremblay  

      27
      0
      Votes
      27
      Posts
      118
      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?
    • D

      Function similar to Pulse In in C
      LoPy • lopy error • • Devang Sharma  

      27
      1
      Votes
      27
      Posts
      9042
      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.
    • F

      Open source Licence
      Announcements & News • • Fred  

      27
      6
      Votes
      27
      Posts
      17218
      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.
    • Z

      Send a file from one Lopy to another Lopy
      LoPy • wlan lopy to lopy wifi lopy • • zceld  

      27
      0
      Votes
      27
      Posts
      7821
      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: 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()
    • D

      Pytrack and Pysense firmware release 0.0.2
      Announcements & News • pytrack firmware pysense • • daniel  

      27
      1
      Votes
      27
      Posts
      12215
      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
      Announcements & News • firmware • • daniel  

      27
      0
      Votes
      27
      Posts
      11588
      Views

      soren

      @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
    • K

      OneWire.py problem
      GPy • onewire ds18b20 • • kjm  

      26
      0
      Votes
      26
      Posts
      2279
      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
    • A

      Pymakr will not connect - inconsistent following firmware 0.9.3.b2
      Pymakr • • AgriKinetics  

      26
      0
      Votes
      26
      Posts
      11548
      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: 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: 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)
    • N

      Telstra LTE Cat-M Working on FiPy .... Just..
      FiPy • fipy lte lte-m cat-m1 telstra • • nathanh  

      26
      0
      Votes
      26
      Posts
      9776
      Views

      John Baird

      @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?
    • bucknall

      Alex's Corner - Week 3 - LoPy LoRaWAN Nano-Gateway & TTN
      Events • lopy lora lorawan nano gateway webinar • • bucknall  

      26
      2
      Votes
      26
      Posts
      16974
      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.
    • F

      SD card doesn't work on pysense
      Discussion • pysense micropython code • • freddy  

      26
      0
      Votes
      26
      Posts
      4788
      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.
    • J

      Crash when connecting to my home Wifi router
      LoPy • • JF002  

      26
      0
      Votes
      26
      Posts
      10743
      Views

      williamv

      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!
    • D

      New firmware release, version 1.6.4.b1
      Announcements & News • lopy firmware wipy sipy • • daniel  

      26
      6
      Votes
      26
      Posts
      10399
      Views

      livius

      @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 :)
    • P

      What do I misunderstand about rgbled()?
      Discussion • • Paul Holthuizen  

      26
      0
      Votes
      26
      Posts
      156
      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 :-)
    • tobru

      NTC temperature sensor
      LoPy • lopy adc sensors temperature ntc • • tobru  

      26
      0
      Votes
      26
      Posts
      15008
      Views

      robert-hh

      @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?
    • C

      Lora-Mac=‎FFFFFFFFFFFFFFFF
      LoPy • lopy mac • • Camot  

      26
      0
      Votes
      26
      Posts
      11995
      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
      LoPy • lopy modbus sp3485 • • mbriarg  

      26
      0
      Votes
      26
      Posts
      8601
      Views

      M

      @daniel Good afternoon, the modifications work perfect. Best regards. Mariano.
    • B

      WiPy 2.0 not working after firmware update.
      WiPy 2&3 • wipy 2.0 firmware update bug • • BluCode  

      25
      0
      Votes
      25
      Posts
      8864
      Views

      B

      @robert-hh Unfortunately deep sleep hasn't been implemented in the latest version I can use (1.6.3). I will try to implement it myself later today though.
    • A

      How potential buyers could insert WIFI-parameters
      Discussion • wifiinformation • • Andy_N.  

      25
      0
      Votes
      25
      Posts
      7243
      Views

      A

      Dear @misterlisty, the other day, you made a remark here that you are using Bluetooth and a standard BLE scanner app to update the WiFi credentials. We also believe this would be a perfect solution unless the Smart Config option might get unlocked through ESP-TOUCH at some point in the future. As you told us that it even works really well and you might be able to share the code, we are humbly asking if you could give us some pointers regarding that. The background of our question is that we are in the process of conceiving a convenient datalogger application [1] for the Hiveeyes project [2] which is well suitable to be used for other environmental purposes beyond monitoring bee hives. We will be happy when this might spark your interest. With kind regards, Andreas. [1] https://github.com/hiveeyes/hiveeyes-micropython-firmware [2] https://community.hiveeyes.org/
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 7 / 10