Giter Club home page Giter Club logo

man-fred / culfw.esp8266 Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 5.0 20.37 MB

CUL/CUN 433/868 MHz CC1101 Transceiver mit WLAN-Schnittstelle für FHEM - originally forked from svn2github/culfw (https://github.com/svn2github/culfw)

License: GNU General Public License v2.0

C 8.13% Makefile 1.59% Shell 0.05% Perl 0.06% Roff 0.04% C++ 16.27% HTML 72.98% JavaScript 0.34% Python 0.40% Gnuplot 0.01% PHP 0.02% Raku 0.01% CSS 0.12%
esp8266 cpp arduino-sketch fhem

culfw.esp8266's People

Contributors

man-fred avatar memphiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

culfw.esp8266's Issues

mbus

Hi,

Would it be difficult to port MBUS as well ?
I haven't looked too much yet as my C/C++/CC1101 skills are very poor :-)

test to compile for CUL_V3

Work in progress.
open problems:

  • not found, must be changed to avr/...:
    #include <power.h>
    #include <pgmspace.h>

  • extern "C"
    pcf8833.c
    log.c
    qfs.c

How to setup esp8266 wifi parameters ?

Hi Man-fred

So interesting your cul.esp8266 project, and first to all so Sorry abut my ignorance, but I want to setup some esp8266 cul gateway devices for my Max! eq3 system.

Once flashed my esp8266 device (Wemos D1 mini), with the provided V01-67-00.culfw-esp8266.ino.d1_mini.bin inside the project and do setup wifi and ip parameteres trough serial follwing the CUL commandref.html, the ESP seems unable to connect over wifi with a weird error message that I can see in logs on my wifi router (OpenWRT).
I try another router (firmware form own manufacturer not OpenWRT) and device are unable to connect too, but this router don't provider log, so cannot see what error

Finding over internet (kaloz/mwlwifi#278, https://forum.openwrt.org/t/solved-wrt32x-and-smart-plug-problems/35509) the issue seems maybe a problem related with the ESP core version used on compilation but with several hours triying to fix it on my OpenWRT router no give any success.

Triying to use another ESP8266 Core making compile whole project by mysef but I'm unable to figure out how to arrange with your project struture (I'm use Arduino IDE version 1.8.9) needed to link all library files used, and other files related, so I'm unable to follow that path.

Wifi error are described bellow:

Router log:
...
Sun Jan 24 23:34:28 2021 daemon.info hostapd: wlan0-1: STA 98:f4:ab:fb:ad:ac IEEE 802.11: authenticated
Sun Jan 24 23:34:28 2021 daemon.info hostapd: wlan0-1: STA 98:f4:ab:fb:ad:ac IEEE 802.11: associated (aid 1)
Sun Jan 24 23:34:28 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
Sun Jan 24 23:34:29 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
Sun Jan 24 23:34:30 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
Sun Jan 24 23:34:31 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
Sun Jan 24 23:34:33 2021 daemon.info hostapd: wlan0-1: STA 98:f4:ab:fb:ad:ac IEEE 802.11: authenticated
Sun Jan 24 23:34:33 2021 daemon.info hostapd: wlan0-1: STA 98:f4:ab:fb:ad:ac IEEE 802.11: associated (aid 1)
Sun Jan 24 23:34:33 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
Sun Jan 24 23:34:34 2021 daemon.notice hostapd: wlan0-1: AP-STA-POSSIBLE-PSK-MISMATCH 98:f4:ab:fb:ad:ac
...

Serial output commanded:
WisN600_AUX
Wikxxxxxxxxxxxxxxxx
Wia10.10.1.179
Wig10.10.1.1
Win255.255.255.0
⸮Hlz⸮⸮MH⸮�Yp⸮⸮eeprom_init
eeprom_init ok
Connecting 876543210
UDP 1, TCP 0 on 10.10.1.179:2323

Channel 12
CC1100_PARTNUM 0x00: 0
CC1100_VERSION 0x14: 14

Any help will be much appreciated

Best regards
Jose

Unreliable ESP CUL for my MAX! devices

Hi,

First all, so sorry that I continuing bother you.

I built all hardware (wemos d1, cc1101 module, 868 antena, proper psu), flased esp with the provided .bin yet compiled file inside the project, and setup the ESP-CUL with propper Wis, Wik, Win, Wig parameters and device is up and running. So far so good.

But, but ....

I need use it for MAX! devices (elv eq3 radiator basic valves BC-RT-TRX-CyN) and once setup the ESP CUL device I can send commands to them receiving the propper aknowlegdment from the target valve, but once that first send was do it (with success), the ESP CUL device goes in a state that are unable to send again any other command to the same or other device that had first success commad.

If I change the CUL gateway to other, the target device is repliying without issues (I have a CC1101 module direct GPIO atacched to a raspberry, and a MAX CUBE flashed with a-culfw firnware) , but ESP CUL still not working although I reboot it with B00 command (trough telnet connection ESP CUL ip:2323 ), and only with a hard reset (power off) the ESP CUL start again to send and reciive commands to my MAX! devices.

So to me seems ESP-CUL have some issue with my MAX! (if I'm not wrong are being using Moritz mode protocol) devices.
Triying compiling (using Arduino IDE) from myself with this downloaded repository, conclude on a ESP CUL device that is not working propperly, because at first look I see ESP CUL is not replying not even trough direct serial CUL commands, so not seems reliable enough to do further tests.

Any help, will be really apprecied, because that wifi CUL device will be great to be as gateway to reinforce signal to some of my actually near unreachable MAX! devices because cannot place a more near gateway .

I dont know, if maybe the radio 868 max time slot rate limit is reached and thus can be realted with that issue, but I can comfirm tha if I left the ESP CUL acting as gateway for all the day attached to some of my MAX! devices they are not working propperly acepting the commands (I send only 3 or 4 orders a day to the devices) that in otherwise if I chage to other gateway are working fine.

Still doing more tests, so I reply back any other observation that I reach with the test.

Aa offside information, the system brain I'm using is the wonderfoul HomeGear, and HomeMatic Manager to do test and perform some adjustments that I find are more easy doing with it.

Best regards
Jose

Questions and Schema available?

Hi,

As I understand, you try to let an cc1101 (868mhz) work on the esp8266?

So it will act as an remote cul for fhem?

now I use an rpi zero with ser2net en an usb cul, so this should be better, if I understand it right

Is ther also a schema how to connect and cc1101? and do i have to program the cc1101 first?

Wich cc1101 should I buy?

regards Richard

MIS0 Pin nicht vorhanden

Hallo, danke für das tolle Projekt.
Leider hat mein Board kein MIS0 Pin
Ich habe folgende:

GND
GOD2
GOD1
MOSI
SCK
CSN
GOD0
VCC

Kann ich das Board irgendwie verwenden?
Vielen Dank im vorraus!

IMG20230117173931

rf_moritz compile failed

Hi Manfred

I see that moritz you have enabled.

It fails when I compile

Multiple libraries were found for "WiFiUdp.h"
/home/richard/Arduino/libraries/rf_moritz/rf_moritz.c:5:27: fatal error: avr/interrupt.h: No such file or directory
Used: /home/richard/.arduino15/packages/esp8266/hardware/esp8266/2.6.3/libraries/ESP8266WiFi
#include <avr/interrupt.h>
Not used: /home/richard/Downloads/arduino-1.8.12/libraries/WiFi

regards Richard

CULW.8266 started with a false IP adress

Hello,
I flashed the bin file V01-67-00.clufw-esp8266.ino.d1_mini.bin. I add the Wis,Wik,WiD,Wio as named in the readme file. I got this ouput on the serial monitor:
`⸮⸮~⸮65432
UDP 1, TCP 0 on 192.168.178.244:2323

Channel 12
CC1100_PARTNUM 0x00: FF
CC1100_VERSION 0x14: FF
`
It is NOT my IP adress. I tried to compile the source but it was not successful due to many libaries missing.
Could you be so kind and help me.
Thank you
Roman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.