• 1 Votes
    6 Posts
    969 Views
    bmarkusB
    @jcaron said in How can I set the bandwidth of the Lopy4 to 7.8 kHz to achieve the RF sensititvity of -148 dBm?: @bmarkus In Europe, one of the sub-bands allows 10% duty cycle. Also, IIRC if you do LBT-AFA (listen before talk, frequency agility), there's no duty-cycle limit (maybe not on all bands, too lazy to check). You are right, and also allowed RF power may vary on subbands. Still bitrate is very low.
  • Improve boot time

    LoPy lopy4 power low power duty cycle boot time
    19
    0 Votes
    19 Posts
    3k Views
    robert-hhR
    @jcaron With version 1.14.0.b1 I get 1.6 seconds.
  • 2.7V power supply

    LoPy lopy4 pysense power supply regulator 2.7
    6
    0 Votes
    6 Posts
    939 Views
    robert-hhR
    @sslupsky AFAIK, the enable pin is not accessible.
  • 0 Votes
    5 Posts
    1k Views
    T
    The argument related issues are related to an issue with using a native class as a base class. See here: https://github.com/micropython/micropython/issues/3323 This doesn't work in Pycom's MicroPython release 1.18 (current stable) but the fix from the above linked issue has been incorporated into the development release 1.20 (currently at rc4). Additionally, the Pycom MicroPython flavor has a different I2C API than the official MicroPython, lacking the I2C methods start(), stop() and write(). There you need to apply the changes outlined in this old thread as well: https://forum.pycom.io/topic/1366/wipy-ssd1306-only-noise/6 Specifically, you'll need to replace the write_data() method with: def write_data(self, buf): self.i2c.writeto(self.addr, bytearray([0x40]) + buf) (I see that you've already discussed the issue with Pycom's MicroPython flavor using framebuf.MVLSB where as the constant is named framebuf.MONO_VLSB in the official MicroPython). The SSD1306 driver in Pycom's MicroPython flavor has never worked and is still using non-existant APIs and constants even in the release-candidate tree: https://github.com/pycom/pycom-micropython-sigfox/blob/release-candidate/drivers/display/ssd1306.py If you get noisy display you might have an SH1106 display. I'm using the below piece of code successfully with random eBay 0.96" and 1.3" I2C OLED displays. It's been a few years since I looked into this but IIRC the SH1106 module's internal memory layout is for 132 pixel strides but the screen only supports 128. So the noise in the form of random black pixels come from the fact that those extra two pixels on the left and on the right side are not accounted for (the display is centered somehow). from ssd1306 import SSD1306 class SH1106_I2C(SSD1306): def __init__(self, width, height, i2c, addr=0x3c, external_vcc=False): self.i2c = i2c self.addr = addr self.temp = bytearray(2) super().__init__(width, height, external_vcc) # Parent does show() but is using the SSD1306 implementation.. self.show() def write_cmd(self, cmd): self.temp[0] = 0x80 # Co=1, D/C#=0 self.temp[1] = cmd self.i2c.writeto(self.addr, self.temp) def write_data(self, buf): self.i2c.writeto(self.addr, bytearray([0x40]) + buf) def poweron(self): pass def show(self): for page in range(8): self.write_cmd(0xb0 | page) self.write_cmd(0x02) # Start addr low column self.write_cmd(0x10) # Start addr high column mv = memoryview(self.buffer) self.write_data(mv[128*page: 128 + 128*page]) from sh1106 import SH1106_I2C i2c = I2C(0, I2C.MASTER, baudrate=400000) d = SH1106_I2C(128, 64, i2c) d.text('ping', 1, 2) d.show()
  • 0 Votes
    4 Posts
    1k Views
    danD
    Hi @Martinho and @robert-hh, Indeed that's missing from the docs, I've updated the page. Thanks for pointing it out!
  • Downlink to Lopy

    LoPy lopy4 otaa downlink lorawan lorawan otaa
    2
    0 Votes
    2 Posts
    579 Views
    bmarkusB
    @harish-kumar Is it a 'Class-A' device? RX window timing can be an issue.
  • Only 1 year Sigfox?

    Comments & Feedback sigfox lopy4
    2
    1
    0 Votes
    2 Posts
    616 Views
    T
    Update: Sigfox confirmed it's 1 year now: https://ask.sigfox.com/questions/5899/lopy-4-1-year-connectivity-or-2.html Still not a bad deal I think, as 1 year's worth is still about half the price of the LoPy4. But it would be good to clarify this on the website.
  • LOPY4 OTA update

    LoPy lopy4
    2
    0 Votes
    2 Posts
    461 Views
    danD
    Hi @abhishek2101, You can find our tutorial for OTA here: https://docs.pycom.io/chapter/tutorials/all/ota.html
  • Many devices from one connection?

    LoPy sigfox lora data network lopy4
    2
    0 Votes
    2 Posts
    517 Views
    danD
    Hi @james-matthews, Maybe a LoRa mesh network? (Note: it's still in development) What type of devices do you have?
  • 0 Votes
    3 Posts
    795 Views
    H
    @robert-hh Thank you so much for your time. I made some changes and now my program works fine.
  • RTC initialisation

    Getting Started rtc lopy4 fipy deep sleep
    4
    0 Votes
    4 Posts
    914 Views
    E
    @tuftec In fact, lorawan callback in the network operator that i have used (objenious and orange) doesn't allow dynamic downlink data setup via callback service. I have to prepare the downlink data and when (even several hours/day later) the device send an uplink message the downlink data is send to the device. So, if you know the periodicity of your uplink frame you can predict the time to send to your device on his next uplink frame and set your operator downlink frame in advance. With Sigfox, when the device send an uplink frame with download request bit (by device choice) set, there 2 choices -default call back method can send back to the device network time and some static data -you have 20 secondes to send back from your device (from your own callback service) some data and time. With NB-IOT , network time availability is not mandatory so it depend of your network provider.
  • Output pin control during deep sleep

    Getting Started lopy4 fipy ulp deepsleep
    1
    0 Votes
    1 Posts
    460 Views
    No one has replied
  • 0 Votes
    4 Posts
    829 Views
    J
    @manuelc1318 as I wrote, you can transmit data in both directions: write to a characteristic to send data from client to server, and either read from a characteristic or use notifications for data from server to client.
  • 0 Votes
    3 Posts
    687 Views
    H
    @jcaron oh thank you. I will do that. And I need a small help from you. In this code, I am trying to start my downlink once in a day. So I am using this code. import time a = time.localtime() hour = a.tm_hour minutes = a.tm_min if hour == 10 and minutes == 40: print('{0}:{1}'.format(hour, minutes)) But it's not working properly. Do I have to change some conditions ?
  • 0 Votes
    6 Posts
    845 Views
    H
    @robert-hh Thank you so much ! I got the output.
  • Ultrasonic Range Finder - HRXL-MaxSonar-WR

    LoPy lopy4 maxsonar ultrasonic
    3
    2
    0 Votes
    3 Posts
    576 Views
    J
    @jcaron My diagram is incorrect sorry, however I tried a new max3232 today and managed to get it to work. Thanks
  • Lopy4 deep sleep problem

    Comments & Feedback lopy4 lora deepsleep
    23
    0 Votes
    23 Posts
    5k Views
    robert-hhR
    @jcaron Of course!
  • 0 Votes
    3 Posts
    926 Views
    H
    @robert-hh Sorry for the late and Thanks for your reply. I have tried with simple change like adding if statement with particular device address but it's not working. Is there any other possible way ?