Commit Graph

213 Commits

Author SHA1 Message Date
79b2965553 Merge pull request #431 from openshwprojects/alpha
merge IR changes by btsimon
2022-11-06 09:30:34 +01:00
b7d873c8a0 add IREnable invert 0/1
IREnable invert 1 will cause the PWM to effectively be active high?
2022-11-05 10:22:38 +00:00
f3e0320f9e implement cmd IREnable.
IREnable RXTX 0/1 - enable/disable rx whilt tx.  default disabled.
IREnable [protocol name] 0/1 - enable/disable protocol RX.  default all enabled.
made many logs DEBUG.
You will get at least one log at INFO on RX.
2022-11-05 09:50:36 +00:00
3e87cc10cd Merge branch 'IRSendChanges' into irtxwhenrxdisabled 2022-11-05 08:18:07 +00:00
0895c416a8 added UCS1912 driver stub. Not called anywhere. 2022-11-05 08:02:41 +01:00
c23cf8ffbf IR Tx without IR RX 2022-11-04 18:44:09 +00:00
a2cfd5fdd5 Allow more ways to interpret IRSend args.
For IRsend command, allow like [IRsend NEC-0-1a] ,[IRsend NEC-0-1a-2], [IRsend NEC 0 1a], [IRsend NEC 0 1a 3]
2022-11-04 08:39:05 +00:00
1d367b5c73 FIX BL602 - BL602 doesn't have pin number 26 and setting that pin would crash - now the default pin indices of LED drivers are per-platform 2022-11-02 19:20:22 +01:00
79158f1398 BL602 - enable drivers in build 2022-11-02 16:06:49 +01:00
180f928107 SSDP don't ask for a port if no wifi
mod some logs
2022-11-02 09:10:51 +00:00
af9adec142 keep a list of obk SSDP devices, and make available on /obkdevicelist as a JSON array. 2022-11-01 21:16:39 +00:00
7c2881682c Merge branch 'openshwprojects:main' into main 2022-11-01 10:25:33 +01:00
012dc7574a DRV - MQTT_isReady bug fix. Removed warning. 2022-11-01 10:20:36 +01:00
172e452699 move DRV_SSDP_Active varibale to user_main to allow compile with DRV_SSDP.c excluded from build. 2022-11-01 07:51:12 +00:00
3c894c305f BK7231 specific functionality 2022-11-01 01:16:59 +01:00
121625c31c OTA - minor optimization
MQTT - handling OTA process. if OTA started MQTT is disconnected and stays idle.
     - Optimizing connection state machine, faster MQTT connect after Wifi connected.
DRV - handling OTA progress, Checking MQTT before publishing messages
NTP - handling OTA progress.
2022-10-31 23:33:02 +01:00
424e5a97d9 schedule restart for SSDP if it was running at wifi connect (e.g. in startup line....) 2022-10-30 21:30:50 +00:00
ad96b9f99c scripting example 4; dimmer1000 channel type; some stubs for tuyamcu power 2022-10-30 17:50:00 +01:00
a90efdf9fb Merge pull request #370 from btsimonh/DGRFixes
Device Group Fixes
2022-10-30 16:00:16 +01:00
31f3b3cfa3 Correct reading/writing of uint16 in message? May need byte swap?
Don't hear our own DGR multicasts messages, else we can loop.
Don't send DGR message if a result of one we recevied.
Cleanup sequence - always process as uint16.  deal with wrap, log skip.
Send messages twice with same sequence.
2022-10-30 09:15:54 +00:00
6aa332b56e add driver SSDP. This is NOT started by default. run cmd "startdriver SSDP" - and you device will appear in windows networking....
We COULD in the future 'hear' notify messages from other OBK devices, so that all devices could know about each other... or even send an MSEARCH.
2022-10-30 06:24:16 +00:00
11f097e36b bk_timer driver is already intiialised. Re-initialising kills N, so is probably also very bad on T 2022-10-29 09:33:02 +01:00
a80d75e704 Warning resolved - missign header added. 2022-10-28 09:07:56 +02:00
6a42e2b6fd DRV - BL09XX - block saving statistics, when OTA is in progress. Before reboot statistic will be save anywhere. 2022-10-28 04:16:48 +02:00
a171232dca DRV - BL09XX - JSON print unformatted. exceeded MQTT ring buff -> change SDK setup 2022-10-28 03:35:11 +02:00
ed3ac07e19 DRV - BL09XX - MQTT publish optimization. Without NTP daily stats skipped. 2022-10-27 21:03:17 +02:00
566bebca1e DRV - BL09XX - MQTT topic for daily stats update (today, yesterday, clear date) 2022-10-27 20:02:27 +02:00
c530c8cd10 DRV - BL09XX - added date/time when consumption statistics were cleared. 2022-10-27 14:53:02 +02:00
03deab5ee1 DRV - BL09XX - added timeout for data save. default 6 hours. 2022-10-27 03:51:04 +02:00
007df43f86 DRV - BL09XX - ResetCounters update 2022-10-27 01:40:23 +02:00
a30cb298e1 DRV - bug fix in daily stats. 2022-10-27 01:38:32 +02:00
d7d08db1e3 DRV - BL09XX - history calculation updated.
Warnings resolved.
2022-10-26 23:54:56 +02:00
6d86cdc3d7 DRV - EMetering data storing updates. 2022-10-26 22:09:24 +02:00
d71192e512 DRV - added limiter for max power output measurement. Added command for setting max limit and save threshold. 2022-10-26 22:09:24 +02:00
0573d8cd91 BL09XX - implemented saving of consumption history
HAL - Added fields for saving metring variables
OTA - added donwload progress in HTTP front page
MAIN - added Saving of metering status before reboot.
2022-10-26 22:08:17 +02:00
c84dddcb3b Merged changes from upstream
Updated usage of htprint255
Main - wifi state machine changes. Ping state machine changes.
Ping - added flag if ping is already started or not, added silent flag
2022-10-26 22:08:17 +02:00
d30b78db53 MQTT - topic for daily stats 2022-10-26 22:08:17 +02:00
73d31b7d9a BL09XX - HTTP plugin update. 2022-10-26 22:08:17 +02:00
e13901e2c5 BL09XX - driver HTTP plugin bug fix. 2022-10-26 22:08:17 +02:00
6fe708162c BL0937 - measurements refinement, added past seven days stats
BL09XX - HTTP plugin afdjustment, added new output doe daily stats.
DRV - updated NTP.
NTP - added HTTP plugin
HAL - added Wifi Disconnect command (TODO: other platforms)
MAIN - ping watchdog added wifi disconnect command after ping watchdog triggered
2022-10-26 22:08:17 +02:00
312d18110e DRV - log printing updated
MQTT - publish log - don't print large data blocks
2022-10-26 22:08:17 +02:00
0ba61a7a81 DRV - bug fixing for driver HTTP plugin driver list. 2022-10-26 22:08:17 +02:00
1a190c7976 Tokenizer now takes an argument to determine whether we alloc " in the strings 2022-10-26 07:11:11 +02:00
58cc3b5017 Merge pull request #330 from iprak/fix-for-none-device-class
Removed None
2022-10-25 11:56:37 +02:00
2970ec62fd Replace hprintf128 with hprintf255 in all files 2022-10-25 06:31:11 +01:00
449d66a2d0 Merge branch 'snprintf' into snprintfPR
# Conflicts:
#	src/driver/drv_bl_shared.c
2022-10-25 06:29:59 +01:00
6516205d37 Chore: replace many sprintf with snprintf. Only one was doubtful - 5 x %f into a small string? 2022-10-25 06:19:23 +01:00
a7f840c05d Removed None 2022-10-24 19:52:59 -05:00
b9825521d4 Sending unit in discovery 2022-10-23 10:34:05 -05:00
695bee41c2 Formatted 2022-10-23 10:29:18 -05:00