• gpy in deep sleep

    gpy deepsleep
    7
    2 Votes
    7 Posts
    1k Views
    C
    My mistake. It looks like PSM and eDRX are implemented. See here. You guys may well have figured that out already as the update was a little while ago now. That would seem to fix your problem @kjm. I haven't seen anyone with current measurements on it so I would be curious to see what you get.
  • deepsleep & memory

    rtc memory gpy deepsleep flash
    3
    0 Votes
    3 Posts
    689 Views
    rcolisteteR
    From the pycom module documentation : "pycom.nvs_erase_all() Erase the entire NVRAM memory area." AFAIK, there is no way to see all of the contents of nvram on ESP32/Pycom boards.
  • deepsleep pulse counting

    deepsleep gpy nvram amr
    2
    0 Votes
    2 Posts
    412 Views
    P
    Hi Drop an email to sales@pycom.io with the details :)
  • AT&T Pilot Program?

    at&t gpy lte certification carrier certifi
    1
    1 Votes
    1 Posts
    328 Views
    No one has replied
  • gpy file system

    os.rename gpy
    11
    0 Votes
    11 Posts
    1k Views
    robert-hhR
    @kjm upip is meant to install (micro)python packages on a micropython device. So it downloads and extracts micropython packages. You have to tell yourself whether it is useful for you. But at least it is a good example. Paul is an excellent Python specialist and programmer. There is a upip.help() telling how to use it. And upip.tarfile is, as far as I understand it, the tarfile extractor.
  • AT cmd for band or frequency

    gpy lte band lte frequency
    3
    0 Votes
    3 Posts
    501 Views
    K
    @robert-hh said in AT cmd for band or frequency: http://niviuk.free.fr/lte_band.php thnx Rob
  • Modem reset

    lte reset
    1
    2 Votes
    1 Posts
    411 Views
    No one has replied
  • The 4s blue flash blues

    main.py gpy deepsleep
    8
    0 Votes
    8 Posts
    812 Views
    K
    @reidfo No I've got everything in try/except loops so it can't crash. This is always when it wakes from deepsleep, instead of running boot or main .py it jumps into dreaded 4s blue flash mode. Grim!
  • LTE / NB-IOT in the UK

    lte-m
    4
    0 Votes
    4 Posts
    683 Views
    P
    @project2501 Ill see what I can find out.
  • AT Commands

    lte at commands gpy
    4
    2 Votes
    4 Posts
    1k Views
    D
    @arnaudp Check lte.pppsuspend() and lte.pppresume() methods.
  • Is Gpy AT&T PTCRB certified?

    ptcrb gpy at&t
    4
    1 Votes
    4 Posts
    646 Views
    C
    @pechan I used the CAT-M1 example code verbatim and it worked the first time through. https://docs.pycom.io/tutorials/lte/cat-m1.html import socket import ssl import time from network import LTE lte = LTE() # instantiate the LTE object lte.attach() # attach the cellular modem to a base station while not lte.isattached(): time.sleep(0.25) lte.connect() # start a data session and obtain an IP address while not lte.isconnected(): time.sleep(0.25) s = socket.socket() s = ssl.wrap_socket(s) s.connect(socket.getaddrinfo('www.google.com', 443)[0][-1]) s.send(b"GET / HTTP/1.0\r\n\r\n") print(s.recv(4096)) s.close() lte.disconnect() lte.dettach() Make sure you have updated the modem to latest: https://docs.pycom.io/tutorials/lte/firmware.html I had to use a micro SD card to update the modem. I couldn't figure out how to upload the files into the internal flash, but that was probably something I was doing wrong.
  • adc woes

    gpy adc precision adc accuracy
    4
    0 Votes
    4 Posts
    563 Views
    robert-hhR
    @kjm So you are averaging over 1000 values. You can also use a low pass filter, which is a little bit simpler See also the lessons and analysis by Bernd Boser: https://github.com/bboser/IoT49 and especially https://github.com/bboser/IoT49/blob/master/doc/analog_io.md which shows a noise of about 25 LSB. So your averaging of 1024 values (25*25=625) matches that. B.t.w: good ADCs have a noise <= 1 LSB.
  • 0 Votes
    1 Posts
    343 Views
    No one has replied
  • Where can I get the AT commands for the GPy Modem?

    gpy at commands
    3
    1 Votes
    3 Posts
    599 Views
    C
    @paul-thornton There it is. Thanks.
  • GPy or FiPy using LTE in the US

    lte gpy fipy usa
    2
    0 Votes
    2 Posts
    488 Views
    C
    Hi @kevin, From the Southern of Sweden - via Telia's NB-IOT Network - I get this: >>> send_at_cmd_pretty('AT+SQNHPLMN?') +SQNHPLMN: "23820","23820","23820" OK >>> and for you who would like to look it up: http://www.numberportabilitylookup.com/networks?s=
  • 0 Votes
    2 Posts
    430 Views
    E
    @curtis-hendrix I have no spec but I once tried to connect a small LCD display to that power pin. That was an instructive failiure. Even 400 mA is optimistic (may only be reachable at the limit of 5.5 V Gpy supply). You can safely use that 3.3 V pin to supply some I²C chips but nothing that needs power.
  • lte.attach() doesn't work, but modem is attached

    gpy attach nb-iot
    9
    0 Votes
    9 Posts
    2k Views
    P
    @wtrocel As @robert-hh has suggested using the pycom firmware update tool and selecting include development versions + development instead of stable is likely the easiest way to get the new Release candidate.
  • LTE support for 3 BCD digit network codes

    nbiot gpy
    1
    0 Votes
    1 Posts
    359 Views
    No one has replied
  • GPy with Hologram.io SIM

    hologram.io
    100
    0 Votes
    100 Posts
    43k Views
    M
    Hi. I know this may be a little late, but I have some code that enables LTE-CATM1 connection through hologram and to send a message into their socket. I would also recommend not specifying the carrier because Hologram.io takes care of that. Here is my code: Also note that hologram.io working with Python requires that you send a bytearray in ASCII format. At least from my testing, that's the only way I could get it to work. import socket import time import pycom from machine import RTC from network import LTE from network import WLAN HOST = "cloudsocket.hologram.io" PORT = 9999 DEVICE_KEY = "ABCDEFG" #generated on hologram's portal for each SIM card. TOPIC = "TOPIC1" # # Need to use global variables. # # If in each function you delare a new reference, functionality is broken lte = LTE() # Returns a network.LTE object with an active Internet connection. def getLTE(): # If already used, the lte device will have an active connection. # If not, need to set up a new connection. if lte.isconnected(): return lte # Modem does not connect successfully without first being reset. print("Resetting LTE modem ... ", end="") lte.send_at_cmd('AT^RESET') print("OK") time.sleep(1) # While the configuration of the CGDCONT register survives resets, # the other configurations don't. So just set them all up every time. print("Configuring LTE ", end='') lte.send_at_cmd('AT+CGDCONT=1,"IP","hologram"') # Changed this from origninal print(".", end='') lte.send_at_cmd('AT!="RRC::addscanfreq band=4 dl-earfcn=9410"') # changed band from 28 to 4. I dont know what earfcn=9410 is; print(".", end='') lte.send_at_cmd('AT+CFUN=1') print(" OK") # If correctly configured for carrier network, attach() should succeed. if not lte.isattached(): print("Attaching to LTE network ", end='') lte.attach() while(True): if lte.isattached(): print(" OK") #pycom.rgbled(0x00FF00) #time.sleep(.5) #pycom.rgbled(0x000000) break print('.', end='') time.sleep(1) # Once attached, connect() should succeed. if not lte.isconnected(): print("Connecting on LTE network ", end='') lte.connect() while(True): if lte.isconnected(): print(" OK") break print('.', end='') time.sleep(1) # Once connect() succeeds, any call requiring Internet access will # use the active LTE connection. return lte # Clean disconnection of the LTE network is required for future # successful connections without a complete power cycle between. def endLTE(): print("Disonnecting LTE ... ", end='') lte.disconnect() print("OK") time.sleep(1) print("Detaching LTE ... ", end='') lte.dettach() print("OK") # Program starts here. try: lte = getLTE() print(lte) s = socket.socket() print(s) dns_records = socket.getaddrinfo(HOST, PORT) print("got dns_records") print(dns_records) message = "Hello World!" for record in dns_records: try: s.connect(record[-1]) print("connected") data = '{"k": "%s", "d": "%s", "t": "%s"}' % (DEVICE_KEY, message, TOPIC) s.send(bytes(data, 'ascii')) print("sent") result = s.recv(8).decode() print(result) s.close() break except Exception as err1: try: s.close() except: pass print(err1) continue except Exception as err: print(err) try: s.close() except: pass finally: endLTE()
  • Selecting external antenna on gpy

    gpy wifi ext antenna
    1
    0 Votes
    1 Posts
    313 Views
    No one has replied

Pycom on Twitter