• This topic is deleted!

    1
    0 Votes
    1 Posts
    88 Views
    No one has replied
  • Can the fipy handle transient spikes of -0.5V on the analog pins?

    analog in
    2
    0 Votes
    2 Posts
    255 Views
    robert-hhR
    @edward-dimmack The data sheet tells: -0.3 - 3.6V as maximum ratings. If teh source impedance is high, it should withstand a little bit more than that. Us a shottky diode (e.g. 1N5711, BAT48) for input protection, which has a lower forward voltage.
  • Storing variables in between deepsleep

    deep sleep flash
    6
    0 Votes
    6 Posts
    1k Views
    C
    @edward-dimmack said in Storing variables in between deepsleep: @elizar Do you mean to a file on an SD card? Because we are not using an SD card in this application. You can use the filesystem of the internal flashl. Your program files are stored there as well. But mind the wear. Depending on your task, the NVRAM shall be the better solution.
  • FipY and Expansion Board 2.0

    fipy expansion board
    1
    0 Votes
    1 Posts
    309 Views
    No one has replied
  • 0 Votes
    3 Posts
    445 Views
    robert-hhR
    @nervencid You can use any name for your scripts. Only boot.py and main.py are executed as part of the boot process. If you want to run your script then, you have to add a statement like: import myscript e.g. to main.py. You should be able to stop your script with Ctr-C from the console, unless you disable that in your code. To isolate the problems, try running your code with a simple terminal like Putty. Note: You can change the name of the file which is run instead of main.py with machine.main(). The only useful place for that command is in boot.py.
  • Add more WiFi networks

    wifi pybyte pybytes configuration fipy
    1
    0 Votes
    1 Posts
    341 Views
    No one has replied
  • AMQP to Azure IoTHub via CAT-M

    azure amqp
    10
    0 Votes
    10 Posts
    3k Views
    M
    @seb Can you please help me. I'm trying exactly the same thing, connecting Pycom to IoT-Hub using MQTTClient. Only thing that is different is that I'm using pregenerated password. All my credentials and password is ok, because I've tested it with MQTT Client Desktop App (MQTT.fx) and everything is working fine. When I call client.connect() I'm receiving following error line: Traceback (most recent call last): File "main.py", line 40, in <module> File "/flash/lib/mqtt.py", line 84, in connect IndexError: bytes index out of range Firmware version is: Pycom MicroPython 1.18.1.r1 [v1.8.6-849-b0520f1] on 2018-08-29; LoPy4 with ESP32 Thank you in advance.
  • FiPy NB-IOT Example Codes for beta network testing

    fipy nb-iot nbiot lte lte global
    10
    0 Votes
    10 Posts
    2k Views
    M
    @paul-thornton said in FiPy NB-IOT Example Codes for beta network testing: @mfa2214 We can support Huawei, but it depends what feature set the network operators enable to how well this will work :) Hi all, I'm trying to attach the "webe aka unifi" as network operators in Malaysia using band 5. unfortunately, modem still cannot attached and fipy also cannot listening the base station (Huawei e-nobe-b). below is the error i got: lte.connect() Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: LTE modem version not read lte.connect() Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: modem not attached Currently using FiPy-1.18.1.r7 as the modem f/w. Still do not know what happend. Hopefully someone could help. Many thanks
  • This topic is deleted!

    1
    4
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Trying to connect to LTE-M1

    lte-m kpn not attaching
    17
    0 Votes
    17 Posts
    4k Views
    E
    Entlich mal. I've got connection. Got finally a new SIM from KPN and it worked immediately . Thanks all for the encouraging words:-) Now I can start my project. Keep you posted.
  • 0 Votes
    6 Posts
    1k Views
    P
    @arneme Yup. Thats Correct.
  • object has no attribute 'pin_deepsleep_wakeup

    fipy pytrack deepsleep wakeup
    2
    0 Votes
    2 Posts
    474 Views
    S
    Found a start of an answer here: https://forum.pycom.io/topic/3624/machine-pin_deepsleep_wakeup-function-is-not-working-in-lopy4-firmware-version-1-19-0-b2 Link to developemtn documentation on github: https://github.com/pycom/pycom-documentation/tree/development_release/firmwareapi/pycom/machine The method is renamed to pin_sleep_wakeup()
  • Issue Resolved: WiFi connection using 192.168.4.1

    wlan 192.168.4.1
    4
    0 Votes
    4 Posts
    798 Views
    D
    @throwaway Re: Issue: WiFi connection using 192.168.4.1 Thanks much. Per suggest AP mode was not O, manual wlan.init(), did the trick, and its working: >>> import pycom >>> from network import WLAN >>> wlan=WLAN() >>> wlan.mode() 2 >>> wlan.init() >>> wlan.mode() 1 >>> wlan.ssid() 'lopy-wlan-4080' >>> wlan.auth() (3, 'www.pycom.io') >>> Thanks much!!
  • PAC changed after firmware update

    pac sigfox firmware update
    3
    0 Votes
    3 Posts
    702 Views
    C
    It just happened to me too :-( Yesterday it worked, and today it doesn't.
  • 0 Votes
    4 Posts
    726 Views
    M
    Hello @iwahdan, I put the LoRa Init after the LTE connection and it works now ! Thank you. Best Regards, Malo
  • 0 Votes
    1 Posts
    203 Views
    No one has replied
  • Cant start after flash

    firmware update
    2
    0 Votes
    2 Posts
    374 Views
    M
    Ok solved using 5v as vcc nor 3.3v for the boot
  • FiPy/Pytrack losing its firmware each day

    fipy pytrack
    3
    0 Votes
    3 Posts
    470 Views
    D
    Hey Thanks for the reply. 1 - executing dfu-util-static.exe -D pytrack.dfu solves my problem each time without doing anything else before hand 2 - I only checked this in Device Manager, but nothing at all changed in any window, I'll check through command line or any other method you recommend when I get back to work on Monday. 3 - This is actually an assumption based on the fact that executing dfu-util-static.exe -D pytrack.dfu fixes the problem. I'm not sure how I could check this, maybe I'll try a different FiPy on top of the Pytrack although I don't see how that would change anything, I'll try whatever you think can verify this. I'm planning on putting out 20 + units for static tests in the coming weeks so I'll get a better idea of whats happening but it seems to only effect this particular board so I haven't been too worried.
  • Fipy issues with IF statements

    fipy coding
    7
    0 Votes
    7 Posts
    740 Views
    D
    @dnear1 said in Fipy issues with IF statements: ') Cleaned up and comments added import os import math from machine import UART uart = UART(1, 9600) # init with given baudrate uart.init(9600, bits=8, parity=None, stop=1) # init with given parameters #while True: # data = uart.readall() # if data is not None: # print(data) while 1: data = uart.readall()# get everything from the serial buffer if data is not None:#make sure it's not an empty buffer bytestream=data.split(b'BM')[1][0:31]# HPMA sends 32 byte packets that start with \x42\x4D ('BM') if len(bytestream)==30:#check that we actually got 30 bytes (excluding the data we split out) if bytestream[0:2]==b'\x00\x1c':#HPMA packet is always 28 data bytes(excluding start header and checksum) checksum=143#since split command removed the \x42\x4D, add them back to get correct checksum validated=0 for i in range(0,28): checksum+=bytestream[i]#cycle thru the data values and add them up validated=int(bytestream[28])*256+int(bytestream[29])#read checksum bytes from packet and make them a 2-byte integer if checksum==validated:# both values should match, else we have a corrupt packet pm25=int(bytestream[4])*256+int(bytestream[5])#these two bytes represent the particulate detected that's 2.5um large pm10=int(bytestream[6])*256+int(bytestream[7])#these two bytes represent the particulate detected that's 10um large print('pm2.5 = ',pm25) print('pm10 = ',pm10) else: print('checksum failed') else: print('invalid packet length') else: print('incomplete packet')
  • 0 Votes
    7 Posts
    911 Views
    R
    @robert-hh Thanks for your reply, you have true. I searched components during the starting. And I comment this lines codes : #wlan = WLAN() #wlan.deinit() #bt = Bluetooth() #bt.deinit() #serveur_ftp = Server() #serveur_ftp.deinit() I don't test with each line only, but now it's working. I have fix coordinate when the Fipy powered by Lipo.

Pycom on Twitter