• FiPy - connecting and sending data over CAT-M1

    1
    0 Votes
    1 Posts
    175 Views
    No one has replied
  • High current consumption in deep sleep: 80 mA

    gpy deep sleep
    8
    0 Votes
    8 Posts
    1k Views
    A
    @averri said in High current consumption in deep sleep: 80 mA: OSError: the requested operation failed We just mitigated this through [1] by invoking lte.deinit() with the "reset" operation like lte.deinit(detach=False, reset=True) [1] https://github.com/hiveeyes/hiveeyes-micropython-firmware/commit/ec7c80e1219fb119c2881a0019cecdfad220f29f
  • 0 Votes
    11 Posts
    2k Views
    A
    @Andy_N said in Power consumption / wifi-information storage machine.deepsleep(): OSError: the requested operation failed We just mitigated this through [1] by invoking lte.deinit() with the "reset" operation like lte.deinit(detach=False, reset=True) [1] https://github.com/hiveeyes/hiveeyes-micropython-firmware/commit/ec7c80e1219fb119c2881a0019cecdfad220f29f
  • ram alternative to nvram?

    10
    0 Votes
    10 Posts
    705 Views
    A
    @robert-hh said in ram alternative to nvram?: Having the RAM disk mirrored to RTC memory is hardly usable, since the size is limited to 2048 byte. Thanks for your investigations revolving this and for letting us know about the outcome!
  • getaddrinfo in a thread

    thread gettaddrinfo
    7
    0 Votes
    7 Posts
    1k Views
    A
    Just retyped this for the sake of improved readability. You might want to save it as /flash/lib/dnstest.py. import time import usocket import machine import _thread """ >>> import dnstest; dnstest.dns_lookup('google.com') 0 None 1 (2, 1, 0, '', ('172.217.18.14', 443)) 2 (2, 1, 0, '', ('172.217.18.14', 443)) 3 (2, 1, 0, '', ('172.217.18.14', 443)) 4 (2, 1, 0, '', ('172.217.18.14', 443)) """ response = None def run_getaddrinfo(host, port): global response response = usocket.getaddrinfo(host, port)[0] def dns_lookup(hostname, timeout=5): _thread.start_new_thread(run_getaddrinfo, (hostname, 443)) for i in range(timeout): print(i, response) machine.idle() time.sleep(1) print('Ready.') It works flawlessly over a WiFi connection, but LTE might well have its delicacies.
  • urequests timeouts

    timeout urequests
    9
    0 Votes
    9 Posts
    774 Views
    K
    @andreas blobs are a bit beyond my skill set but ai=socket.getaddrinfo(host, 443) is using a socket so I reckon a 5s OSError socket timeout should prevent hangs if someone can figure out how to change the default timeout & recompile. My thread attempt was pretty simple, put getaddrinfo in a thread, wait for 5s in the main program then move on if the thread had not produced a DNS by then. Instead the main program stalled after 1 iteration of the 5s delay loop and waited for the thread.
  • 1.20.1.r1 & adhoc wifi

    adhoc wifi
    2
    0 Votes
    2 Posts
    199 Views
    C
    Because it is a bad idea to open a network by default? Together with the WiFi you open ftp and telnet. So you have full control over the machine, when you are able to use a search engine. I don't miss the times when scott tiger opened 80% of the oracle DBs. Beside the security issue most people doesn't want that theire microcontrollers use by default as much power as possible. They want to have a easy way to turn the features on and not to read a lot of manuals and community articles how to switch unwanted features off.
  • File system problems & solutions

    firmware file system littlefs fat
    9
    0 Votes
    9 Posts
    673 Views
    A
    @kjm said in File system problems & solutions: the windows version of this CLI The CLI program should probably just be the same .exe file which is also the graphical thing. According to [1], its default location might be c:\Program Files (x86)\Pycom\Pycom Firmware Update\pycom-fwtool-cli.exe. [1] https://community.hiveeyes.org/t/setup-commandline-based-micropython-development-environment-on-linux-macos-and-windows/1639/15
  • 1.20.1.r1 questions

    3
    0 Votes
    3 Posts
    443 Views
    C
    @kjm said in 1.20.1.r1 questions: How important is a full flash erase when upgrading a GPY to 1.20.1.r1? Is import os; os.fs.format('/flash') via Atom a full flash erase? No. This will make the files invisible which you see under /flash. It will not touch the firmware with the frozen modules, the NVS, RTC and so on.
  • 1.20.1.r1

    gpy 1.20.1.r1 exception
    2
    0 Votes
    2 Posts
    240 Views
    kodarnK
    Can do do an "Erase All" operation? https://forum.pycom.io/topic/5318/flashing-v1-20-r1-bricks-my-lopy4
  • Sharing Variables Between Files

    3
    0 Votes
    3 Posts
    263 Views
    S
    Well I haven't written much yet to share, but it doesn't make sense to me that the gpy device can assume that the mobile network is always available and with good signal strength. Also, boot.py appears to be where the network connection is established, but what if in the main.py I want to put the device to sleep for some duration and wake the mobile network connection under some conditions. I would need to refer to the mobile object declared in the boot.py hence the sharing variable need. This gpy unit will be traveling and the network signal strength drops off frequently because I live in a horrible rural area.. where networking life is miserable. I would assume the same idea of putting the device into sleep to save on juice would be applicable here, but if its declared in boot.py how would it be interacted with in main.py?
  • Improved Initialize LTE

    2
    0 Votes
    2 Posts
    397 Views
    K
    You can check for modem crashes with mood=lte.send_at_cmd('at+cpin?').split('\r\n')[1]; print('mood =', mood) anything other than READY or +SYSSTART means the modem is crashed.
  • Terminating a thread after 5s

    thread timeout
    3
    0 Votes
    3 Posts
    416 Views
    K
    @oligauc Have realised thread locking was not what we were after. What we actually want to do is put getaddrinfo in a thread so that if it the DNS lookup takes forever or fails the main program can move on. Unfortunately, this is not what happens, the main program pauses & waits for the thread. https://forum.pycom.io/topic/5295/getaddrinfo in-a-thread
  • No Access Point SSID Detected

    4
    0 Votes
    4 Posts
    532 Views
    A
    @Sn3akyP3t3 said in No Access Point SSID Detected: What is the underlying reason for the need to do this? If I got this right, the reason is that the partition table is changed due to the new formatting mechanism of NVS introduced in IDF_v3.2 (1.20.1) So, I am figuring something in NVRAM might be crucial to get right which otherwise might magically break the WiFi and/or LoRa bearers. References https://forum.pycom.io/topic/5258/firmware-release-v1-20-1/2 https://forum.pycom.io/topic/5258/firmware-release-v1-20-1/21
  • Failed to connect (Error: Port is not open)

    4
    0 Votes
    4 Posts
    491 Views
    robert-hhR
    @Nebr You could try to add yourself to the dialout group: sudo adduser <your name> dialout And then logout/login, or to be safe, reboot.
  • GPy Hardware Version

    3
    0 Votes
    3 Posts
    327 Views
    O
    @tlanier The difference between the GPy 1.0 and 1.2 is the band support. With the latest firmware the following bands are supported: GPy 1.0 -> 3, 4, 12, 13, 20, 28 GPy 1.2 -> 1, 2, 3, 4, 5, 8, 12, 13, 14, 17, 18, 19, 20, 25, 26, 28, 66
  • sim card expiry

    sim gpy sequans
    2
    0 Votes
    2 Posts
    301 Views
    O
    @kjm To check whether the LTE sim card is deactivated or not you need to contact the service provider.
  • Read the Sensor data through AWS cloud using GPY

    2
    0 Votes
    2 Posts
    246 Views
    O
    @LindaJackson I am not familiar with the managed AWS servers. I just made a search and i think you have a couple of options. Option A: Create a string on the GPY with the information you want to send to the server like temperature, reading timestamp, crc, etc. Create a socket server on your AWS instance that parses the string with device information and push your data to a database. Option B: Install an MQTT server on the AWS instance Use the MQTT client on the Pycom device to send the data to the server
  • Upgraded LTE-M modem FW and now I can't see any bands besides band 13....

    1
    0 Votes
    1 Posts
    202 Views
    No one has replied
  • LTE_WAKE and waking from network activity like SMS

    gpy lte m1 sms wake gpio
    6
    2 Votes
    6 Posts
    1k Views
    F
    @dan Any updates on this issue? Seems like their hasn't been much change in the documentation.

Pycom on Twitter