• Code testing without wires

    9
    0 Votes
    9 Posts
    172 Views
    K
    @robert-hh said in Code testing without wires: So Atom may not notice the deepsleep Interesting Rob. I notice on longer deepsleeps (>1hr) that Atom over usb often misses the wakeups too. I don't understand the mechanism though. Some nights Atom will show every hourly wakeup print. On the occasions where it misses one it never reconnects.
  • Guru meditation revisted

    7
    0 Votes
    7 Posts
    229 Views
    K
    @peterp Swapped to a different gpy & problem gone so I'm assuming the other gpy had dodgy flash out-of-the box. As soon as dev board is free I'll plug in the dodgy & supply the requested. Maybe I'll get another rare 'double exception' error. I have to say I'm sceptical any of this will lead anywhere given the random nature of the errors it throws but always happy to proven wrong.
  • Best Practices for Push Notifications to gpy

    3
    0 Votes
    3 Posts
    78 Views
    P
    Thanks! Appreciate the recommendation.
  • Becuase of firmware or not?

    9
    0 Votes
    9 Posts
    144 Views
    Don-iotD
    Case closed, we found it and it was our own mistake.
  • struct

    3
    0 Votes
    3 Posts
    77 Views
    K
    @Gijs tnx
  • Latest Sqnsupdate UART upgrade not working 1.20.2.r4

    3
    0 Votes
    3 Posts
    109 Views
    G
    From what I could find in this time, it seems to be related to the CEREG setting of the LTE modem, which was changed in r2. If we use (temporarily) from network import LTE lte = LTE() lte.send_at_cmd('AT+CEREG=2') I can get the sqnsupgrade to work over UART. Let me know if that works for you! Gijs
  • upload problem

    19
    0 Votes
    19 Posts
    285 Views
    K
    @robert-hh Nice & it's got a scroll slider which is more than I can say for pymakr.
  • gpy UART does not work on battery power

    9
    0 Votes
    9 Posts
    149 Views
    M
    SOLVED. thanks to jcaron. It was his response that led me to the solution. The power to the ESP should not go to the vin but to 3v3. Than it works
  • Help sending json

    4
    0 Votes
    4 Posts
    133 Views
    G
    In python, we'd use a socket, something like this over raw TCP: (you could fabricate your own HTTP header import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #use the inet interface, and TCP socket s.connect(socket.getaddrinfo('www.micropython.org', 80)[0][-1]) s.sendall(json) or using urequests, this is not built into the pycom firmware, but available as a library: (you can place it in the lib folder in your project to include it in your project): https://github.com/micropython/micropython-lib/blob/master/urequests/urequests.py and the API pages: https://makeblock-micropython-api.readthedocs.io/en/latest/public_library/Third-party-libraries/urequests.html
  • Calculation with GPY

    3
    0 Votes
    3 Posts
    68 Views
    H
    nice. Cheers mate
  • Gpy + Hologram in Europe

    gpy hologram.io
    1
    0 Votes
    1 Posts
    74 Views
    No one has replied
  • LTE_WAKE usage

    gpy deepsleep wake on pin
    2
    1 Votes
    2 Posts
    115 Views
    K
    LTE_WAKE seems to be a hardware provision for pycom processor wakeup from some event in the lte modem but I've never seen it implemented.
  • rtc.init() is not working on v1.20.2.r2

    4
    1 Votes
    4 Posts
    108 Views
    robert-hhR
    @Gijs using rtc.ntp_sync() you'll get the proper time. After that, rtc.init() seems to be ignored.
  • Upload code via TTL/USB adapter

    6
    0 Votes
    6 Posts
    163 Views
    Don-iotD
    @p-s Yes I did. I had to use TX and RX and as I recall it and then you must connect P2 to ground. I am feeding my GPY with power and ground from this adapter as well. Works great with Pymakr, does not work with Vscode or Atom -at least with my knowledge
  • Pygate with Gpy lost connection to ttn

    6
    0 Votes
    6 Posts
    178 Views
    G
    Today :)
  • Deepsleep pytrack 2 issues and external RTC

    4
    0 Votes
    4 Posts
    100 Views
    G
    Ah sorry, I forgot to mention. We made it such that when you plug in a battery, the pysense sleep feature will work as expected,. Im not sure about using a USB cable without data connections, but I believe we sense for the 5V coming from a USB connector. Gijs
  • Method To Take Control of Cell Modem

    41
    0 Votes
    41 Posts
    2k Views
    T
    @Petteri-Salo The g.modem_state global variable is used in a timer interrupt routine to control the blinking and color of the LED on the GPY. This gives the user a visual indication of what state the modem is in. This variable is not critical to using the supplied code. Unfortunately the code I have published is just snippets of my production code. It was not designed to be a general purpose library (although I believe it comes close). Without publishing the entire application, there will be pieces that are missing. Your message has motivated me to add a few random notes. We had production, shipping GPy based systems that were experiencing reliability issues. Upgrades to newer versions of the OS seemed to make the problems worse. There was considerable evidence that the problems were caused by the LTE module. For months I waited hoping that Pycom would make the existing product more robust. Instead they seemed to be going in all directions introducing new products but not improving the fundamental building blocks of the GPy. I was especially concerned when we purchased a new batch of chips and they came by default with a version of the OS which would not run our application for more than a few minutes without crashing. In addition Pycom seemed to be moving in a direction requiring our code in the future to be dependent on a cloud based system (Pybytes). This seemed to be making everything even more complex. We couldn't even get the simple things to work reliably. In principle our application was not complex. We just needed to transmit a few packets of data to a web site periodically over the LTE network reliably without crashing the system. It was also desired that the communication would not interfere with the real time task of sampling data. After looking at the C/C++ source code to the LTE module, it seemed way too complex. I had no good way to make changes, improvements, or bug fixes (assuming I could find the problem). If we moved the modem code to Python, we could bypass the usage of the LTE module and use the TCP/IP stack included in the Sequans modem. Maybe by pushing the communication load to the Sequans modem, the MicroPython would be more reliable and responsive to real time tasks. Maybe by publishing the code more people could observe and help to improve the code. We desperately needed a reliable method of communication. Since converting our code to controlling the cell modem directly in Python code, I can now say the random crashes have been solved. The real time task is more responsive. I hope that someday the LTE module will be improved so that it can be used again. Having a TCP/IP stack that is usable by both WIFI and LTE is certainly an advantage. Can it be made reliable? Can the ESP32 chip smoothly multitask while using LTE methods? I wish I knew of a method to marry our higher level Python calls for modem management with the TCP/IP stack of MicroPython. I think such a technique could make the LTE module code simpler. I think the dream of most application developers is to have simple reliable software methods to connect/disconnect to the network. The fact that we are connected using the cell network, WIFI, or whatever should be mostly transparent. We all want Pycom to be successful. They have developed a good product. We did what we did because their priorities were not ours at the time.
  • Gpy wont attach to LTE but Fipy does

    20
    0 Votes
    20 Posts
    2k Views
    Y
    Bumping this if anyone knows how to fix I have updated to the latest firmware as well
  • 0 Votes
    2 Posts
    79 Views
    G
    Hi, In theory this should be possible (note that I have no prior experience in azure iot) The Pygate basically forwards a JSON containing the data to the LoraWAN server, you can change the server to redirect to an azure iot hub, but I imagine the azure iot hub cannot work directly with the packets forwarded, meaning you will have to write some adaptation in C and compile custom firmware. I can link you to the file that will need changing: https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/esp32/pygate/lora_pkt_fwd/lora_pkt_fwd.c#L1491 this test case falls through for Lora packets with a correct CRC, then the JSON is asembled based on the RF receive data. I think you will have to make some changes there in order to get the thing working for azure Iot.
  • Simpoint CAT-M1 through KPN in Germany

    1
    0 Votes
    1 Posts
    42 Views
    No one has replied

Pycom on Twitter