Subcategories

  • pytrack 2.0 pysleep example issue

    10
    0 Votes
    10 Posts
    40 Views
    B
    @Gijs After playing around with the code over the weekend i've determined my issues to be in the py.go_to_sleep command. I am able to wake the unit without this in deepsleep using the accelerometer interrupt. Unfortunatly with my use, deepsleep boot time is too slow, so i am now using machine.sleep which puts the idle power down to .03A.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • L04 OEM "minimum recommended circuit" doesn't work

    6
    1
    2 Votes
    6 Posts
    59 Views
    J
    @robert-hh Focus? What focus? :-/
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • machine.sleep() causes reboot

    6
    1
    0 Votes
    6 Posts
    77 Views
    G
    Note that this is a bug in the firmware, and we will work on fixing this. Clarifying a bit more, from network import WLAN wlan=WLAN() #or setting pycom.wlan_on_boot(True) with an empty ssid machine.sleep(1000,True) will give a coredump, but using (for example) wlan.init(ssid etc.) or wlan.connect(...) to set an SSID and/or password before calling machine.sleep() will not coredump. It has to do with the wake-mechanism. When the second argument is set to True, the firmware expects an SSID to initialize the WiFi with, and when its NULL, we get the coredump.
  • Unable to get Pin Interrupt working

    4
    0 Votes
    4 Posts
    29 Views
    N
    @robert-hh Thank you Robert. That did indeed solve my problem, and the code below does now work.I appreciate you help and response. In my defense, I was totally mislead by the Pycom documents on pin callback, which i copy here. [image: 1629668599642-7ab96306-6e2f-4fa1-8584-a11383e86fbb-image.png] It says arg is optional and can be left empty or set toNone. I had left the wrong arg empty as you saw. Leaving the arg empty returns "Unhandled exception in callback handler etc etc". I had also tried (None) which caused a syntax error. I now realise that when they said "leave arg empty" they were talking about "arg=None" in this line: p_in.callback(Pin.IRQ_FALLING,pin_handler,arg=None) and not "arg" in this line : def pin_handler(arg): Here is the working code for anyone following on. #Pin interrupt import machine from machine import Pin from time import sleep p11 = Pin('P11',mode=Pin.IN,pull=Pin.PULL_UP) def pin_handler(p): print('got int on P11',p) p11.callback(Pin.IRQ_FALLING,pin_handler) while True: print ('in main') sleep(2)
  • GPy: AT+SQNINS not returning usable data

    3
    0 Votes
    3 Posts
    33 Views
    A
    @Jordan-Restifo said in GPy: AT+SQNINS not returning usable data: lte.send_at_cmd("AT+SQNINS=1") Hi @Jordan-Restifo, Just facing the same issue you're having and trying out your solution. Was this what you used to resolve? from network import LTE from time import sleep_ms lte = LTE() lte.attach() while not lte.isattached(): sleep_ms(10) lte.connect() while not lte.isconnected(): sleep_ms(10) lte.pppsuspend() lte.disconnect() lte.deinit() data = lte.send_at_cmd('AT+SQNINS=0') print(data) If so, I'm getting the error of the modem not being initialised. ♦Traceback (most recent call last): File "<stdin>", line 12, in <module> OSError: LTE modem not initialized Guidance on how you fixed this would be greatly appreciated! Thank you
  • GPy self-corrupts when low battery level

    4
    0 Votes
    4 Posts
    38 Views
    N
    @Don-iot IMO Don, unless your voltage detector is set well above the minimum supply voltage for the gpy, its too late. You shouldnt start the processor if the voltage is too low because bad things can happen when the proessor tries to run at out of spec vcc.
  • 2 Votes
    6 Posts
    66 Views
    B
    @Daniel-Near thats right, but past few times a new version of the extension has been released quite quickly. Now I wonder if its still being supported at all. There are always nice features in each new version of VSCode, so its not really great to stay on the old version for too long.
  • Can't Set IP in AP mode with 1.20.3.b3

    2
    0 Votes
    2 Posts
    19 Views
    J
    @pigamonte can you clarify what happens exactly (how you determine it doesn’t work, including any logs, traces or errors), whether that works on other firmware versions, and whether Pybytes is enabled?
  • NB-IoT failing to attach on T-Mobile in the US

    5
    0 Votes
    5 Posts
    56 Views
    P
    Can anyone recommend a known working SIM card (with APN) from any provider that will get us on NB-IoT with a Fipy in the US? (Still no luck unfortunately, with our current iointel SIM (T-mobile). Tried various firmware combinations on both Fipy and modem: 1.20.3.b3, 1.20.2.r4, 41019, 46262 etc)
  • Pygate Set Up - VS Pycom Import Error

    2
    1
    0 Votes
    2 Posts
    10 Views
    G
    As import pycom is not a known python library, it makes VSCode complain. Though the library is installed on the microcontroller in the firmware. You should be able to upload this without any issues to your Gpy or Lopy4.
  • DeepSleepShield On a Breadboard

    7
    2
    0 Votes
    7 Posts
    38 Views
    robert-hhR
    @Simon-RAPP That looks like an error. It is more likely 20µA
  • 0 Votes
    3 Posts
    18 Views
    A
    @Elizar Thanks for your reply! But I think that in this situation that is not the problem, because it is not connected to a battery. The lopy is conected (using a PySense2 board) to the USB from my Laptop.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Gpy LTE IOT Thingsboard

    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • Integrations page stuck on loading screen

    5
    0 Votes
    5 Posts
    29 Views
    G
    Can you perhaps clear the cache for pybytes in your browser? It is most likely related to that.. I cannot think of a reason it is account related
  • Pygate shows Disconnected on TTN

    4
    0 Votes
    4 Posts
    24 Views
    G
    You need to set a custom gateway EUI in TTS as mentioned in the guide. If you then download the configuration, it will also show in the json file. You can use part of the Lopy4 EUI to generate the EUI as examplified.
  • pycom reset

    5
    0 Votes
    5 Posts
    55 Views
    G
    Could you try the firmware updater tool and, in the advanced section, erase the NVS and CONFIG partitions, as well as the flash? Let me know!
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied

Pycom on Twitter