• Maximun Voltage Input Pin 13-18 (ADC1 input)

    5
    0 Votes
    5 Posts
    468 Views
    F
    @robert-hh Thanks !
  • SMS Messages

    sms
    11
    0 Votes
    11 Posts
    2k Views
    K
    Finally! import time, network lte=network.LTE() def _getlte(): if not lte.isattached(): print('lte attaching '); lte.attach() while 1: if lte.isattached(): print(' OK'); break print('. ', end=''); time.sleep(1) _getlte() print('configuring for sms', end=' '); ans=lte.send_at_cmd('AT+CMGF=1').split('\r\n'); print(ans, end=' ') ans=lte.send_at_cmd('AT+CPMS="SM", "SM", "SM"').split('\r\n'); print(ans); print() print('receiving an sms', end=' '); ans=lte.send_at_cmd('AT+CMGL="all"').split('\r\n'); print(ans); print() print('sending an sms', end=' '); ans=lte.send_at_cmd('AT+SQNSMSSEND="61419123456", "This is the SMS content"').split('\r\n'); print(ans) gives configuring for sms ['', 'OK', ''] ['', '+CPMS: 6,30,6,30,6,30', '', 'OK', ''] receiving an sms ['', '+CMGL: 1,"REC READ","+61419123456",,"19/07/07,16:29:43+40"', 'C', 'Text to gpy test', 'OK', ''] sending an sms ['', '+SQNSMSSEND: ID,14', '', 'OK', ''] hope this saves someone some trial & error time.
  • Software reliability

    gpy network lte
    4
    0 Votes
    4 Posts
    355 Views
    K
    I think I might have a flash memory problem, something that has haunted me with GPYs from the getgo. If I upload then remove then upload boot.py & main.py several times I seem to get a more stable system. It's like the first write of new software is not enough.
  • Uploading to a remote FTP server (GPy + LTE)

    gpy lte ftp micropython
    1
    0 Votes
    1 Posts
    248 Views
    No one has replied
  • Unable to Connect LTE

    20
    0 Votes
    20 Posts
    2k Views
    P
    @robert-hh It still doesn't seem to work for me even after setting the DNS servers. Aside from this method is there another way I can verify my connection?
  • FTP connection to Gpy and AWS IoT platform connection

    7
    0 Votes
    7 Posts
    1k Views
    T
    @robert-hh Sure thanks! I made it.
  • lte attachment

    3
    0 Votes
    3 Posts
    323 Views
    K
    I think you're correct, seeing a register rather than the actual modem state. What complicates this issue further is that reading the register also seems to clear it. So that print('checking LTE') c='connected' if lte.isconnected() else 'not connected'; print('modem is', c) a='attached' if lte.isattached() else 'not attached'; print('modem is', a) a='attached' if lte.isattached() else 'not attached'; print('modem is', a) produces checking LTE modem is connected modem is attached modem is not attached
  • 18s wakeup time from deepsleep

    gpy deepsleep
    2
    0 Votes
    2 Posts
    256 Views
    robert-hhR
    @kjm The Pycom devices need between 1-2 seconds to start up. There is some analysis of that in the forum, based on the supply current analysis. LTE devices are slower than e.g. the WiPy. I do not know what's in your main.py script. But that one may take some time. LTE.attach() from power on for instance takes at my place 15 seconds and more. P.S.: Your formula above looks a little bit strange, because in the statement: sleep=600-diff you mix physical units. The unit of 600 is implicitly s (seconds), the unit of diff is ms (milliseconds).
  • Ping command

    17
    0 Votes
    17 Posts
    2k Views
    F
    @robert-hh Thanks !
  • rtc.ntp_sync

    rtc gpy
    5
    0 Votes
    5 Posts
    508 Views
    K
    @jcaron No the rtc.ntp_sync fails to connect to time.google.com a lot on wifi & the default 1970 timestamp is what the rtc defaults to when it's not synced. I have to resync the rtc after each wakeup on the gpy because it doesn't keep time during deepsleep.
  • using lib files

    lib folder gpy atom
    2
    0 Votes
    2 Posts
    275 Views
    robert-hhR
    @kjm Since main.py is executed on the target, it is accessing the files on the target. The GPY has no acces to the PC file system. The only thing that you can get is synchronizing the lib files form you Atom/PC library to GPY. I do not work with the pymakr plug-ins, so I cannot give you details, but there were threads of synchronizing a project directory with the target module.
  • GPy still dies even with WDT enabled

    7
    0 Votes
    7 Posts
    584 Views
    K
    Which watchdog are you using? The pycom.wdt_on_boot(True); pycom.wdt_on_boot_timeout(30000) is normally setup before you run your code & it's pretty useless. It will only reboot an idle gpy, won't wake it from deepsleep, won't cover boot.py or main.py latchups, heartbeat fails or pycoms unique zombie 4s blue flash which looks like a heartbeat but isn't. The wdt=machine.WDT(timeout=30000), on the other hand, I've found to be more useful.
  • Need help fixing bricked GPy

    5
    0 Votes
    5 Posts
    351 Views
    P
    @robert-hh Thanks so much for the help!
  • hardreset

    gpy hard reset machine.reset
    1
    0 Votes
    1 Posts
    220 Views
    No one has replied
  • Update Expansion Board firmware using Windows?

    3
    0 Votes
    3 Posts
    420 Views
    J
    This worked for me on Win10: Video https://www.youtube.com/watch?v=FkycTZvj-ss Accompanying blog post https://core-electronics.com.au/tutorials/pycom-pysense-pytrack-firmware-update.html
  • Modem only registers via VSCode

    3
    0 Votes
    3 Posts
    279 Views
    I
    System details: GPy with firmware version 1.18.2.r7 Your modem is in application mode. Here is the current version: UE5.1.0.0f LR5.1.1.0-41065
  • 0 Votes
    1 Posts
    196 Views
    No one has replied
  • sequans RF impedance

    1
    0 Votes
    1 Posts
    144 Views
    No one has replied
  • Bluetooth communication between Gpy & ESP

    3
    0 Votes
    3 Posts
    320 Views
    P
    Yes, everything is battery powered. I will have to synchronize the wakeup cycles. I guess there won't be much of a time difference after 10 minutes. It will probably be necessary to set and synchronize the time every now and then. Would it make sense for the ESPs to advertise the availability of data and provide the data as characteristic? The Gpy could then advertise 'data read' and send the ESPs back to sleep. Similar for setting the time on the ESPs. The Gpy advertises its availability and provides the current time as characteristic.
  • Gpy + LTE Nb IoT +MQTT?

    4
    2
    0 Votes
    4 Posts
    696 Views
    M
    @SiMoS-IoT Hmm ok Error 128 is gone now But instead I'm getting OSError: -1 Did you manage to solve the problem? If so, could you maybe upload the code that you used?

Pycom on Twitter