💬 Sensebender Gateway
-
Below is the startup log from my Gateway with W5100 and RFM69 attached:
0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGS--,VER=2.2.0-beta 0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;MCO:REG:NOT NEEDED IP: 192.168.1.66 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1As seen, the W5100 is initialized with ip address,
Telnet to the Gateway is also working:
thomas at thomas-ThinkPad-L450 in ~ >telnet 192.168.1.66 5003 Trying 192.168.1.66... Connected to 192.168.1.66. Escape character is '^]'. 200;255;4;0;0;FFFFFFFFFFFFFFFF0300 200;255;0;0;17;2.2.0-beta 200;255;3;0;6;0 200;255;3;0;11;Sensebender Micro 200;255;3;0;12;1.4 200;1;0;0;6; 200;2;0;0;7; 200;1;1;0;0;23.3 200;2;1;0;1;46 200;255;3;0;0;81The above is with the stock example sketch from mysensors (right now latest development branch though). The only things I changed, was to enable RFM69, instead of NRF24, and set a different IP address, to match my network settings.
Everything else is running as is, delivered from the mysensors examples..
-
Below is the startup log from my Gateway with W5100 and RFM69 attached:
0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGS--,VER=2.2.0-beta 0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;MCO:REG:NOT NEEDED IP: 192.168.1.66 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1As seen, the W5100 is initialized with ip address,
Telnet to the Gateway is also working:
thomas at thomas-ThinkPad-L450 in ~ >telnet 192.168.1.66 5003 Trying 192.168.1.66... Connected to 192.168.1.66. Escape character is '^]'. 200;255;4;0;0;FFFFFFFFFFFFFFFF0300 200;255;0;0;17;2.2.0-beta 200;255;3;0;6;0 200;255;3;0;11;Sensebender Micro 200;255;3;0;12;1.4 200;1;0;0;6; 200;2;0;0;7; 200;1;1;0;0;23.3 200;2;1;0;1;46 200;255;3;0;0;81The above is with the stock example sketch from mysensors (right now latest development branch though). The only things I changed, was to enable RFM69, instead of NRF24, and set a different IP address, to match my network settings.
Everything else is running as is, delivered from the mysensors examples..
-
This log is without ethernet shield attached
0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGS--,VER=2.2.0-beta 0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;MCO:REG:NOT NEEDED IP: 0.0.0.0 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1 -
This log is without ethernet shield attached
0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGS--,VER=2.2.0-beta 0;255;3;0;9;TSF:LRT:OK 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;MCO:REG:NOT NEEDED IP: 0.0.0.0 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1@tbowmo Thanks - I am assuming that I have a faulty W5100 shield in this case. Unfortunately, I have received a wrong replacement shield enc28j60 instead of W5100. Do you know if Sensebender GW would work with
#define MY_GATEWAY_ENC28J60The one I have does not have AMS1117-3.3 on board and must be fed with 3.3V instead of 5v
-
@tbowmo The problem has been identified. I have used a hot fan to re-sit W5100 on the network shield.
AND0;255;3;0;9;2430 MCO:BGN:INIT GW,CP=RNNGS---,VER=2.2.0-beta 0;255;3;0;9;2477 TSF:LRT:OK 0;255;3;0;9;2487 TSM:INIT 0;255;3;0;9;2497 TSF:WUR:MS=0 0;255;3;0;9;2512 TSM:INIT:TSP OK 0;255;3;0;9;2522 TSM:INIT:GW MODE 0;255;3;0;9;2532 TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;2542 MCO:REG:NOT NEEDED IP: 10.1.1.200 0;255;3;0;9;3852 MCO:BGN:STP 0;255;3;0;9;3862 MCO:BGN:INIT OK,TSP=1Still cannot ping it, which means there is still a problem with the shield.
It is of a poor quality and does have multiple bridges around W5100 like this:

