Skip to content
  • 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. OpenHardware.io
  3. 💬 The Logger Machine - Short and long term serial logging
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

💬 The Logger Machine - Short and long term serial logging

Scheduled Pinned Locked Moved OpenHardware.io
arduinottlloggingserialuartbluetoothhelplog
26 Posts 7 Posters 4.4k Views 5 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.
  • sundberg84S sundberg84

    @Nca78

    • VCC_IO = Not connected (because this can be everything from 1.9 to 5V in MySensors world)

    To me this is what you should connect to your level converter, because this will be your reference level for "high" voltage on the RX pin.

    Would be great but are you sure this works? I tested this on on a breadboard and since the logger works @ 3.3v I could not provide anything lower than 3.3v. That is why I have the 5v input on the high voltage (because this will be atleast 3.3v when lower voltage is applied). A MysSensors node could work @ 1.9v and provide this through this pin.

    Will test some more!

    Nca78N Offline
    Nca78N Offline
    Nca78
    Hardware Contributor
    wrote on last edited by Nca78
    #15

    @sundberg84 yes I didn't look carefully enough at what this bss138 chip is.
    I was about to suggest TXS0108E or TXB0104 but they have the same constraint of having to chose your "high voltage" and "low voltage" sides beforehand.

    The SX150x chips would do the trick but only the SX1509 is available and in addition to not beeing cheap it's also extremely hard to hand solder :)

    [edit]
    Found the SN74LVC8T245 also from TI that doesn't have the requirement. Made for 8 bits but works with any input and output voltage level.

    1 Reply Last reply
    0
    • sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #16

      I updated the 3d box. One of the holes for the switches was a bit off and also it was a little tight for the logger itself.

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      1 Reply Last reply
      0
      • T Offline
        T Offline
        terxw
        wrote on last edited by
        #17

        Hello Sandberg84, I recently bought the logger and have problem setting up baud rate.
        I can connect to BT with my phone just fine, I can get serial output from sensor at specified intervals, but it is all nonprintable characters, alas bad baud rate.
        When I connect logger to pc via serial adapter I get no response to AT commands.
        Can you show me way to try something?

        Thanx

        sundberg84S 1 Reply Last reply
        0
        • T terxw

          Hello Sandberg84, I recently bought the logger and have problem setting up baud rate.
          I can connect to BT with my phone just fine, I can get serial output from sensor at specified intervals, but it is all nonprintable characters, alas bad baud rate.
          When I connect logger to pc via serial adapter I get no response to AT commands.
          Can you show me way to try something?

          Thanx

          sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by sundberg84
          #18

          @terxw - sure! How do you connect when you wants to set up baud rate. (Picture?)
          The module i send have 115200 set as for BT. If you have a node with that baud-rate - does it work? Or what does your node have at the moment for baudrate?

          This is from https://www.openhardware.io/view/532/The-Logger-Machine-Short-and-long-term-serial-logging where i documented the instructions:

          0_1544121098492_5b3fc634-29ac-41f0-b654-5a54531119e9-image.png op

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          1 Reply Last reply
          0
          • T Offline
            T Offline
            terxw
            wrote on last edited by
            #19

            OK, couple of good pointers!

            I found the atmega RX a TX pins, but cannot get any response in the serial console.

            Connectiona are: USB -> USB Serial Converter -> GND, power -> logger & RT/TX -> Tx/RX on atmega on logger.

            If I set BR to 11520, I can see on my BT connected phone what I typed in the arduino serial monitor, e.g. if I type "AT" in Arduino serial console with BR 115200 , I can see clear ascii text "AT" on my phone.

            If i set BR to 9600 or 38400, I see just scrambled characters or nothing at all.

            I tried to put some test serial.println with BR 11520 on new pro mini (3.3V, 8Mhz), when I discovered some interesting problems....
            None of my serial/USB converters worked, I tried to guess BR etc. to no avail.
            I tried to reupload bootloader with usbasp, with set BR, but could not get clear text serial output form my nodes.... After 5 diferent USB to serial adapters i tried to compile code with arduino IDE instead of platformio, voala, now I could send text from promini with BR 115200 through logger to my phone.

            So there are couple problems, probably with my toolchain (platformio) - I remembered that I had problems with some new custom boards (NRF24Duino) and serial output which was garbled...

            But nevertheless, I cannot change BR of logger, because I am using custom bootloaders with 1 MHz internal oscilator and 4800 BR, I need to set it lower.

            What else could I try?

            sundberg84S 1 Reply Last reply
            0
            • T terxw

              OK, couple of good pointers!

              I found the atmega RX a TX pins, but cannot get any response in the serial console.

              Connectiona are: USB -> USB Serial Converter -> GND, power -> logger & RT/TX -> Tx/RX on atmega on logger.

              If I set BR to 11520, I can see on my BT connected phone what I typed in the arduino serial monitor, e.g. if I type "AT" in Arduino serial console with BR 115200 , I can see clear ascii text "AT" on my phone.

              If i set BR to 9600 or 38400, I see just scrambled characters or nothing at all.

              I tried to put some test serial.println with BR 11520 on new pro mini (3.3V, 8Mhz), when I discovered some interesting problems....
              None of my serial/USB converters worked, I tried to guess BR etc. to no avail.
              I tried to reupload bootloader with usbasp, with set BR, but could not get clear text serial output form my nodes.... After 5 diferent USB to serial adapters i tried to compile code with arduino IDE instead of platformio, voala, now I could send text from promini with BR 115200 through logger to my phone.

              So there are couple problems, probably with my toolchain (platformio) - I remembered that I had problems with some new custom boards (NRF24Duino) and serial output which was garbled...

              But nevertheless, I cannot change BR of logger, because I am using custom bootloaders with 1 MHz internal oscilator and 4800 BR, I need to set it lower.

              What else could I try?

              sundberg84S Offline
              sundberg84S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by
              #20

              @terxw - ok.
              4800 should work just fine.
              The command should be AT+BAUD3
              I used this link when i designed and wrote this - it has some more in-depth analysis.
              https://www.instructables.com/id/AT-command-mode-of-HC-05-Bluetooth-module/

              What good to know is that if you are the one who bought the module from me just recently from ebay this is tested and verified working by me so we should get this sorted!!

              Can you post a picture on how it looks (connections) when you try to change baud-rate?

              Controller: Proxmox VM - Home Assistant
              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

              T 1 Reply Last reply
              0
              • sundberg84S sundberg84

                @terxw - ok.
                4800 should work just fine.
                The command should be AT+BAUD3
                I used this link when i designed and wrote this - it has some more in-depth analysis.
                https://www.instructables.com/id/AT-command-mode-of-HC-05-Bluetooth-module/

                What good to know is that if you are the one who bought the module from me just recently from ebay this is tested and verified working by me so we should get this sorted!!

                Can you post a picture on how it looks (connections) when you try to change baud-rate?

                T Offline
                T Offline
                terxw
                wrote on last edited by
                #21

                @sundberg84

                Here are pictures:

                https://imgur.com/a/L4E2eoJ

                sundberg84S 1 Reply Last reply
                1
                • T terxw

                  @sundberg84

                  Here are pictures:

                  https://imgur.com/a/L4E2eoJ

                  sundberg84S Offline
                  sundberg84S Offline
                  sundberg84
                  Hardware Contributor
                  wrote on last edited by sundberg84
                  #22

                  @terxw - sorry, the manual is wrong and unclear here - when you talk to the bluetooth module you should not connect to the programming pins. they are only for programming atmega chip. Must be a copy/paste error when i wrote the manual i think. Looking at the schematics RX goes only from that programming pin to the atmega and not bt module. TX has a input protection diode as well, so you need to swap that one to.

                  0_1544464557167_161c51d7-ea75-45a7-8368-705dafcdac8e-image.png

                  As you see in the image, RX and TX from that programming point is only connected to atmega chip. Try connecting them to ordinary input. In worst case scenario, the diodes are making the serial communication fail at the baud rate you are testing... (should work with 115200 since thats what i set it to) but worst case scenario, solder wires to BT module and test.

                  Also dont power it using BAT (it goes through a dc/dc booster if you do). Try a regulated 3.3v power source and input on 3.3v pin.

                  Also, change the both No line ending to Both NL and CR

                  Edit: I will be home on thursday, traveling at work, but I have a identical module i build the same time as yours I can test on, if you dont want to solder around and mess the module up.

                  Controller: Proxmox VM - Home Assistant
                  MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                  MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                  RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                  1 Reply Last reply
                  1
                  • T Offline
                    T Offline
                    terxw
                    wrote on last edited by
                    #23

                    @sundberg84
                    So I tried all rx/tx combinations, no response to AT commands, I will try with different software and/or computer.

                    1 Reply Last reply
                    0
                    • CrankyCoderC Offline
                      CrankyCoderC Offline
                      CrankyCoder
                      wrote on last edited by
                      #24

                      any plans to add an RTC on this and be able to timestamp the log entries? I have some sensors that only wake up and do readings every 90 minutes. But sometimes they just stop doing it. So time stamps on the logs would be good to see if there is anything happening right around the time it stops reporting.

                      Home Automation Tinkerer
                      www.CrankyCoder.net

                      Controller: HomeAssistant in Kubernetes
                      Gateway: MQTTClientGateway
                      MySensors: 2.3

                      1 Reply Last reply
                      2
                      • T Offline
                        T Offline
                        terxw
                        wrote on last edited by
                        #25

                        All new nodes have set BR 11520 and the logger is working nicely, I finaly have a way to debug basic problems!

                        sundberg84S 1 Reply Last reply
                        0
                        • T terxw

                          All new nodes have set BR 11520 and the logger is working nicely, I finaly have a way to debug basic problems!

                          sundberg84S Offline
                          sundberg84S Offline
                          sundberg84
                          Hardware Contributor
                          wrote on last edited by
                          #26

                          @terxw okey, thanks for reporting back !! Let me know if there is something else. This is a 0.5v so I'm open for improvements.

                          Controller: Proxmox VM - Home Assistant
                          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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


                          14

                          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
                          • OpenHardware.io
                          • Categories
                          • Recent
                          • Tags
                          • Popular