Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Ethernet Gateway: How to turn Off Debug?

    11
    0 Votes
    11 Posts
    5k Views
    siodS
    Ok, so I edited MyConfig.h but now I get this message from Arduino IDE: Sketch uses 31,890 bytes (103%) of program storage space. Maximum is 30,720 bytes. Global variables use 1,564 bytes (76%) of dynamic memory, leaving 484 bytes for local variables. Maximum is 2,048 bytes. So it still doesn´t fit. Any idea how to save some storage space?
  • st=fail on reboot

    2
    0 Votes
    2 Posts
    1k Views
    S
    Was the node awake and listening? st=fail means transmission to that node failed (no "ok" back). If it's battery powered, it's probably sleeping with radio off. One trick seen in another thread; after the node has sent data to the gateway, listen for like 200ms for any incoming packets. In the controller; keep the reboot packet on hold until you hear from the node - then quickly send it.
  • 0 Votes
    7 Posts
    3k Views
    SparkmanS
    @Gambituk I believe you can force the parent ID like this: "gw.begin(NULL,22,false,0);". The last number is the parent ID. Looks like I misread the original issue as in my mind I saw 255, not 25 :blush: Cheers Al
  • Difficulties with openhab

    6
    0 Votes
    6 Posts
    5k Views
    E
    @kimnguu204 have you managed to control your relays and also to get their status?
  • Ardunio n00b needs some help!

    29
    0 Votes
    29 Posts
    9k Views
    E
    I've managed and now I have both (gateway and node) up and running. When I start the bat or sh openhab files the server receive info from my dht11 which is connected to the node. It also receive info from the openhab buttons but I cannot see the dht11 on the local host. I'm following TimO example (http://forum.mysensors.org/topic/655/serial-gateway-connection-to-openhab)! Can anybody explain where is the "sketch"? Thanks !
  • pulsemeter reset itself

    3
    0 Votes
    3 Posts
    1k Views
    SweebeeS
    Well i could save it every 10th pulse and check if its higher than the 10 pulses before that? if not, current pulse is the pulse that was saved 10 pulses before?
  • Not working code. Where is the error? (NFC gate opener)

    nfc arduino ver
    9
    0 Votes
    9 Posts
    4k Views
    T
    hello all , @mmuukkii your code really looks fantastic , but you said that bug , had you finished? I am not able to fix it. thx
  • Serial Port for Node

    2
    0 Votes
    2 Posts
    1k Views
    BobCB
    @BobC OK no problem. A new idea. As I only need to Tx to the player I'll just do a bit of bit banging to a pin. That should work just fine. The idea behind the project is to add a door bell to my system which has selectable MP3 files to play when the 'button' is pressed. Really quite a fun thing to have a personalised message to welcome visitors to special events rather than just a DingDong.
  • Sensor works only connected through FTDI... Please help

    6
    0 Votes
    6 Posts
    2k Views
    Moshe LivneM
    @Andreas-Maurer In retrospect it is very obvious....
  • 0 Votes
    9 Posts
    4k Views
    D
    @Moshe-Livne said: @drock1985 if you got it from the link on the store (A+A+A+ or some other funny name) they actually send very quickly. I got mine within a week. But mail from China moves in mysterious ways.... Remember: Patience comes for those who wait! Lol, that's what people always tell me. But how does one with no patience first wait to learn the value of patience ;) And thanks for the hope at the end of the tunnel, I did go through the links here on the site, crossing fingers :)
  • ST=Fail = Add higher cap?

    11
    0 Votes
    11 Posts
    4k Views
    sundberg84S
    @hek @Sparkman Thank you for input. I came home, change back to original radio and attached usb/serial debug with exact the same setup as last night - and everything worked! A bit frustrating but I dont know what happened. I cant blame the hot day because it was in the celler with good temp when it quit... Well, ill let it run and see what happens...
  • Doorbell hack

    13
    0 Votes
    13 Posts
    5k Views
    M
    @BulldogLowell said: and you cn try this: /* this is set up for a 4 pin recv unit GND DATA DATA VCC plug GND into D2, DATA into D3 and D4, and VCC into D5 */ #include <MySensor.h> #include <SPI.h> #include <Bounce2.h> #include <RCSwitch.h> RCSwitch mySwitch = RCSwitch(); #define CHILD_ID 3 #define VCC_PIN 5 // source 5V up to 40mA from this pin #define GND_PIN 2 // sink up to 40mA on this pin #define DATA_PIN 3 // external int 1 on Uno MySensor gw; const int bell = -251; // This is the value that my 433mhz doorbell sends out when button is pushed boolean tripped = false; unsigned long timerStart; // Change to V_LIGHT if you use S_LIGHT in presentation below MyMessage msg(CHILD_ID, V_TRIPPED); void setup() { gw.begin(); // Register binary input sensor to gw (they will be created as child devices) // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. // If S_LIGHT is used, remember to update variable type you send in. See "msg" above. gw.present(CHILD_ID, S_DOOR); // 433mhz Part pinMode(DATA_PIN, INPUT); // just leave D4 tristated pinMode(GND_PIN, OUTPUT); digitalWrite(GND_PIN, LOW); pinMode(VCC_PIN, OUTPUT); digitalWrite(VCC_PIN, HIGH); mySwitch.enableReceive(1); // Receiver on interrupt 1 => that is pin D3 } void loop() { if (mySwitch.available()) { tripped = (mySwitch.getReceivedValue() == bell); if (tripped) { gw.send(msg.set(true)); timerStart = millis(); Serial.println(F("Ding Dong!!")); } mySwitch.resetAvailable(); //<<<<<<<<<< I think you want this here... I looked at the library on GitHub } if (tripped && millis() - timerStart > 5000UL) { gw.send(msg.set(false)); Serial.println(F("no activity")); tripped = false; } } Hmm, still nothing. It seems to be the 433mhz reciver part that is not working.
  • Distance sensor messure strange values

    17
    0 Votes
    17 Posts
    8k Views
    C
    Hi there, it's me again. I tried some things which read in the arduino froum (http://forum.arduino.cc/index.php?topic=153700.0) without any good result. I also get a new sensor and there is still no change of it's behaviour. I read in the forum that it could be a sensor that uses RX/TX to send its information. Does any one know something about that?
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    51 Views
    No one has replied
  • Trouble combining sketches for temp and motion control

    24
    0 Votes
    24 Posts
    10k Views
    D
    @Sparkman yes it's the same sketch hek uploaded word for word. Powering using a phone charger 5v 1amp. Im putting it down to I might have a faulty pin 6 or the sketch doesn't play well with Vera and the plugin. Does anyone have another sketch?
  • gw.sleep issues

    9
    0 Votes
    9 Posts
    4k Views
    G
    @barduino Yeah the Temp bounces around since I removed the sleep, it is far less variable with the sleep. I am going to try with the gw.wait, i think this is the one that still processes while it waits. If not, I will try millis.
  • Problems with powermeter pulse sensor

    2
    0 Votes
    2 Posts
    1k Views
    F
    hmm think i solved the problem. I tried with an arduino uno instead and now the sketch works fine. Very strange :(
  • Programming serial gateway using a Mac..

    10
    0 Votes
    10 Posts
    3k Views
    A
    It finally worked, Thank you guys!!
  • How to receive data on openhab using UDP ? (solved)

    2
    1 Votes
    2 Posts
    5k Views
    Jasper van ZuijlenJ
    I had the same issue and found this post quite fast but although it says "(solved)" I found no solution. I am leaving my reply here for future reference. What I did to fix the "It will be discarded" message: [openhab.cfg] This sets up the receiving end of the binding i.e. the server that binds the 5005 port. udp:port=5005 [default.items] This sets up the openhab binding to the string. Notice the asterisk after the IP address; because the client will connect to the server it will get assigned a random free port. The asterisk will catch all ports a client will get solving the "No channel is active or defined issue". String String_FF_Bath_Test "Test String[%s]" {udp="<[127.0.0.1:\*:'REGEX((.\*))']"} [python] Just some test code to easily send a UDP message to openhab. import socket UDP_IP = "127.0.0.1" UDP_PORT = 5005 MESSAGE = "Hello world!" print "UDP target IP:", UDP_IP print "UDP target port:", UDP_PORT print "message:", MESSAGE sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
  • Working gateway ?

    13
    0 Votes
    13 Posts
    4k Views
    F
    ok for my next xenebender batch I will buy NRF together. And now I confirm the problem with bad contact (with my finger it works fine !!!. I will directly solder NRF to sensebernder tomorrow. Strange, my solders seems to be fine and I made it all one mmore time but same problem. I will let the new sensbender online all the night. I will check tomorow my grafana input !

17

Online

11.7k

Users

11.2k

Topics

113.0k

Posts