I found a similar problem here:
https://electronics.stackexchange.com/questions/156147/are-solder-bridges-on-chips-always-badAt least I know where the problem is.
Thanks @tbowmo -
Great, that we found the problem, and thanks for reporting back here on the forum :)
I haven't tried with other ethernet controllers, than the W5100, And the socket for W5100 is supplied with 5V directly.
Also, I do not know if they are pin compatible?
-
Great, that we found the problem, and thanks for reporting back here on the forum :)
I haven't tried with other ethernet controllers, than the W5100, And the socket for W5100 is supplied with 5V directly.
Also, I do not know if they are pin compatible?
@tbowmo I think they are pin compatible but unfortunately take different voltage. On arduino board, somebody told me that enc28j60 can tolerate 5V. It seems to be the case, as mine survived w5100 socket
EDIT: From the enc28j60 datasheet
- Operating Voltage of 3.1V to 3.6V (3.3V typical)
- 5V Tolerant Input
-
Great, that we found the problem, and thanks for reporting back here on the forum :)
I haven't tried with other ethernet controllers, than the W5100, And the socket for W5100 is supplied with 5V directly.
Also, I do not know if they are pin compatible?
-
Question,
"To use the serial port in the mysx connector, you should use Serial1 in your sketches, as the default Serial is connected to the USB serial device"What pins is the serial port in the mysx connector, I see no mention of it other than that line. I want to mirror the serial data sent to my controller via the USB port to the the serial port in the mysx connector that will then be attached to a bluetooth SPP device. Just want another way to view the radio traffic.
-
Have you seen the documentation for MysX connector: https://www.mysensors.org/hardware/mysx?
(hint, look for Data To Module, and Data From Module :))
-
Have you seen the documentation for MysX connector: https://www.mysensors.org/hardware/mysx?
(hint, look for Data To Module, and Data From Module :))
@tbowmo @nitroburn
Actually, it is even more clearly specified than that as DTM and DFM means Data To MCU and Data From MCU. "module" is not explicitly defining what "side" you mean. The MCU is clearly defined so DTM and DFM leavs no doubt on the direction and function of the pin. -
@tbowmo @Anticimex Thanks, I was stupidly searching for the wrong combination of terms and hadn't seen DTM DFM used so I was naively looking for the word serial or UART rather than USART when I did a search. Thought I was missing something and didn't read the mysx page close enough after briefly searching it.
Thanks for clearing that up. #define MYSX_D1_DFM (00ul) & #define MYSX_D2_DTM (01ul) didn't stand out to me as serial connections.
-
@alexsh1
woops, yes i made it but forgot the upload. it's now uploaded here https://www.mysensors.org/hardware/sensebender-gateway#design-filesEnjoy :)
@scalz Can somebody edit the descriptive text for this Gateway. Under 'Secure IiT Radio Network' is quoted 'Hope RF RFM69HCW' whereas under 'Setup and use' is correctly quoted RFM69(H)W.
Guess who had ordered the incorrect 'CW' module for this Gateway.... -
@scalz Can somebody edit the descriptive text for this Gateway. Under 'Secure IiT Radio Network' is quoted 'Hope RF RFM69HCW' whereas under 'Setup and use' is correctly quoted RFM69(H)W.
Guess who had ordered the incorrect 'CW' module for this Gateway.... -
Is it really correct that orange, green and red led should light constantly when powered on. On some activity from the sensors the leds blink, but goes to full constant light directly.
An other thing, inclusion button. In sketch this is commented out, should it?
// Digital pin used for inclusion mode button //#define MY_INCLUSION_MODE_BUTTON_PIN 3For me it is like GW is in constant inclusion mode. Gateway seams to work, it shows up in controller, and as soon as a sensor is powered up, it automatically also appears in controller... feels very unsecure. Just give power to a random sensor and it is in my controller.
-
@Magnus-Pernemark
You can reverse the led behaviour by defining:
#define MY_WITH_LEDS_BLINKING_INVERSEPresentation messages is always forwarded to controller. Inclusion mode must be implemented/supported by the controller for it to work.
-
@hek Thanks, I'll try that. The controller is Domoticz. Does Domoticz have a flaw when it comes to inclusion? (I guess it must have, since any random sensor gets included automatically).
@Magnus-Pernemark I am not sure domoticz support inclusion at all.

