• GPY MIA

    7
    0 Votes
    7 Posts
    128 Views
    K
    @kjm Still keen to chase down this dead modem problem Gijs but need a photo of the alternate modem Tx pin that matches the underside of the gpy
  • LTE CAT M1/NB1 in Portugal

    cat-m1 nb-iot portugal
    7
    1 Votes
    7 Posts
    2k Views
    S
    Any news on the current LTE CAT-M1 status in Portugal? Do I need a special local simcard for this?
  • GPY + PYTRACK2 + VSC can't connect for normal use

    pytrack2 gpy vsc
    1
    0 Votes
    1 Posts
    48 Views
    No one has replied
  • GPy Modem unconnectable

    4
    0 Votes
    4 Posts
    97 Views
    G
    You can try different baudrates, as there is the possibility the modem is communicating on a different speed. Though I'll respond to your support request to figure this out in more detail!
  • Flash problem

    7
    0 Votes
    7 Posts
    158 Views
    K
    @robert-hh Replaced the usb cable & all good now Rob. Why this particular gpy won't work with the replaced cable when all the others do is a bit of a mystery, the current looks the same, the voltage trace on the CRO looks the same, must be some subtlety there I can't measure that prevented it from running/uploading from the repl.
  • [SOLVED] GPy 1.0 extremely low RSRP of -21474836.00, no LTE connectivity

    3
    0 Votes
    3 Posts
    101 Views
    L
    I figured out what the issue was: the SIM card was advertised to the company i work at as a "IoT Sim" which apparently does not mean NB-IoT or CAT-M1, but normal non-narrowband LTE. We have logged a complaint with the card provider and ordered a new card. I hope this helps anyone else stumbling across this thread. PS: can you mark topics as solved?
  • What is OSError code: -202 ?

    bugs
    3
    2
    0 Votes
    3 Posts
    89 Views
    S
    @jcaron I update firmware of modem same as existing one then problem solved. now can communicate.
  • Error starting modem connection

    4
    2
    0 Votes
    4 Posts
    197 Views
    G
    @Jeroen-Trappers Sorry for my late reply. Could you try to power cycle the modem and see if that results in any progress? If not, can you update the modem over UART using the instructions here: https://docs.pycom.io/updatefirmware/ltemodem/ Let me know!
  • GPy Skips LTE Code on First Run

    2
    0 Votes
    2 Posts
    54 Views
    E
    @B-Taylor There are always problems with AT commands once you are connected() to LTE. To resolve this, execute the AT commands before connecting and seek "data mode" in the modem documentation on how to exit and re-enter data mode.
  • Crashing after a couple of hours

    2
    0 Votes
    2 Posts
    66 Views
    Åke ForslundÅ
    Having it plugged to an usb-charger instead of the computer's usb has kept it stable since I sent above message so maybe it was the USB port on my computer or possibly Atom causing the issue.
  • Getting GPy to connect to Google Cloud IOT?

    2
    0 Votes
    2 Posts
    98 Views
    G
    Pybytes only one way from my experience. I use AWS-IoT and you can find the tutorial in the docs.pycom.io. seems like there is a micropython tutorial for esp32 https://github.com/GoogleCloudPlatform/iot-core-micropython
  • Modem ATI response and attachment issue

    4
    0 Votes
    4 Posts
    66 Views
    K
    @grpatt I've had several GPYs where the modem has simply died, no RF output during attachment attempts. If you've got a CRO you can wrap a few turns of wire around the lte antenna & connect to the CRO on it's mV scale. If there is no carrier the device is history, if there is very low carrier then your antenna is plugged into the wrong antenna socket.
  • View attached bands of modem cat m-1

    1
    0 Votes
    1 Posts
    39 Views
    No one has replied
  • AT+SQNINS not working

    4
    0 Votes
    4 Posts
    105 Views
    J
    Yes I am using the latest firmware. I discovered that the issue is the documentation is lacking. lte.pppsuspend() and pppresume are not sufficient to get this data. I need to fully disconnect and actually deinit the modem in order to get this data. If I do that, it works fine.
  • New GPY - LED Faulty

    20
    0 Votes
    20 Posts
    259 Views
    T
    @Gijs Sorry for the long delay in responding. I have rewritten our software to eliminate the use of threads and timer interrupts. My hope was this might eliminate the crashes. Instead the crashes still occur in different places and more frequently the processor locks up without printing the backtrace. Last night I was able to get a crash with backtrace. [image: 1625841040403-4de14dd9-41ac-4f18-b47e-01944c287a84-capture7-nothreads.png] [image: 1625841054947-cf35ac69-b06d-4558-901c-9f71474ca7c7-capture7-backtrace.png] The interesting thing here is even though I do not import or use the LTE module, the program is crashing inside a LWIP (Lightweight TCP/IP Stack) routine. Apparently the TCP/IP software is being loaded and called even though I am not using it in any way. One idea is now to learn how to rebuild the Pycom OS without including the LWIP stuff. I'm not sure how big a task that would be at this time. I've also investigated a new product that might have some promise. With some effort I was able to get their product loaded on the GPy. They currently do not have support for the Sequans modem in the GPy. The Toit language is definitely harder to read than Python from my point of view and the UART driver documentation is lacking (although it does support CTS and RTS). Toit | Cloud-managed containers on the ESP32 My decision point now seems to be: Try to rebuild the Pycom OS without features that I don't need to try to eliminate the crashes. Since I don't require the TCP/IP stack (we use the Sequans modem TCP/IP stack), threading, or timer interrupts, this should make the code simpler. It is a real shame that there is no hardware reset pin to the modem from the ESP32. I hope this is fixed in some future design of the GPy. Rewrite my app using the Espressif SDK in C/C++. One hurdle I have doing this is that the hardware design already uses the pins that the JTAG debugger requires. It looks like I would have to live with debugging using print statements. I would encourage Pycom to clearly show hardware designers what pins should not be used if they hope to do JTAG debugging with their design. Pursue learning Toit and try to write a driver for the Gpy's Sequans modem. Further pursue using generic MicroPython. The initial roadblock I ran into was getting the UART talking to the modem. Pursue designing an external watchdog timer circuit that would power the GPy down/up after crashes. One challenge to this approach would be to make it field installable. Maybe the watchdog device plugs into the GPy socket and the GPy plugs into the watchdog device. A GPIO pin would be connected internally to allow triggering the device. To be generally useful to current designs, there would need to be some way to jumper/select which currently unused GPIO pin would be used for the trigger. If anyone out there can think of any better ideas, I'm open to suggestions. Which path is my best chance of success?
  • More lte woes

    9
    0 Votes
    9 Posts
    186 Views
    K
    @peterp The ticks_ms problem test program import machine, network, time, os; start=time.ticks_ms() def _t(): t=(time.ticks_ms()-start)/1000; return '%02d'%t print(os.uname()) print(_t(), 'start') epoch=1625789769; date=time.gmtime(epoch); rtc=machine.RTC(); rtc.init(date) print(_t(), 'lte'); lte=network.LTE() print(_t(), 'attach', end=' '); lte.attach() while 1: print('.', end=' '); time .sleep(1) if lte.isattached(): print(); print(_t(), 'connect'); lte.connect(); break print(_t(), 'rtc') rtc.ntp_sync('time.google.com') while 1: print('.', end=' '); time .sleep(1) if rtc.synced(): print(); break #print(_t(), 'suspend'); lte.pppsuspend() print(_t(), 'deinit'); lte.deinit() print(_t(), 'deepsleep'); machine.deepsleep(9000) and the results (sysname='GPy', nodename='GPy', release='1.20.2.r4', version='v1.11-ffb0e1c on 2021-01-12', machine='GPy with ESP32', pybytes='1.6.1') 00 start 2292128 lte 2292131 attach . . 2292138 connect 2292139 rtc . 2295011 deinit 2295018 deepsleep where the ticks_ms value is changed by rtc.init and rtc.ntp_sync
  • How to handle a LTE Connectivity loss

    40
    0 Votes
    40 Posts
    1k Views
    S
    My minimal setup worked on my breadboard. Today, I've integrated that initially separated structure into my big prototype on my other breadboards. It is really weird. The Pull-up doesn't work always. When I use my minimal example code on my big prototype setup it works as on my minimal breadboard setup. The Pull-up works and the GPy doesn't boot up, so the GPy is powered off while the Arduino is booting. The Pull on the Gate is high enough in that case. When I use my real prototype code, where every sensor gets setup, the pull-up doesn't work anymore though. I can't explain why. I didn't change anything on my big prototype setup and I can't control a passive element like a simple pull-up setup via code. It must be related to the Voltage on my 5V-Pin on the Arduino then I guess? But why is the minimal example code on the same big prototype setup working as expected (the GPy is turned off at the beginning) ... While the Pull-up doesn't work on the big prototype setup, I can power cycle the GPy. When I pull the GPIO HIGH, which is connected to the Gate, I power the GPy off. When I set the GPIO to LOW, the GPy turns on again. I just can't explain why the Pull-Up doesn't work, while power cycling with the GPIO of the Arduino seems to be working? I've connected a 10k Ohm resistor to one of the 5V Pins of the Arduino, which is connected to the gate. I use this site as a reference: https://www.gammon.com.au/motors Would shifting the threshold by the forward voltage of the diode help, so I get consistency into my setup @robert-hh ? Kind regards, SciWax
  • LTE support for Telia and Telenor (Norway)

    lte nb-iot cat-m telia telenor
    18
    0 Votes
    18 Posts
    1k Views
    S
    @Gijs @Yoann-Baud any luck here? I'm in Norway and using the same setup. We've had some discussions before but haven't been able to get around this either and any updates on this case you have here that you could share would be very helpful! Scott
  • FTP doesn't properly work, while code is running

    4
    1
    0 Votes
    4 Posts
    73 Views
    S
    @robert-hh said in FTP doesn't properly work, while code is running: utime I can't believe, that the solution was so easy. :) Thanks for giving me a headache less, rob! It worked.
  • OSError when connecting to LTE

    4
    0 Votes
    4 Posts
    180 Views
    G
    To be honest, I couldn't tell you either why that works, but Im happy for you it does! In the end it should just be the same code.

Pycom on Twitter