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. Development
  3. Secure gateway with sms receiver: stability?

Secure gateway with sms receiver: stability?

Scheduled Pinned Locked Moved Development
17 Posts 5 Posters 2.5k Views 4 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.
  • alowhumA alowhum

    Thanks for the insight.

    @mfalkvidd: currently the power for all of this stuff is coming from the 5v pin on a nano. If the 800L takes 2000ma I'm amazed the nano still works :-D

    I think the version I have has an internal condensator to boost its power.

    @gohan: I have concidered using more powerful hardware like the STM32, but I try to use chips that are "just good enough".

    gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #7

    @alowhum the 2A are most likely to be peak current and since they are coming directly from the USB port, the mcu is bypassed so you should be fine.

    mfalkviddM 1 Reply Last reply
    0
    • gohanG gohan

      @alowhum the 2A are most likely to be peak current and since they are coming directly from the USB port, the mcu is bypassed so you should be fine.

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #8

      @gohan I don't think so. Most usb chips can provide a maximum of 500mA.

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #9

        The 5v rail should be on its own... I have to check on my nano

        mfalkviddM 1 Reply Last reply
        0
        • gohanG gohan

          The 5v rail should be on its own... I have to check on my nano

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #10

          @gohan unless the usb chip negotiates more than 500mA with the host computer, it is not allowed to drain more than 500mA. It's in the usb spec. This avoids burning your motherboard in case it is not built to deliver more. Without this negotiation protocol, expensive repairs would have to be made when newer devices are connected to older computers.

          1 Reply Last reply
          0
          • gohanG Offline
            gohanG Offline
            gohan
            Mod
            wrote on last edited by
            #11

            On old computers the USB chip in the motherboard will just shut down if more than 0.5A are drawn, on modern ones there are charging USB ports that can supply 1 or 2A and others that just supply the 0.5A even if you connect a power bank that can draw 2A but will just slowly charge at half amp

            zboblamontZ 1 Reply Last reply
            0
            • gohanG gohan

              On old computers the USB chip in the motherboard will just shut down if more than 0.5A are drawn, on modern ones there are charging USB ports that can supply 1 or 2A and others that just supply the 0.5A even if you connect a power bank that can draw 2A but will just slowly charge at half amp

              zboblamontZ Offline
              zboblamontZ Offline
              zboblamont
              wrote on last edited by
              #12

              @gohan I suspect @mfalkvidd is correct as I understand it. Certainly there are USB protocols and specific devices which permit negotiation of different constraints including voltage, but this is highly unlikely in this instance....

              mfalkviddM 1 Reply Last reply
              0
              • zboblamontZ zboblamont

                @gohan I suspect @mfalkvidd is correct as I understand it. Certainly there are USB protocols and specific devices which permit negotiation of different constraints including voltage, but this is highly unlikely in this instance....

                mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by
                #13

                @zboblamont actually, it seems we are both correct. According to Maxim Integrated (which should be a reputable source) :

                In USB 2.0, it is not strictly legal to draw power without enumerating, although much of present-day hardware does just that, and in violation of the spec.

                gohanG 1 Reply Last reply
                1
                • mfalkviddM mfalkvidd

                  @zboblamont actually, it seems we are both correct. According to Maxim Integrated (which should be a reputable source) :

                  In USB 2.0, it is not strictly legal to draw power without enumerating, although much of present-day hardware does just that, and in violation of the spec.

                  gohanG Offline
                  gohanG Offline
                  gohan
                  Mod
                  wrote on last edited by
                  #14

                  @mfalkvidd open energy for all USB devices :grin:
                  I haven't looked at any specs, I just reported what I have seen in 18 years working with computers :wink:

                  AnticimexA 1 Reply Last reply
                  0
                  • gohanG gohan

                    @mfalkvidd open energy for all USB devices :grin:
                    I haven't looked at any specs, I just reported what I have seen in 18 years working with computers :wink:

                    AnticimexA Offline
                    AnticimexA Offline
                    Anticimex
                    Contest Winner
                    wrote on last edited by
                    #15

                    @gohan the USB spec require proper device descriptors and enumeration to permit more than 100mA current draw. To go above 500mA you also need to indicate charging capabilities and have termination resistors with certain values. But this all of course require the host to enforce this, which some chips don't. So it might be possible to violate,which is why older pc:s might so this (in some cases at the expense of the motherboard).
                    But for safety reasons anyone developing USB drivers should make sure to follow the spec properly, since hosts cannot be "trusted" to just cap the current if you draw too much.
                    I have developed such drivers when I was working for Sony Mobile. Was some time ago now, but the spec have probably not changed significantly in recent years in that regard.

                    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                    1 Reply Last reply
                    0
                    • mfalkviddM Offline
                      mfalkviddM Offline
                      mfalkvidd
                      Mod
                      wrote on last edited by mfalkvidd
                      #16

                      To get back on topic, the schottky diode between VUSB and the Nano 5V rail is a MBR0520 which has a maximum average current of 0.5A but can handle a non-repetitive peak surge current of 5.5A.

                      The FT232R usb chip is not capable of negotiating more than 500mA, so drawing more than 500mA will be in violation of the usb spec.

                      So if you have an original Nano, or a clone with equal or better specs (not likely), it might be able to handle the 800L. But I would not bet on it. All gsm modems I have tried have been very flaky with less than 2A supply.

                      1 Reply Last reply
                      0
                      • alowhumA Offline
                        alowhumA Offline
                        alowhum
                        Plugin Developer
                        wrote on last edited by alowhum
                        #17

                        So I created a gateway with the 800L.. and as predicted it used too much power. I've now put it on a separate node, and seems to work fine.

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


                        46

                        Online

                        11.7k

                        Users

                        11.2k

                        Topics

                        113.1k

                        Posts


                        Copyright 2025 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