Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. sending an image without wifi / envoi d'une image hors wifi

sending an image without wifi / envoi d'une image hors wifi

Scheduled Pinned Locked Moved Hardware
10 Posts 6 Posters 76 Views 6 Watching
  • 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.
  • D Offline
    D Offline
    dimi59
    wrote on last edited by
    #1

    Hello,
    I have a plan to take a photo with a motion detector at the bottom of my garden and have this image sent to my home automation assistant.
    I do not wish to send the image by wifi because I will not be under wifi coverage.
    I have no problem on the home automation part I can add GW.
    My main concern is how to send the image (about 50m) I am not in a hurry to receive it an offset of a few minutes is enough for me.
    Of course I would like this system to be as energy efficient as possible because it will be powered by a battery.

    Do you have any idea how to transmit my image?
    I thought of an ESP32-CAM for taking photos but it only does Wifi and suddenly I can not use it.

    Cordially.

    Bonjour,
    j'ai un projet de prendre une photo avec un détecteur de mouvement au fond de mon jardin et que cette image soit envoyé sur mon assistant domotique.
    je ne souhaite pas envoyer l'image par wifi car je ne serai pas sous couverture wifi.
    Je n'ai pas de problème sur la partie domotique je peux ajouter des GW.
    Mon principal souci est comment envoyer l'image (environ 50m) je ne suis pas pressé de la recevoir un décalage de quelques minutes me suffit.
    Bien sur j'aimerai que ce système soit le moins énergivore possible car il sera alimenté par une batterie.

    Avez vous une idée de comment transmettre mon image ?
    je pensai a un ESP32-CAM pour la prise de photo mais celui ci ne fait que Wifi et du coup je ne peux pas m'en servir.

    Cordialement.

    1 Reply Last reply
    0
    • Puneit ThukralP Offline
      Puneit ThukralP Offline
      Puneit Thukral
      wrote on last edited by
      #2

      Very interesting requirement. In the world of amateur radio, this is possible using SSTV (Slow Scan TV ) on frequency bands like VHF or UHF. But then this is not encrypted and anyone with a receiver and hardware can receive and decode these signals.

      https://en.wikipedia.org/wiki/Slow-scan_television

      Now, if it can be done with NRF24l01 or with RFM69, I do not know. Back in the day, people were sending multimedia over Bluetooth so maybe that works for you.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dimi59
        wrote on last edited by
        #3

        ok, thanks

        I'm going to watch this but I would also like to make a gateway with the signal to connect it to my wifi.

        1 Reply Last reply
        1
        • G Offline
          G Offline
          Guillermo Schimmel
          wrote on last edited by
          #4

          Do you have the image already in some standard form? Like png or jpg? Or do you have the raw data?

          In any case you can split the data, send it and reassemble. Shouldn't be difficult.

          rejoe2R 1 Reply Last reply
          0
          • G Guillermo Schimmel

            Do you have the image already in some standard form? Like png or jpg? Or do you have the raw data?

            In any case you can split the data, send it and reassemble. Shouldn't be difficult.

            rejoe2R Offline
            rejoe2R Offline
            rejoe2
            wrote on last edited by
            #5

            @Guillermo-Schimmel It indeed should not be to difficult, but still there are some questions to be addressed:

            • Is there any common standard (e.g. mark start and end of transmissions with keywords like "START" or "END") in stream messages (other than OTA)?
            • How about multi stream options (different ChildIDs).

            Afaik the ony sample transfer code ist this one. Using that as a base, I recently built a (not yet tested) version that most likely will be part of the FHEM integration, so I'd really appreciate some common approach to that topic to not propose a somehow "strange" implementation.
            But no answer on that question until now.

            Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

            G 1 Reply Last reply
            0
            • rejoe2R rejoe2

              @Guillermo-Schimmel It indeed should not be to difficult, but still there are some questions to be addressed:

              • Is there any common standard (e.g. mark start and end of transmissions with keywords like "START" or "END") in stream messages (other than OTA)?
              • How about multi stream options (different ChildIDs).

              Afaik the ony sample transfer code ist this one. Using that as a base, I recently built a (not yet tested) version that most likely will be part of the FHEM integration, so I'd really appreciate some common approach to that topic to not propose a somehow "strange" implementation.
              But no answer on that question until now.

              G Offline
              G Offline
              Guillermo Schimmel
              wrote on last edited by
              #6

              @rejoe2 said in sending an image without wifi / envoi d'une image hors wifi:

              @Guillermo-Schimmel It indeed should not be to difficult, but still there are some questions to be addressed:

              • Is there any common standard (e.g. mark start and end of transmissions with keywords like "START" or "END") in stream messages (other than OTA)?

              Not that I know of. I'm afraid you are on uncharted territory now.

              • How about multi stream options (different ChildIDs).

              Afaik the ony sample transfer code ist this one. Using that as a base, I recently built a (not yet tested) version that most likely will be part of the FHEM integration, so I'd really appreciate some common approach to that topic to not propose a somehow "strange" implementation.

              This is a nice implementation.

              If it were me, I would try to seek compatibility with MQTT, I mean send the images in some form that they could be decoded by any subscriber to my broker.

              But regarding header, start/stop and child id I'm afraid you are going to make your own.

              Thanks a lot for this effort, I think it would be useful for a lot of us.

              But no answer on that question until now.

              1 Reply Last reply
              0
              • BearWithBeardB Offline
                BearWithBeardB Offline
                BearWithBeard
                wrote on last edited by BearWithBeard
                #7

                I don't know if I would want to stress my MySensors network with sending large amounts of data. Don't you want to limit the throughput of the data-sending node to not flood the network, so that the gateway and possibly any repeater on the way can still handle messages from and to other nodes?

                I took some measurements a while back and found out that a send() function in my NRF24 network takes about 80ms to complete on average.

                To transmit a 5 megapixel image with moderate JPEG compression, we might have to transmit about 400 kb of data, which has to be split into at least 16k messages due to the maximum payload of 25 bytes. This would take 53 minutes at 5, or 33 minutes at 8 messages per second. A low quality, low resolution picture with only 50 kb would still take 4 to 7 minutes.

                You may also have to verify that every single message has been correctly received by the gateway with an echo.

                On a different note: 50 meter of range doesn't sound too crazy for WiFI. If we sit in the far edge of our garden, which is about 25 m away from the nearest access point located in the center of our basement, our phones receive a good signal. And phones aren't known to have awfully good WiFi antennas.

                I see that the ESP32-CAM has an IPEX connector. Have you tried to attach an external antenna to it? Don't forget to move the 0 Ohm link / resistor from the PCB trace antenna to the IPEX connector if you do so. Maybe try with a good quality, high gain (directional) antenna first, before you look for alternative methods, because I think that the high data rate WiFi provides is better suited for this task than MySensors. You would receive the image within seconds after taking it and the device can go back into sleep mode. I think you could easily get several months worth of battery life out of the ESP32 sending a bunch of images per day if you manage to get the deep sleep current low enough.

                I have no idea how good this one is, but it may do the job:
                https://www.banggood.com/Wemos-10dB-Directional-Antenna-For-TTGO-ESP32-ESP07-ESP-WROVER-p-1332910.html

                1 Reply Last reply
                0
                • rejoe2R Offline
                  rejoe2R Offline
                  rejoe2
                  wrote on last edited by
                  #8

                  @BearWithBeard: Wrt. to nRF I'm absolutely with you. But nRF isn't the only transport layer available, e.g. I'm more or less exculisvely using RS485. In such a setup, also no repeater is needed for (theoretical) distances up to 1.200m.
                  So beside the fact, this isn't really needed in alsmost any case, I'd really appreciate having a working common approach to the problem.
                  Additionally: that might include allowing much larger chunks of data sent on each transmission on suitable transport layers at RS485, CAN (got stuck, see here) or (maybe) PJON to get a better overhead/payload ratio.

                  Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                  rvendrameR 1 Reply Last reply
                  0
                  • rejoe2R rejoe2

                    @BearWithBeard: Wrt. to nRF I'm absolutely with you. But nRF isn't the only transport layer available, e.g. I'm more or less exculisvely using RS485. In such a setup, also no repeater is needed for (theoretical) distances up to 1.200m.
                    So beside the fact, this isn't really needed in alsmost any case, I'd really appreciate having a working common approach to the problem.
                    Additionally: that might include allowing much larger chunks of data sent on each transmission on suitable transport layers at RS485, CAN (got stuck, see here) or (maybe) PJON to get a better overhead/payload ratio.

                    rvendrameR Offline
                    rvendrameR Offline
                    rvendrame
                    Hero Member
                    wrote on last edited by
                    #9

                    @rejoe2 if you have to run a wire to the place where the camera will be installed, you could use CAT-6 regular ethernet cable. That would carry TCP/IP signal and could also carry power (via POE). And you could use any ordinary IP-camera...

                    Home Assistant / Vera Plus UI7
                    ESP8266 GW + mySensors 2.3.2
                    Alexa / Google Home

                    rejoe2R 1 Reply Last reply
                    0
                    • rvendrameR rvendrame

                      @rejoe2 if you have to run a wire to the place where the camera will be installed, you could use CAT-6 regular ethernet cable. That would carry TCP/IP signal and could also carry power (via POE). And you could use any ordinary IP-camera...

                      rejoe2R Offline
                      rejoe2R Offline
                      rejoe2
                      wrote on last edited by
                      #10

                      @rvendrame Apart from the distance question I'm completely with you. Nevertheless I'll try to get that working :smile: It's already coded, so why not test it out? If it's not working or not used by anyone: no problem. I just wanted to avoid setting some kind of standard that might be somehow wrong.

                      Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      10

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


                      Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular