Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Switching between networks

    Scheduled Pinned Locked Moved FiPy
    3 Posts 3 Posters 211 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      wojtek92
      last edited by wojtek92

      Hello Everyone,

      I am a beginner user of Pycom devices - I have a FiPy and PySense board. I would like to do some mobile tests using the LoRaWAN network with sending some sensor data to TTN let's say every 5 seconds. Here I have some questions:

      • FiPy module can switch on-air between the 5 networks, how can I switch from LoRa to BLE or WiFi? I mean if the LoRa network becomes unavailable (it will lose connection to a gateway), switch to Wifi and send data, after some time check if the LoRa gateway is reachable again, and if it is switch to the LoRa network.
      • I would like to measure a battery usage when FiPy sends data with minimum and maximum throughput, how can I setup the throughput?

      I appreciate any helpful answer

      J O 2 Replies Last reply Reply Quote 0
      • J Offline
        jcaron @wojtek92
        last edited by

        @wojtek92 you should probably read up a bit about LoRa. Sending packets every 5 seconds is not quite something you do on LoRa (and in many cases, not even something you can do). For the same underlying reasons (power conservation, duty cycle limits...), you usually don’t know if the gateway is indeed reachable, you just send packets and hope for the best.

        Also, comparing long distance technologies such as LTE or LoRa with short-distance ones such as Wi-Fi and BLE is a bit weird. Also some are IP-based and can carry larger packets while other don’t directly support IP and only support shorter packets, so even though you could use all technologies dynamically, that rarely makes sense, IMHO.

        What’s your use case?

        1 Reply Last reply Reply Quote 0
        • O Offline
          oligauc @wojtek92
          last edited by

          @wojtek92 Lora, BLE and wifi can work at the same time on the Pycom products. The best way would be to create threaded classes for each protocol. The Lora is not intended for very high datarates. In the EU, the highest datarate is achieved at a DR5. To know whether the packet was received by the server you need to enable the confirmed flag.

          For battery levels please see here

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom