formtapez / zigup Goto Github PK
View Code? Open in Web Editor NEWCC2530 based multi-purpose ZigBee Relais, Switch, Sensor and Router
CC2530 based multi-purpose ZigBee Relais, Switch, Sensor and Router
Dears,
Since I am not competent to solder SMTs I have take a quote for 5x ZigUp assembled by supplier.
The ticket price is $80 by item +shipping cost from France.
Just let me know if you are interested.
Hello,
I added support for multiple (16 currently) 1-wire temperature sensor in this great code. It's work's fine but before i can make a merge request i need to understand how to inform zigbee2mqtt that devise have multiple sensors.
I can add use the same idea of how current sensors/peripherals are defined in zcl_zigup.c but it causes a problem when a new sensor is added and sensor order will be chances
Example there is 3 sensor and zigup sending to zigbee2mqtt following message:
'{
"state":"OFF",
"cpu_temperature":23.98,
"external_temperature_1":21.4, // device 4D000004D0DC8328
"external_temperature_1":22.4, // device B1000004D01FBF28
"external_temperature_3":23.4, // device C000004D03CA328
"external_temperature_4":-1000,
"external_temperature_5":-1000,
...
"external_temperature_16":-1000,
"external_humidity":null,
"s0_counts":0,
"adc_volt":32.354,
"dig_input":1,
"reason":"timer",
"linkquality":23
}'
and when we add one new sensor (4 total) then important part would be:
"external_temperature_1":21.4, // device 4D000004D0DC8328
"external_temperature_2":24.4, // device A1000004D05ABF28
"external_temperature_3":22.4, // device B1000004D01FBF28
"external_temperature_4":23.4, // device C000004D03CA328
"external_temperature_5":-1000,
so sensor order what you see in zigbee2mqtt is mixed (old sensor_2 is now sensor 3)
One way to solve this is to send sensor id and temperature at the same time like this:
"4D000004D0DC8328":21.4,
"B1000004D01FBF28":22.4,
and if zigbee2mqtt do not support dynamically added devices then send dummy code for sensor what aren't connected like "0000000000000000":-1000.
As you see, i don't really know how to proceed and i would appreciate every guide/hint what you can give me to make code nice and compatible with zigbee2mqtt philosophy.
Hi,
I like this project very much and am looking forward to building a few of these myself.
But I will also attempt a similar project (as base for my bachelor's thesis to be honest).
But as I have quite little actual experience I wondered whether you have any kind of documentation for any part of your process I could use for reference.
Naturally, it would be cited as a source in both the thesis and the project.
Thank you in advance.
I loaded the latest firmware to a CC2350+2195 but cannot get the temperature sensor to work. I tried router and enddevice firmware and connected a ds18b20 sensor to P0_7.
Zigbee2MQTT:info 2021-05-05 17:38:35: MQTT publish: topic 'zigbee2mqtt/0x00124b001adfb0a3', payload '{"0000000000000000":-999.99,"adc_volt":6.17,"cpu_temperature":10.53,"dig_input":1,"external_humidity":null,"external_temperature":null,"linkquality":0,"reason":"timer","s0_counts":0,"state":"OFF"}'
I can get messages from P1.3 (switch), from P2.0 (dig in) and from timer but not from P0.7
I guess this value pair should be the sensor reading: "0000000000000000":-999.99 or "external_temperature":null
Do I need to configure the ds18b20 elsewhere?
Brilliant project!
Where to get hardware?
Will they be sold assembled?
When I compile the latest .EWW projectfile, it does the job but in the ZMain.C file the int main( void) line is highlighted in green. In the Disassembly box under main the following line is highlighted green:
058841 74 EF MOV a,#0xEF
?????
Is it possible to add 2 x channel PWM support to firmware ?
I got strange compilation errros not finding paths if I follow the readme.
Clone ZigUP source to \Projects\zstack\HomeAutomation\ZigUP\
Done
Start \ZigUP\CC2530DB\ZigUP.eww to load project in IAR
Where is this located? I tried to open it in subdirecoty src -> Strange compile errors not finding the framework. Moving sources from /src to / I got some other compile errors.
I also got errors if I want to open for e.g.- Tools/f8wEndev.cfg from the IAR which points to an incorrect path: C:\Texas Instruments\Z-Stack Home 1.2.2a.44539\Projects\zstack\HomeAutomation\ZigUP\Tools\CC2530DB\f8wEndev.cfg
Have you some advices how to compile the stuff?
What is the license for the code in this repo?
May I use some parts of C code in my own projects?
I just build/soldered my first unit, and running following issues:
Not sure of the polarity of the 10-pin programming connector. I understood it should be with red wire (pin 1) on the far side of the RF board (close to the connector of KEY/LED/DIG).
I had to file one corner of the connector of the CC debugger cable before I could make it fit. Is this normal?
It would be nice if there is some guideline to flash units with a default HEX file (I found it in another repository, but would be good to have default hex files here so compiling is not needed).
As a bonus, would be great to have a guide to flash them using Ubuntu (i.e with cctool). I have found some bits of info, but as the default Windows flashing does not work, I do not dare to try a Linux flash yet.
PD: Not really in the main request as this part is not generic, but I can not flash the hex and would need some help:
The CC debugger shows red led when I do not connect the ZigUP and SmartRF Studio detects it right. If I plug the CC debugger with ZigUP connected, led shows off (and USB does not detect the CC debugger). Do I need to power ZigUP as well to 220V or it maybe some problem with my soldering - I just took a snapshop if someone can confirm it is right?
At the moment it is set to 30 seconds. This leads to much unnecessary messages being sent when using multiple ZigUP devices.
I would suggest to set it to a more reasonable value of 300 seconds or even 1800.
When triggering dig for Mode than 5 seconds IT should factory reset the device. At least if I understand the interrupt handler correctly and mit miss something.
Problem is - it doesn't.
Can someone confirm or contradict this?
You have a great project. However, I wanted to learn how to program the TI CC2530 myself. Tell me how did you study? Very heavy entry.
Is there a way to reset the pairing and re-pair?
I assume I have to flash this again to re-pair.
Or is there another way?
Dear @formtapez
first of all: Kudos for this masterpiece of work! This versatile device looks like a perfect fit for so many possible applications!
When calculating and planning to build a batch myself, it looks like the relay and the PSU are really cost drivers. Have you had a look into alternative components?
For the PSU the HLK-PM03 could be a replacement with the same form factor, but less than 2,5$: https://www.mikrocontroller.net/attachment/349613/HLK-PM03.pdf
For the relay, I haven't found one wit the same dimensions (yet), but if the jqc3f-03vdc-c (https://voron.ua/files/pdf/relay/JQC-3F(T73).pdf) could be squeezed on the board, it would be a killer (from pricing perspective with <0,5$)
BR,
Sebastian
Hi
Can I make a light sensor (illumination) with a BH1750?
Will it work with deCONZ?
It has mesh support ?
How do you maintain fault tolerance? I could not find the WDT mode in the source code!
Hi. I am curious what pin is assigned to neopixel led in release please. Tahnk You
Dear formtapez,
Thank you very much for your amazing project. I am new in the zigbee and read your very good project, but I have some problems with the compilation part. could you please explain more?
I have a problem with IAR, always show the message like this:
Building configuration: ZigUP - EndDeviceEB
Updating build tree...
Build error: Multiple tools write to the same file.
File: C:\Texas Instruments\Z-Stack 3.0.0\Projects\zstack\HomeAutomation\ZigUp\src\ZigUP\CC2530DB\EndDeviceEB\Obj.r51
Tool 1: Assembler, when processing C:\Texas Instruments\Z-Stack 3.0.0\Projects\zstack\Components\osal\mcu\cc2530\OSAL_Math.s51
Tool 2: Assembler, when processing C:\Texas Instruments\Z-Stack 3.0.0\Projects\zstack\HomeAutomation\ZigUp\ZMain\TI2530DB\chipcon_cstartup.s51
Build aborted.
Thank you very much in advance.
I flash firmware router zigup 1.1.3 on cc2530 but when i join device to coordinator 3.0, it kick out the network after join and fail lqi. Can you fix it for me?
Thank you!
Not sure if this is an issue with ZigUP or z2m. Let me know if it does not belong here.
I am getting a lot of this:
Oct 19 11:17:12 raspberrypi npm[9723]: zigbee2mqtt:error 2019-10-19T09:17:12: Failed to call 'DeviceReceive' 'onZigbeeEvent' (TypeError: Cannot read property '41368' of undefined
Oct 19 11:17:12 raspberrypi npm[9723]: at Object.convert (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/converters/fromZigbee.js:1353:30)
Oct 19 11:17:12 raspberrypi npm[9723]: at converters.forEach (/opt/zigbee2mqtt/lib/extension/deviceReceive.js:146:41)
Oct 19 11:17:12 raspberrypi npm[9723]: at Array.forEach (<anonymous>)
Oct 19 11:17:12 raspberrypi npm[9723]: at DeviceReceive.onZigbeeEvent (/opt/zigbee2mqtt/lib/extension/deviceReceive.js:144:20)
Oct 19 11:17:12 raspberrypi npm[9723]: at Controller.callExtensionMethod (/opt/zigbee2mqtt/lib/controller.js:320:44)
Oct 19 11:17:12 raspberrypi npm[9723]: at Controller.onZigbeeEvent (/opt/zigbee2mqtt/lib/controller.js:228:14)
Oct 19 11:17:12 raspberrypi npm[9723]: at Zigbee.emit (events.js:198:13)
Oct 19 11:17:12 raspberrypi npm[9723]: at Controller.herdsman.on (/opt/zigbee2mqtt/lib/zigbee.js:56:52)
Oct 19 11:17:12 raspberrypi npm[9723]: at Controller.emit (events.js:198:13)
Oct 19 11:17:12 raspberrypi npm[9723]: at Controller.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/dist/controller/controller.js:405:22))
Looking at the code of z2m it seems it does that with the precompiled firmware since it does not have the temp sensor connected?
So far, all my attempts to manage have not been completely successful. Where can I find out what exactly to send to the topic "mqtt", to control the LED and WS2812 tape.
While I control only the relay, sending to the topic 'zigbee2mqtt/ZigUP1/set' <- ON or OFF.
I see pulses on the oscilloscope at the output of turning the polarized relay on or off. It's good.
But attempts to send to ".../set/led" lead to errors in zigbee2mqtt, but simply to "set" do not give a result.
There is no information and can not find - how to.
I ask for help.
Thanks.
Hi,
First of all, kudos for this project, it is really incredible!
I have a quick question.
Is it possible to use a different module for this project? I noticed you used E18-MS1-PCB module for this project. I have a GB2530 module: GB2530 Module
This module includes the CC2530 + RFX2401, can I use this module instead of E18-MS1-PCB?
Thanks!
hallo,
welche Aufgabe hat der 220µ/6V3/EEEFK0J221P Elko?
Grüße
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.