Sensebender Micro



  • @ximinez said:

    I'm seeing the same failed signings when the device powers up, but it doesn't fail after those.

    Did you manage to get it sorted?



  • I just ignore the first fails. It works after that, and has done so for close to a month.


  • Contest Winner

    Well, if you think the signing implementation cause initial radio transmissions to fail I am afraid I will need your help in explaining how. Because I fail to see any connection between signing and radio behaviour. st=fail is a transmission problem, and signing implementation require flawless transmissions. I also suspect you both use nrf24 and I also suspect you will not see this if you use rfm69 although I use nrf24 myself for testing and I have not seen what you report. But I am sure you really experience this strange behaviour. But I maintain that it is due to some startup problems of the radio. I am afraid I cannot find anything I can change in the signing codebase to have an influence on st=ok or st=fail. But I am all ears to suggestions of course if you see something suspicious.



  • @Anticimex Interesting observation - another node with the same rf24l01+ radio from the sensebender with the same GW and signing works without st=fail. This is now clear that this is not a rf24l01+ hardware issue.


  • Contest Winner

    @alexsh1 Indeed. And also that it is not a signing issue since I take it you use the same FW?
    I still think it is a HW issue. You have a new node, right? So the radio has a new power source?



  • @Anticimex said:

    @alexsh1 Indeed. And also that it is not a signing issue since I take it you use the same FW?
    I still think it is a HW issue. You have a new node, right? So the radio has a new power source?

    Yes, I tried to compare apples with apples:

    1. it is the same distance / FW
    2. the code is different to the expend that the sensebender has got Si7021/ATSHA204a and the other sensor did not. I may try to upload a simplified code to the sensebender just to test it to make it a more equal comparison.
    3. the power source is the same - 5V 500mA via AMS1117 + cap

  • Contest Winner

    @alexsh1 You could also try soft signing on the sensebender and see if that makes a difference. Perhaps the atsha device interferes with the radio (this depends on routing and such things). I have no sensebender myself and I have not noticed the behavior you describe with nrf24 and atsha204a.



  • @Anticimex I tried the sensebender with soft singing - still the same st=fail


  • Contest Winner

    @alexsh1 Ok. I guess that is "good news for me" as it rules out signing related hardware as well. I guess so far, the only conclusion is that rf performance is to some extent degraded on the sensebender.


  • Mod

    @alexsh1 just a hunch: do both nodes have identical CPU's & clock frequency?



  • @Yveaux Correct - I have used Pro Mini 3.3V 8Mhz which corresponds to the sensebender



  • Is there a "pre setup" available yet? The failed transmits are before sensor values are transmitted, so they aren't in the actual sketch but somewhere in the library. I'd like to try just sleeping the sensor 5-10 seconds before the initial data is transmitted and see if that makes a difference.



  • @Anticimex Yeah it seems like a combination of things but not a signing problem


  • Contest Winner

    @ximinez not sure. I know it has been discussed. But you can always patch the library to test.



  • @ximinez I do not think so. Either to patch the library or you do it in the sketch. Unless I do not know some other secret place.


  • Admin

    @ximinez

    You can add a before()-method.



  • @hek said:

    @ximinez

    You can add a before()-method.

    It's that easy? I'll give it a try when I get around to it, unless @alexsh1 feels like trying it first 🙂



  • Hi! I have just gotten four Sensebenders and was hoping to connect PIRs to them and powering them with AA batteries. I understand from the forums that people do this. But is there a working Arduino sketch example implementing a PIR for wake-up out there? (And perhaps there is a more detailed description for such a hardware setup for us newbies?)



  • I have bought another couple of sensebenders.
    I am not able to upload sketches to one of them.
    When I connect the programmer the status led goes to solid red. From another one, I realized that it is not solid red.

    What is the meaning of a solid red status LED?


  • Admin

    What does the log say when you upload?



  • @Haakon Have a look here - https://forum.mysensors.org/topic/2478/slim-cr123a-2aa-battery-node
    Just change your board for sensebender.



  • @hek

    D -Uflash:w:/var/folders/3s/rjbksrj96nv0hqfqjlpfw8bm0000gn/T/build8699526819198040594.tmp/SecurityPersonalizer.cpp.hex:i 
    
    avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch
    
             System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
             User configuration file is "/Users/tom/.avrduderc"
             User configuration file does not exist or is not a regular file, skipping
    
             Using Port                    : /dev/cu.usbserial-DA01IGTO
             Using Programmer              : arduino
             Overriding Baud Rate          : 57600
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
    avrdude: ser_recv(): read error: Device not configured
    Probleme beim Hochladen auf die Platine. Hilfestellung dazu unter http://www.arduino.cc/en/Guide/Troubleshooting#upload
    

    I have Sensebender selected as board.

    Btw, where is the hardware folder? It is not present anymore in the development branch?


  • Admin

    @tomkxy said:

    Btw, where is the hardware folder? It is not present anymore in the development branch?

    You can use the build in board manager nowadays.
    https://github.com/mysensors/ArduinoBoards

    Check board for solder bridges or anything suspicious.



  • Hi,

    I wonder if anyone modified the original sensebender sketch to include a door sensor?
    Do you need a pullup? If you have a sketch somewhere I would be happy if you could send/post it, as I have problem finding time to code right now.


  • Plugin Developer

    @johnr

    Here's one for a button, but shouldn't matter:

    https://forum.mysensors.org/topic/2887/sensebender-micro-button/2



  • @johnr This is easy.

    // PIN = 2 or 3 only
     
    void setup {
      pinMode(PIN,INPUT);
      digitalWrite(PIN,HIGH);
    }
    

    This activates internal pull-up.
    The sensebender has got pinout of Pro Mini



  • Well that didn't go well... assembling my first micro. Soldered on some pins for the FTDI connection, added power (2xAA holder), and soldered on the radio with cap. Then I put in batteries and brought up my domoticz page to see if it showed up. Started to smell something, looked down, and there's smoke coming from the battery holder. Grabbed the whole thing and yanked the wire free then dropped it in the sink. Not sure where I screwed up, but I sure shorted something!


  • Admin

    😱 Did you find the problem?



  • @timropp sounds like you shorted batteries somewhere



  • Nope, didn't find the problem. Must be some solder that shorted the batteries out but I don't see it. Oh well... main problem is that was my only 2AA holder on hand, and it melted right through the end of it, so now I have to wait on more before I can try again. Bummer 🙂



  • You can feed it with just two wires connected to the USB FTDI TTL converter / programmer - have a look at this https://www.mysensors.org/hardware/micro
    Available Pins - GND, GND, VCC (on the right)



  • I am having an odd issue with one of my sensebender boards.
    I have flashed 5 in a row, same sketch, same everything.
    all look fine (and in english) in the serial monitor. but this one board displays different.
    it does seem to work. but i can't figure out why it's showing up different in the monitor.
    any ideas?

    Óåîóåâåîäåò Íéãòï Æ× 1.5óåîä: 2-2-0-0 ó=255,ã=0,ô=17,ðô=0,ì=3,óç=0,óô=ïë:1.5
    óåîä: 2-2-0-0 ó=255,ã=3,ô=6,ðô=1,ì=1,óç=0,óô=ïë:0
    óåîóïò óôáòôåä, éä=2, ðáòåîô=0, äéóôáîãå=1
     - Ïîìéîå!
    óåîä: 2-2-0-0 ó=255,ã=3,ô=11,ðô=0,ì=17,óç=0,óô=ïë:Óåîóåâåîäåò Íéãòï
    óåîä: 2-2-0-0 ó=255,ã=3,ô=12,ðô=0,ì=3,óç=0,óô=ïë:1.5
    óåîä: 2-2-0-0 ó=1,ã=0,ô=6,ðô=0,ì=0,óç=0,óô=ïë:
    óåîä: 2-2-0-0 ó=2,ã=0,ô=7,ðô=0,ì=0,óç=0,óô=ïë:
    óåîä: 2-2-0-0 ó=3,ã=0,ô=1,ðô=0,ì=0,óç=0,óô=ïë:
    óåîä: 2-2-0-0 ó=4,ã=0,ô=16,ðô=0,ì=0,óç=0,óô=ïë:
    éóÍåôòéã: 0
    ÔåíðÄéææ :174.85
    ÈõíÄéææ  :154.00
    Ô: 74.85
    È: 54
    óåîä: 2-2-0-0 ó=1,ã=1,ô=0,ðô=7,ì=5,óç=0,óô=ïë:74.8
    óåîä: 2-2-0-0 ó=2,ã=1,ô=1,ðô=2,ì=2,óç=0,óô=ïë:54
    óåîä: 2-2-0-0 ó=255,ã=3,ô=0,ðô=1,ì=1,óç=0,óô=ïë:97
    ÏÔÁ Æ× õðäáôå åîáâìåä
    óåîä: 2-2-0-0 ó=4,ã=1,ô=23,ðô=2,ì=2,óç=0,óô=ïë:99
    Ìéçèô: 99
    ÔåíðÄéææ :0.01
    ˆõíÄéææ  :0.00
    Ìéçèô: 99
    
    

  • Admin

    @mvader

    What baudrate are you using? It seems like it's to much off, for the ftdi to decode it correctly. Have you tried to lower it to, let's say 9600 baud? And does it still do this?



  • @tbowmo said:

    @mvader

    What baudrate are you using? It seems like it's to much off, for the ftdi to decode it correctly. Have you tried to lower it to, let's say 9600 baud? And does it still do this?

    Serial.begin(115200);
    I have not tried 9600, but i've done 5 today all the same code.. no problems.
    i have 4 others deployed from when i first bought these (when they came out) same code for them as well..
    could be a bum board..idk. when i fired it up, i could see it in the controller software though. so it does seem to work. it just gives me that in the serial monitor.. strange for sure 🙂 I'll let you know how 9600 works out.


  • Contest Winner

    @mvader what baffles me is that numbers seem to encode ok but alphabetical characters do not. You don't use some exotic ascii encoding in your terminal? (not likely if you can switch to a different SenseBender and get sane output I suppose)


  • Admin

    @mvader

    115200 is on the edge of what is possible with the 8Mhz that the sensebender is using. And it's a uncalibrated RC oscillator that's in use. So this one might be a bit off to the lower side (run 7.5Mhz for example) which could throw off your serial port a bit.

    (But as @Anticimex mentions, it does look weird that the numbers are readable..)


  • Contest Winner

    @tbowmo @mvader it can still be a timing problem. Numbers in the ascii table have the most significant bits zero (they are in the range 0x3x and below) and since regular UART protocols transmit lsb first, the first bits may be within legal timing while the later bits are not, so the higher the ascii value, the higher the risk for corruption.


  • Hardware Contributor

    Playing with 2.0 I wanted to upgrade my sensebenders but I didn't find the sketch (neither in the main distribution nor in the examples folder).

    Is there a version 2.0 compatible sketch?


  • Admin


  • Contest Winner

    @FotoFieber it is low located in the SenseBender repo in GitHub


  • Hardware Contributor

    @Anticimex
    Thx. This is an old version. I found a newer on my hard drive (old development branch). As I do only need temp/hum, I reduced the sketch and it is working fine.


  • Contest Winner

    @FotoFieber @tbowmo isn't the one in the SenseBender repo supposed to be the latest&greatest?


  • Admin

    @Anticimex @FotoFieber

    Yup, it was moved over from development branch on the release night. So should be the latest and greatest



  • Hi!
    I am in process of upgrading my Sensebenders to V2.0 and like to enable the OTA function.

    Who can give me some pointers on the capabilities of OTA for this Sensebender Micro board?
    I know that has external flash for this purpose, but i am stuggling a bit finding how to use it.
    So I am keen to read information on dependencies of the Sensebender sketch as well as the controller options.
    My environment:
    6x Sensebender
    Wifi based Gateway
    Domoticz as controller

    Things I like to know:

    • Is my sensebender shipped with optiboot bootloader? (have them about 1 year now)?
    • do i require special Gateway software? (i noticed a sketch called something like GatewayESP8266OTA)
    • what can i expect from Domoticz? probably not much, so do i need to connect to another controller (e.g. MYSController) to perform an update?
    • What controller is advised for the standard bootloader (optiboot bootloader)?

    I am sure those things are discussed in the past, but I was unable to find it.
    Would be great if somebody can share a howto or wiki on this topic.

    thanks in advance


  • Admin

    @jovo

    Sensebender is delivered with "DualOptiboot" which uses the external flash.

    To enable OTA with 2.0.0, you have to compile your sketches with

    #define MY_OTA_FIRMWARE_FEATURE
    

    enabled. For controller / Gateway, you need something else than domoticz. I haven't tried OTA firmware upgrades myself yet, so I do not have any experience with what works, and what doesn't work, other than the fact that domoticz doesn't support OTA..


  • Contest Winner

    Today I soldered the headers to a new sensebender and try to start it. I've uploaded the 2.0 example but it can't find the gateway:

    Started
    Starting sensor (RNONA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSM:FPAR
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    !TSM:FPAR:FAIL
    !TSM:FAILURE
    TSM:PDT
    

    My other sense benders worked flawelessly. But this one can't communicate. Does anyone have any idea, what might be wrong?



  • @TheoL I have exactly the same issue with one of the nodes though not the sensebender.
    All other nodes work just fine.
    Take a look:

    https://forum.mysensors.org/topic/4723/tsp-chkupl-fail



  • @TheoL I had this problem last night, its unable to find the parent/gateway. I ended up swapping out the radio with one I'd extended the antenna on and it worked. I then attached a piece of wire to the original radio and that was worked too. I put it down to knock off components.

    I think there is a video detailing the correct length etc.


  • Contest Winner

    Solved. I had forgotten to config the correct baudrate. My network is on one 1 mbyte, because of the mixed NRF24L01 and NRF24L01+ radios.



  • I get "not in sync" errors from avrdude if I try uploading a sketch to the sensorbender.
    I do have correct serial communication, when I open the serial monitor, I get the info from the default sketch (which unfortunately uses the 1.4.1 API).
    I tried with a different SenseBender board, same result. Tried with an older IDE version (1.6.9) on an other computer, same result.
    Any suggestions ?

    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x20
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x2d
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x20
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x4f
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x6e
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x6c
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x69
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x6e
    An error occurred while uploading the sketch
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x65
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x21



  • @stefaanv sounds like you have a wrong board in Arduino. Did you install the correct board in Arduino IDE? I'm programming the Sensebender in 1.6.9 via the FTDI adapter without any difficulties



  • @alexsh1 I'm using the Uno board. Which one should I use ? Can't find anything in the SenseBender page.



  • @stefaanv well, that's the problem - you must install Sensebender Micro (or I think you can use Arduino Pro Mini 3.3V) board. You MUST NOT provide more than 3.3V otherwise you may damage the board or radio. Please double check

    Please refer to this link below to install the correct board in Arduino:

    https://github.com/mysensors/ArduinoBoards



  • @alexsh1 Thanks, got it working now.



  • Is there anybody who can comment if the battery usage is increased in V2.0?

    I feel that my batteries are draining faster then with 1.4 I had installed before.

    Also I am seeing issues with the Force Retransmit. I dont see this working either. it just transmits when Transmit_Treshhold is kicked.

    My sketch is pretty default. As far as I can see, I only turned Batt_Sensor on.



  • @jovo what is your usage? I'm getting 8+ months easily
    I have a sensor in my deep freeze, been there for 8+ months and still working fine.



  • @mvader Hi,
    I guess you are not for 8 months on v2?
    I had a long time on the previous version as well.
    Haven't done the measurements, but I noticed my batteries were depleted quickly since v2 was on.
    I am more concerned about the fact that the force transmission doesn't seem to be working.



  • @jovo how exactly do you define "quicker" please? I do not think anyone had enough time to test it. My batteries dropped 0.2V for 2 months (reporting temp/humidity/pressure every minute) but that does not mean anything at all. I would need to run it for another 6 months at least to say what I think.



  • i have some problems with sensbender micro it all work fine it shows temp and hum in mycontroller bu then i try to program the board to test my FTDI programmer, for test i was try to upload default sketch but since then it showing me only node in mycontroller without any sensors 😞

    this is my log from debug:

    0 MCO:BGN:INIT NODE,CP=RNONA--,VER=2.1.1
    4 TSM:INIT
    4 TSF:WUR:MS=0
    12 TSM:INIT:TSP OK
    14 TSF:SID:OK,ID=5
    16 TSM:FPAR
    53 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2062 !TSM:FPAR:NO REPLY
    2064 TSM:FPAR
    2101 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4110 !TSM:FPAR:NO REPLY
    4112 TSM:FPAR
    4149 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6158 !TSM:FPAR:NO REPLY
    6160 TSM:FPAR
    6197 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8206 !TSM:FPAR:FAIL
    8208 TSM:FAIL:CNT=1
    8210 TSM:FAIL:PDT
    18214 TSM:FAIL:RE-INIT
    18216 TSM:INIT
    18225 TSM:INIT:TSP OK
    18227 TSF:SID:OK,ID=5
    18229 TSM:FPAR


  • Mod

    That looks like there is no communication with gateway. Did you check gw log? You could also update mysensors to latest 2.2



  • but before it was working im using sensebender gateway and i see node in controler, i update my sensors and still nothing



  • OK i found the problem i just needed to clear the eeprom and it works i remembered that i had this problem before with binary switch sample



  • sory still not workinkg i was thinking that i solve the problem but i didn't now i was try to connect other sensebender micro and it's working with no problem and i noticed that the red led flash on micro when i connect power i dont se that led on previous not working micro is it possible that i burn micro when programming, bu ti upload program with no problems i also had 3,3V jumper on the programer 😞


  • Mod

    You could try with a basic blink sketch and see if you can blink an led



  • nothing happened just upload blink code but no blinking 😞

    // the setup function runs once when you press reset or power the board
    void setup() {
      // initialize digital pin LED_BUILTIN as an output.
      pinMode(LED_BUILTIN, OUTPUT);
    }
    
    // the loop function runs over and over again forever
    void loop() {
      digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
      delay(1000);                       // wait for a second
      digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
      delay(1000);                       // wait for a second
    }```

  • Mod

    have you tried another led?



  • it work when i try button example, had no diode at the hand


  • Mod

    maybe the led on the sensebender is broken... at least you figured it still works


  • Admin

    @mitja-blazinsek

    Try toggling A2 instead og BUILTIN_LED. Or try the default Sensebender Micro sketch, found here.

    With the default sketch loaded, you could try holding A0 low, while applying power to the Sensebender Micro, this will start a selftest routine, blinking the LED at the end.



  • can anyone help me every sensor it work fine first time in mycontroler but but when i reprogram it with same code it doesn't register anymore in my controller like i remember i have this same problem about year ago with binary switch bu i can't remember what was solution for problem that why sensebender micro doesn't work i just try hum. sensor with nano working fine after reprogram with same code my controller doesn't recognize anymore 😞 do i have clear anything in my controller i already try to delete node and sensor but no affect


  • Mod

    Do you see correct communication on node and gw logs?



  • 16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.2.0
    25 TSM:INIT
    26 TSF:WUR:MS=0
    33 TSM:INIT:TSP OK
    35 TSM:INIT:STATID=15
    37 TSF:SID:OK,ID=15
    39 TSM:FPAR
    75 TSF:MSG:SEND,15-15-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2082 !TSM:FPAR:NO REPLY
    2084 TSM:FPAR


  • Mod

    @mitja-blazinsek said in Sensebender Micro:

    2082 !TSM:FPAR:NO REPLY

    That's clearly a communication problem, look at the gateway what do you see



  • Jan 30, 2018 04:46:45 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:GWL OK
    Jan 30, 2018 04:46:45 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:CKU:OK,FCTRL
    Jan 30, 2018 04:46:45 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:FPAR REQ,ID=15
    Jan 30, 2018 04:46:45 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:BC
    Jan 30, 2018 04:46:45 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:READ,15-15-255,s=255,c=3,t=7,pt=0,l=0,sg=0:


  • why mycontroller don't register node and sensor if he receive message


  • Mod

    @mitja-blazinsek I think there must be something else in the gateway log, please add more entries



  • Jan 30, 2018 05:00:30 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] !TSF:MSG:SEND,0-0-15-15,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
    	Jan 30, 2018 05:00:29 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:GWL OK
    	Jan 30, 2018 05:00:29 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:CKU:OK,FCTRL
    	Jan 30, 2018 05:00:29 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:FPAR REQ,ID=15
    	Jan 30, 2018 05:00:29 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:BC
    	Jan 30, 2018 05:00:29 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:READ,15-15-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    	Jan 30, 2018 05:00:28 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] !TSF:MSG:SEND,0-0-15-15,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
    	Jan 30, 2018 05:00:27 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:GWL OK
    	Jan 30, 2018 05:00:27 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:CKU:OK,FCTRL
    	Jan 30, 2018 05:00:27 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:FPAR REQ,ID=15
    	Jan 30, 2018 05:00:27 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:BC
    	Jan 30, 2018 05:00:27 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:READ,15-15-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    	Jan 30, 2018 05:00:26 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] !TSF:MSG:SEND,0-0-15-15,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
    	Jan 30, 2018 05:00:25 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:GWL OK
    	Jan 30, 2018 05:00:25 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:CKU:OK,FCTRL
    	Jan 30, 2018 05:00:25 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:FPAR REQ,ID=15
    	Jan 30, 2018 05:00:25 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:BC
    	Jan 30, 2018 05:00:25 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:READ,15-15-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    	Jan 30, 2018 05:00:24 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] !TSF:MSG:SEND,0-0-15-15,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
    	Jan 30, 2018 05:00:23 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:GWL OK
    	Jan 30, 2018 05:00:23 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:CKU:OK
    	Jan 30, 2018 05:00:23 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:PNG:SEND,TO=0
    	Jan 30, 2018 05:00:23 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:FPAR REQ,ID=15
    	Jan 30, 2018 05:00:23 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:BC
    	Jan 30, 2018 05:00:23 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:READ,15-15-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    	Jan 30, 2018 05:00:14 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    	Jan 30, 2018 05:00:14 PM	Notice	Gateway	 mysensors	Sent	Internal	[Discover]
    	Jan 30, 2018 05:00:12 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] !TSF:MSG:SEND,0-0-15-15,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
    	Jan 30, 2018 05:00:11 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:GWL OK
    	Jan 30, 2018 05:00:11 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:CKU:OK,FCTRL
    	Jan 30, 2018 05:00:11 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:FPAR REQ,ID=15
    	Jan 30, 2018 05:00:11 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:BC
    	Jan 30, 2018 05:00:11 PM	Notice	Node	 mysensors   0	Received	Internal	[Log message] TSF:MSG:READ,15-15-255,s=255,c=3,t=7,pt=0,l=0,sg=0:```

  • Mod

    @mitja-blazinsek said in Sensebender Micro:

    Jan 30, 2018 05:00:30 PM Notice Node mysensors 0 Received Internal [Log message] !TSF:MSG:SEND,0-0-15-15,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0

    That is a transmission error, so either the node is not receiving well or the gateway doesn't have a good power source for radio



  • couldn't be radio second sensebender micro working fin bu that micro is out of the box didn't touch em fist one that i was programming with officially code don't work anymore also nano that i programm default Door/Window/Button and relay sketch on it bouth doesent work since i was start programing i realy dont know anymore try ewerything but mycontroler dont show nothing anymore no senors no nodes except original sensebender micro


  • Mod

    If you get NACK in the debug it means it failed the communication, so of course it will not show any data on controller.



  • but why fail i upload officially sketches from my sensors also try same radio from sensebender that works also try blink test on sensebender and it works so what else could be i have everything latest version my controler mysensor libary...


  • Mod

    Could be noisy power supply, not adequate decoupling capacitor on the radio, radio interference from other devices nearby (wifi or else)



  • i try at least three different radios with and without capacitors gw an sensors are close (20cm) and like i said sensbender worked fine till i try to upload program on it


  • Mod

    Did you try a completely different radio module from another manufacturer?


  • Contest Winner

    @mitja-blazinsek how do you supply power to the radio module?



  • yust plug in socket on sensbender micro



  • is it possible that si some problem with my arduino IDE maybe some library tomorrow i will try to reinstall arduino



  • @MITJA BLAZINSEK - So I built my first Sensebender Micro this weekend and it works great. Radio works at distance (>10Meters). Advertises temp and hum at proper intervals. Plus battery level occasionally. And I can update the firmware via Arduino IDE (v1.8.1) and USB. Everyone's path and experience is different so here's what I did.

    The build was simple. I just added the socket for the radio. Oh and a piece of right angle pin header for the FTDI interface.

    For powering I currently use a FTDI Basic 3v3 from Sparkfun. Provides power plus USB serial for programming and debugging. I have a few 2xAAA cell holders on order for powering from battery.

    Once built I also plugged in a radio. I have tried the generic NRF24 low and high power versions with no problems either way. The high power is the PA LNA type with the external antenna. The low power is what is in the picture down below.

    Setting up the Arduino IDE was a bit of a chore but the instructions at > link < are very good.

    At the end make sure you use the Boards Manager to install the MySensors AVR Boards (add MySensors to the search) so you can choose the "Sensebender Micro" as your 'board'. This last step isn't explicitly mentioned on the link. If that board isn't selected your results will be disappointing. I know from experience.

    For the MySensors library be sure to install the latest release which is 2.2.0. I had to use the drop down list for the MySensors library in the Library Manager to install that version. But I l already had a lower version installed, plus a development release installed manually, and this was right around the official 2.2.0 release date, so who knows.

    I run Windows 7 Professional SP1 and the Arduino IDE version 1.8.1. Updating the firmware via USB works fine. I have not tried OTA updates yet though I plan to. That should be interesting.

    Your mileage may vary. I hope this helps anyone dipping their toe for the first time.

    0_1517458778536_20180129_215848.jpg

    -d



  • i did all this i try even downgrade my sensor library and its same the interest thing that even other boards not working (arduino nano) a had some assembled and programmed nano that i play with about 6month ago and it work fine, then try to upload relay code on it and nothing everything (didn't touch wiring) i try to program it doesn't work even if it was working before, so i think it must be something with my arduino ide



  • reinstal arduino, libary, clear eprom nothing gonna lose my mind i think i'm gonna throw everything in trash 😡


  • Contest Winner

    @mitja-blazinsek how do you power your board? USB from pc? That might not work. Try a USB power supply instead. Or a different pc. Or a completely different power source, like batteries.



  • i just try this and its same
    is it possible that is anythig with gw i'm using official sensebender gw


  • Admin

    @Mitja-Blazinsek

    Just to be sure, you haven't used a customized channel / network address on the gateway, that you forgot to set on the nodes?


  • Admin

    You could also try moving the node further away (5-10 m) from the gateway.



  • i try new serial gw on nano but same problem i delete all nodes and when i turn on some sensors my controller find it only one node without name. My only working sensor (one of the woking sensebender out the box) display 2 nodes one without name and node with sensebender micro name what for is that first node ID 0
    screen shot how it display every sensor:
    0_1517487241245_Untitled.jpg



  • now even sensbender micro that it work on sensbender gw don't work on my gw it work only if i connect sensbender gw
    0_1517488112114_Untitled1.jpg



  • look like everything that i programmed not working about half years ago when i start with my sensors everything that i try work bu when i have time to play with mysensors again nothing worked make me crazy i have full box of sensors and boards but nothing cant get to work only sensbender gw and sensbender micro that i didn't touch i think that must be something with arduino ide



  • ok my gw now work sorry i forget to connect radio vcc ☺ but everything else not working every sensor i try triple check wiring bothing 😡


  • Mod

    without any debug info nobody can help you



  • 16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.2.0
    25 TSM:INIT
    26 TSF:WUR:MS=0
    33 TSM:INIT:TSP OK
    35 TSF:SID:OK,ID=56
    37 TSM:FPAR
    73 TSF:MSG:SEND,56-56-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2081 !TSM:FPAR:NO REPLY
    2083 TSM:FPAR
    2119 TSF:MSG:SEND,56-56-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4127 !TSM:FPAR:NO REPLY
    4129 TSM:FPAR
    4165 TSF:MSG:SEND,56-56-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6173 !TSM:FPAR:NO REPLY
    6175 TSM:FPAR
    6211 TSF:MSG:SEND,56-56-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8219 !TSM:FPAR:FAIL
    8220 TSM:FAIL:CNT=1
    8222 TSM:FAIL:DIS
    8224 TSF:TDI:TSL
    18226 TSM:FAIL:RE-INIT```

Log in to reply
 

Suggested Topics

  • 3
  • 163
  • 347
  • 10
  • 2
  • 110

1
Online

11.2k
Users

11.1k
Topics

112.5k
Posts