Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. sghazagh
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    sghazagh

    @sghazagh

    7
    Reputation
    41
    Posts
    699
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    sghazagh Follow

    Best posts made by sghazagh

    • RE: 💬 Building a WiFi Gateway using ESP8266

      Guys, just an update for my issue regarding Radio and my circuit.
      The Radio was faulty, I received the new one, swapped it and all worked fine.

      I just posted that here if someone want to use my last post image as a reference for connecting the Radio.
      The wiring all are correct.

      Thanks

      posted in Announcements
      sghazagh
      sghazagh
    • RE: MySensor Request Function

      @electrik Thanks electrik.
      It is absolutely right, I removed the line for declaring the function and all is working as expected.
      Actually the other problem which made me nut was that I was seeing the device restarts continuously so I thought not declaring the request function is causing that.
      That has fixed as well. The issue was that I had enabled the REPEATER option, however, I didn't add any WIFI library or correct setting for that so the system was crashing and was resetting .
      Now that I disabled that REPEATER option and also did not declaring the request function, all is working fine again.

      @mfalkvidd: I am not sure but believe me it was there and it was compiling just fine before.
      Perhaps used to we had to declare it, and now as "electrik" explained, it already declares in MySensor call.

      Thank you both anyway.
      I think I get it working now.

      Cheers,

      posted in General Discussion
      sghazagh
      sghazagh
    • RE: 💬 Building a WiFi Gateway using ESP8266

      I used the same link (pins and sketches!). Checked it 10 times!
      I think my Radios are not functional....

      posted in Announcements
      sghazagh
      sghazagh
    • Funny charachters at reset

      Hi all,
      I am using Lolin D1 mini pro along with NRF24L01 radio connected.
      I uploaded mysensors relay sketch and whenever the radio is connected, at reset time, I see funny charachters in serial consol preventing the device to come up.
      When I disconnect the radio +3v pin it starts then I have to re-connect the radio power to get it working otherwise it won't work and above problem happens!!!

      Do you guys have any idea why it's happening?

      For your info, the esp8266 library version 4.2.1 is used because as I read in a post, Mysensors won't work with version 4.2.2 and Lolin bored at the moment!

      posted in General Discussion
      sghazagh
      sghazagh
    • RE: Funny charachters at reset

      It seems that I could fix the issue by making the pin 15, LOW at boot time as it triggers the SD BOOT option in ESP8266:

      void setup() {
        pinMode(15, OUTPUT); 
        digitalWrite(15,LOW);
      }
      
      posted in General Discussion
      sghazagh
      sghazagh
    • RE: Mysensors Build Problem on Ubuntu 20.04 (RPi or Tinker Board)

      @sghazagh Hi all,
      I tried to create a empty file and it seems that it does work and does not make any problem for the Radio functionality!

      Any idea what this header is and how can I find this genuine library header for future use?

      touch /usr/include/stropts.h
      
      posted in General Discussion
      sghazagh
      sghazagh

    Latest posts made by sghazagh

    • RE: Mysensors Build Problem on Ubuntu 20.04 (RPi or Tinker Board)

      @sghazagh Hi all,
      I tried to create a empty file and it seems that it does work and does not make any problem for the Radio functionality!

      Any idea what this header is and how can I find this genuine library header for future use?

      touch /usr/include/stropts.h
      
      posted in General Discussion
      sghazagh
      sghazagh
    • Mysensors Build Problem on Ubuntu 20.04 (RPi or Tinker Board)

      Hi all,
      I have problem compiling Mysensors library on Ubuntu 20.04 image running on RPi 3/4 or Tinker Board.

      Getting the error like:

      ...
      e/Linux/drivers/core -c hal/architecture/Linux/drivers/core/Print.cpp -o build/hal/architecture/Linux/drivers/core/Print.o
      g++ -MT build/hal/architecture/Linux/drivers/core/interrupt.o -MMD -MP -DMY_RADIO_RF24 -DMY_GATEWAY_SERIAL -DMY_DEBUG -DLINUX_SPI_SPIDEV -DMY_LINUX_SERIAL_PORT=\"/dev/ttyUSB01\" -DMY_LINUX_SERIAL_IS_PTY  -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -c hal/architecture/Linux/drivers/core/interrupt.cpp -o build/hal/architecture/Linux/drivers/core/interrupt.o
      hal/architecture/Linux/drivers/core/interrupt.cpp:33:10: fatal error: stropts.h: No such file or directory
         33 | #include <stropts.h>
            |          ^~~~~~~~~~~
      compilation terminated.
      make: *** [Makefile:99: build/hal/architecture/Linux/drivers/core/interrupt.o] Error 1
      

      It seems that its missing the <stropts.h> header, but have you any idea how I can resolve that?

      Many thanks

      P.S: I tried on both RPI3 and 4 also on Tinker board and the problem are same for all of them running Ubuntu 20.04.

      posted in General Discussion
      sghazagh
      sghazagh
    • RE: Two Mysensors Network in Same Location

      I don't know why, but by adding "--my-rf24-channel=13" in my configuration and compile it again, it seems that all are working as expected now!!!

      ☝ Believe me, I always used "make clean" so don't know why it didn't refresh the build. Perhaps that option force the compiler to rebuild it!!!"

      posted in General Discussion
      sghazagh
      sghazagh
    • RE: Two Mysensors Network in Same Location

      @mfalkvidd I used a LE33 transistor to power up the radio after converting the 5v from Arduino Uno(tried 3.3v pin as well, same).
      I am also using 4.7mF capacitor on positive and negative pols as well.
      I am sure radio is ok, as as soon as I change the Channel back to 76, it quickly register in my first Network.
      When I change the Channel to for instance 13, the GW on channel 13 does not register and see that Node....

      posted in General Discussion
      sghazagh
      sghazagh
    • RE: Two Mysensors Network in Same Location

      @mfalkvidd I really don't know what is wrong...I just getting this error all the time
      Cleared the EEPROM first and have set the radio channel to 13 for both GW and Node!)
      0_1538214154962_1.png

      Here is log on GW side (Serial on Linux)
      0_1538214259675_2.png

      Any idea why they cannot find each other?

      posted in General Discussion
      sghazagh
      sghazagh
    • RE: Two Mysensors Network in Same Location

      @boozz Ok, if we say we have serial GW on Linux and also a Node:

      • Does channel only need to be changed in MyConfig.h file in MySensors Library before I compile for my Serial GW on Linux

      • and for the Node, I only need to add a define in Sktech?

      #ifndef MY_RF24_CHANNEL
      #define MY_RF24_CHANNEL (83)
      #endif
      

      Also have a question about your setting, I see the channels for NRF24L01 only are:

      0 => 2400 Mhz (RF24 channel 1)
      1 => 2401 Mhz (RF24 channel 2)
      76 => 2476 Mhz (RF24 channel 77)
      83 => 2483 Mhz (RF24 channel 84)
      124 => 2524 Mhz (RF24 channel 125)
      125 => 2525 Mhz (RF24 channel 126)
      

      How did you set channel 13 and 58?

      posted in General Discussion
      sghazagh
      sghazagh
    • RE: Two Mysensors Network in Same Location

      @mfalkvidd What you are saying make scenes, because when I start the Node, it goes straight to other Gateway and even when I turn the Network1 Gateway off, it still comes up with Nodeid of Network1but does not register to Network2 Gateway !!!
      I will try it, tomorrow...

      posted in General Discussion
      sghazagh
      sghazagh
    • Two Mysensors Network in Same Location

      Hello all,
      Hope like always you can help me to understand if this concept is possible or not.

      I have an already established MySensor network for my home. So I have controller, nodes (sensors) and all working fine.

      I need to test another device in another MySensor network by running Domoticz and Gateway again.
      So the second server, has Domoticz installed with MySensor Gateway as Serial but cannot communicate with devices properly.
      It seems that having the sensors running in same place, make the system tricky and nodes can register only in one of the networks.
      I tried to resolve this by changing the network channel (from 76 to 83 in MyConfig.h file) for both my second Gateway and a Node I want to use in second network but seems that it's not working as expected either!

      So , can you please any one have this experience, explain that what is the best practice to make it working as two separate MySensors Network in same location please?

      Thanks for your time and hope I could explain the case scenario

      posted in General Discussion
      sghazagh
      sghazagh
    • RE: Question on Mysensors Network with Protected Domoticz Device

      @bjacobse Yes, you are absolutely right, and that password only is required when you trig the device inside controller.
      I mean, if you click the icon in controller for that device and device is protected, it asks for password.
      And if you also use HTTP API, you need to provide password as well.

      So if you want to trig the device from other Mysensor node (my case), it does not know about the protection and you can directly send the message to trig the device on or off.

      posted in General Discussion
      sghazagh
      sghazagh
    • RE: Error compiling gateway for esp8266 node mcu(1.0) e12

      @mfalkvidd when will be the estimate release date of Mysensors library working with esp8266 v2.4.2?

      Getting compile error if I use 2.4.2 library for Lolin d1 mini pro device....

      Thanks

      posted in Troubleshooting
      sghazagh
      sghazagh