Code Monkey home page Code Monkey logo

fujihk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fujihk's Issues

fujiHk

Hello.
Hello, I have a compilation problem.

I have this error:

C: \ Users \ Dell \ Documents \ Arduino \ fuji-hk \ fuji-hk.ino: In function 'void homeSpanEventHandler (int32_t)':
fuji-hk: 491: 10: error: 'HOMESPAN_WIFI_CONNECTING' was not declared in this scope
case HOMESPAN_WIFI_CONNECTING:
^ ~~~~~~~~~~~~~~~~~~~~~~~
C: \ Users \ Dell \ Documents \ Arduino \ fuji-hk \ fuji-hk.ino: 491: 10: note: suggested alternative: 'LED_WIFI_CONNECTING'
case HOMESPAN_WIFI_CONNECTING:
^ ~~~~~~~~~~~~~~~~~~~~~~~
LED_WIFI_CONNECTING
fuji-hk: 499: 10: error: 'HOMESPAN_WIFI_CONNECTED' was not declared in this scope
case HOMESPAN_WIFI_CONNECTED:
^ ~~~~~~~~~~~~~~~~~~~~~~
C: \ Users \ Dell \ Documents \ Arduino \ fuji-hk \ fuji-hk.ino: 499: 10: note: suggested alternative: 'LED_WIFI_CONNECTING'
case HOMESPAN_WIFI_CONNECTED:
^ ~~~~~~~~~~~~~~~~~~~~~~

Do you know how to solve the problem?

Maybe you have a compiled version.
Is it possible to share?

greetings
Matthew

bin File does not work at all

Hi, I flashed the .bin via NodeMCU PyFlasher, the procedure seems to have been successful.

I disconnect and reconnect the Atom but when I try to run the procedure to start the SoftAP for pairing, the led doesn't flash and I don't see any AP to connect to.

So I thought I'd see from the serial monitor what was going on and that's what the Atom repeatedly spits out:

`rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:QIO, clock div:2
load:0x3fff0030,len:1184
load:0xddddcfcc,len:-808595987
1162 mmu set 00010000, pos 00010000
1162 mmu set 00020000, pos 00020000
1162 mmu set 00030000, pos 00030000
1162 mmu set 00040000, pos 00040000
1162 mmu set 00050000, pos 00050000
1162 mmu set 00060000, pos 00060000
1162 mmu set 00070000, pos 00070000
1162 mmu set 00080000, pos 00080000
1162 mmu set 00090000, pos 00090000
1162 mmu set 000a0000, pos 000a0000
1162 mmu set 000b0000, pos 000b0000
1162 mmu set 000c0000, pos 000c0000
1162 mmu set 000d0000, pos 000d0000
1162 mmu set 000e0000, pos 000e0000
1162 mmu set 000f0000, pos 000f0000
1162 mmu set 00100000, pos 00100000
1162 mmu set 00110000, pos 00110000
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:QIO, clock div:2
load:0x3fff0030,len:1184
load:0xddddcfcc,len:-808595987
1162 mmu set 00010000, pos 00010000
1162 mmu set 00020000, pos 00020000
1162 mmu set 00030000, pos 00030000
1162 mmu set 00040000, pos 00040000
1162 mmu set 00050000, pos 00050000
1162 mmu set 00060000, pos 00060000
1162 mmu set 00070000, pos 00070000
1162 mmu set 00080000, pos 00080000
1162 mmu set 00090000, pos 00090000
1162 mmu set 000a0000, pos 000a0000
1162 mmu set 000b0000, pos 000b0000
1162 mmu set 000c0000, pos 000c0000
1162 mmu set 000d0000, pos 000d0000
1162 mmu set 000e0000, pos 000e0000
1162 mmu set 000f0000, pos 000f0000
1162 mmu set 00100000, pos 00100000
1162 mmu set 00110000, pos 00110000
ets Jun 8 2016 00:22:57`

Sorry, newbie here … a few basic questions

I apologize if it’s not correct protocol for even posting such questions under ‘issues’. I was excited to see this project but it will push my lack of skills around coding and even basic electronics to the limit. Before I even attempt any of it (even though I have purchased the basic components already, LOL) can anyone let me know whether it will work with my setup? I have a Fujitsu 208737 heat pump. It already has an a WLAN adapter which works with FGLair app on iOS. The step that is of greatest concern to me is ‘Connect the M5Atom to the AirConditioner via the 3-wire interface (see example circuit) or via the com connector on the indoor unit (will need a logic level converter)‘. Any clarification around that (assuming that it’s even applicable to my setup) would be appreciated.

Unable to add accessory, the setup code is incorrect

Hi, I have configured everything as per your instructions but, I have changed the configuration code and checked that the terminal returns the correct code I entered.
When I try to do the procedure to add the accessory, both iPhone and iPad (iOS 16 and iOS 15.7 respectively) return the error "Unable to add accessory, the setup code is incorrect" and the terminal tells me "SRP Proof Verification Failed".

Am I doing something wrong? Can you help me out?

Nearly working - commands not reaching controller

Hi - thanks for the amazing project, I wonder if you would mind advising me on where to go from here please?

I have a Lolin D32 esp board with LIN transciever and buck regulator as usual but most importantly, this exact hardware works with the derived project https://github.com/FujiHeatPump/esphome-fujitsu. All i did to try out the native homekit solution from this project is re-flash it, I didn't change any connections.

I want to try native Homekit now, so with your fine project, all I changed is in the Arduino IDE the board of course, and the serial port pins for my already built hardware:

#define RX_PIN 16 (RXD2)
#define TX_PIN 17 (TXD2)

NOTE I do not have a neopixel connected in case that's important.

I can pair the unit in homekit (actually took a few attempts, probably not related), but get no control or status, continually get "no response". HVAC continues to work fine on the wall panel/remote, no errors or anything.

Would you mind looking at the logs below and any advice on how to troubleshoot?

Maybe it is to do with "UNSUPPORTED MODE IN convertACModeToHKMode 0! RETURNING 0" ?

I have triple checked that my LIN chip RX pin is connected to GPIO16 and TX to GPIO17 as it seems everything works but it's not communicating to the Fujitsu remote. Could the pins be updated elsewhere or do the logs tell you something different is the issue....?

I believe that the lines "update(): coolingThresholdTemperature -> using midpoint 21C instead" show the commands i am trying to give from Home app are getting to the device, but it's not communicating to the HVAC. I could be on totally the wrong path though :-)

Everything has been power cycled many times. The esp board is powered via regulator from the remote's 12V line.

It must be something simple, it's the same schematic as shown on your pages, with only a difference in serial port pins.


Device Name:      Fujitsu AirConditioner

Init FujitsuHK
UNSUPPORTED MODE IN convertACModeToHKMode 0! RETURNING 0
Finished setup

*** HomeSpan Info ***

‚û§ Accessory:  AID=1
   ‚ûü Service AccessoryInformation:  IID=1, UUID="3E"
      ‚á® Characteristic Name("Fujitsu AirConditioner D92DE6B4"):  IID=2, UUID="23", Perms=PR
      ‚á® Characteristic Manufacturer("Fujitsu"):  IID=3, UUID="20", Perms=PR
      ‚á® Characteristic SerialNumber("D92DE6B4"):  IID=4, UUID="30", Perms=PR
      ‚á® Characteristic Model("Fuji-HK"):  IID=5, UUID="21", Perms=PR
      ‚á® Characteristic FirmwareRevision("0.2"):  IID=6, UUID="52", Perms=PR+EV
      ‚á® Characteristic Identify(0):  IID=7, UUID="14", Perms=PW
   ‚ûü Service HAPProtocolInformation:  IID=8, UUID="A2"
      ‚á® Characteristic Version("1.1.0"):  IID=9, UUID="37", Perms=PR
   ‚ûü Service HeaterCooler:  IID=10, UUID="BC"
      ‚á® Characteristic Active(0):  IID=11, UUID="B0", Perms=PR+PW+EV, Range=[0,1]
      ‚á® Characteristic CurrentTemperature(22):  IID=12, UUID="11", Perms=PR+EV, Custom-Range=[0,100,1]
      ‚á® Characteristic CurrentHeaterCoolerState(1):  IID=13, UUID="B1", Perms=PR+EV, Range=[0,3]
      ‚á® Characteristic TargetHeaterCoolerState(0):  IID=14, UUID="B2", Perms=PR+PW+EV, Range=[0,2]
      ‚á® Characteristic CoolingThresholdTemperature(22):  IID=15, UUID="D", Perms=PR+PW+EV, Custom-Range=[16,30,1]
      ‚á® Characteristic HeatingThresholdTemperature(22):  IID=16, UUID="12", Perms=PR+PW+EV, Custom-Range=[16,30,1]
      ‚á® Characteristic TemperatureDisplayUnits(0):  IID=17, UUID="36", Perms=PR+PW+EV, Range=[0,1]
      ‚á® Characteristic RotationSpeed(0):  IID=18, UUID="29", Perms=PR+PW+EV, Custom-Range=[0,100,25]

Configured as Bridge: NO

Database Validation:  Warnings=0, Errors=0

Service                             UUID         AID  IID  Update  Loop  Button  Linked Services
------------------------------  --------  ----------  ---  ------  ----  ------  ---------------
AccessoryInformation                  3E           1    1      NO    NO      NO  -
HAPProtocolInformation                A2           1    8      NO    NO      NO  -
HeaterCooler                          BC           1   10     YES   YES      NO  -

*** End Info ***

Accessory ID:      2D:7C:8E:A7:D2:FC                               LTPK: C9106E26D8C85B31CDCF90A15CDC234B43F6DF94D8CE311A35A58B016BBA5003
Paired Controller: F4BA6794-981A-4376-AA83-D5C147D682C5   (admin)  LTPK: C2A77EADD77E931167D8F34AB11B42EB2C0A9C903D7CF68F63CCABE473BCB132
Paired Controller: 2209C4CB-7D36-4F16-B417-DCC52BB52790 (regular)  LTPK: E94239F1B2A434D57E7500495814A7191C38D6B57C7934CB7EE956E4153CED35
Paired Controller: 130873E1-C06E-4075-AAA0-DD5F777785D5 (regular)  LTPK: CBD9AFDB816E44B72963E7FF039EB9813E3AC09EBDB3B18EBE9F40E6DA7F42FF

Accessory configuration number: 1

Fujitsu AirConditioner is READY!

Trying to connect to MYWIFI.  Waiting 1 sec...
WiFi Connected!  IP Address = 192.168.0.69

Starting MDNS...

HostName:      FUJIAC-2D7C8EA7D2FC.local:80
Display Name:  Fujitsu AirConditioner
Model Name:    FUJIAC
Setup ID:      FUJI

Starting HAP Server on port 80 supporting 14 simultaneous HomeKit Controller Connections...


update(): coolingThresholdTemperature -> using midpoint 21C instead
update(): coolingThresholdTemperature -> using midpoint 21C instead
update(): coolingThresholdTemperature -> using midpoint 20C instead
update(): coolingThresholdTemperature -> using midpoint 20C instead

************************************************************
Welcome to HomeSpan!
Apple HomeKit for the Espressif ESP-32 WROOM and Arduino IDE
************************************************************

** Please ensure serial monitor is set to transmit <newlines>

Message Logs:     Level 0
Status LED:       Pin 27  (Auto Off=30 sec)
Device Control:   Pin 39
Sketch Version:   n/a
HomeSpan Version: 1.8.0
Arduino-ESP Ver.: 2.0.11
ESP-IDF Version:  4.4.5
ESP32 Chip:       ESP32-D0WD Rev 1 dual-core 4MB Flash
ESP32 Board:      d32
PWM Resources:    16 channels, 8 timers, max 20-bit duty resolution
Sodium Version:   1.0.12-idf  Lib 9.4
MbedTLS Version:  mbed TLS 2.28.3
Sketch Compiled:  Nov  8 2023 20:05:52
Partition:        app0
MAC Address:      B4:E6:2D:D9:71:05

Device Name:      Fujitsu AirConditioner

Init FujitsuHK
UNSUPPORTED MODE IN convertACModeToHKMode 0! RETURNING 0
Finished setup

*** HomeSpan Info ***

‚û§ Accessory:  AID=1
   ‚ûü Service AccessoryInformation:  IID=1, UUID="3E"
      ‚á® Characteristic Name("Fujitsu AirConditioner D92DE6B4"):  IID=2, UUID="23", Perms=PR
      ‚á® Characteristic Manufacturer("Fujitsu"):  IID=3, UUID="20", Perms=PR
      ‚á® Characteristic SerialNumber("D92DE6B4"):  IID=4, UUID="30", Perms=PR
      ‚á® Characteristic Model("Fuji-HK"):  IID=5, UUID="21", Perms=PR
      ‚á® Characteristic FirmwareRevision("0.2"):  IID=6, UUID="52", Perms=PR+EV
      ‚á® Characteristic Identify(0):  IID=7, UUID="14", Perms=PW
   ‚ûü Service HAPProtocolInformation:  IID=8, UUID="A2"
      ‚á® Characteristic Version("1.1.0"):  IID=9, UUID="37", Perms=PR
   ‚ûü Service HeaterCooler:  IID=10, UUID="BC"
      ‚á® Characteristic Active(0):  IID=11, UUID="B0", Perms=PR+PW+EV, Range=[0,1]
      ‚á® Characteristic CurrentTemperature(22):  IID=12, UUID="11", Perms=PR+EV, Custom-Range=[0,100,1]
      ‚á® Characteristic CurrentHeaterCoolerState(1):  IID=13, UUID="B1", Perms=PR+EV, Range=[0,3]
      ‚á® Characteristic TargetHeaterCoolerState(0):  IID=14, UUID="B2", Perms=PR+PW+EV, Range=[0,2]
      ‚á® Characteristic CoolingThresholdTemperature(22):  IID=15, UUID="D", Perms=PR+PW+EV, Custom-Range=[16,30,1]
      ‚á® Characteristic HeatingThresholdTemperature(22):  IID=16, UUID="12", Perms=PR+PW+EV, Custom-Range=[16,30,1]
      ‚á® Characteristic TemperatureDisplayUnits(0):  IID=17, UUID="36", Perms=PR+PW+EV, Range=[0,1]
      ‚á® Characteristic RotationSpeed(0):  IID=18, UUID="29", Perms=PR+PW+EV, Custom-Range=[0,100,25]

Configured as Bridge: NO

Database Validation:  Warnings=0, Errors=0

Service                             UUID         AID  IID  Update  Loop  Button  Linked Services
------------------------------  --------  ----------  ---  ------  ----  ------  ---------------
AccessoryInformation                  3E           1    1      NO    NO      NO  -
HAPProtocolInformation                A2           1    8      NO    NO      NO  -
HeaterCooler                          BC           1   10     YES   YES      NO  -

*** End Info ***

Accessory ID:      2D:7C:8E:A7:D2:FC                               LTPK: C9106E26D8C85B31CDCF90A15CDC234B43F6DF94D8CE311A35A58B016BBA5003
Paired Controller: F4BA6794-981A-4376-AA83-D5C147D682C5   (admin)  LTPK: C2A77EADD77E931167D8F34AB11B42EB2C0A9C903D7CF68F63CCABE473BCB132
Paired Controller: 2209C4CB-7D36-4F16-B417-DCC52BB52790 (regular)  LTPK: E94239F1B2A434D57E7500495814A7191C38D6B57C7934CB7EE956E4153CED35
Paired Controller: 130873E1-C06E-4075-AAA0-DD5F777785D5 (regular)  LTPK: CBD9AFDB816E44B72963E7FF039EB9813E3AC09EBDB3B18EBE9F40E6DA7F42FF

Accessory configuration number: 1

Fujitsu AirConditioner is READY!

Trying to connect to MYWIFI.  Waiting 1 sec...
WiFi Connected!  IP Address = 192.168.0.69

Starting MDNS...

HostName:      FUJIAC-2D7C8EA7D2FC.local:80
Display Name:  Fujitsu AirConditioner
Model Name:    FUJIAC
Setup ID:      FUJI

Starting HAP Server on port 80 supporting 14 simultaneous HomeKit Controller Connections...



*** Log Level set to 2

=======================================
** Client #0 Connected: (12 sec) 192.168.0.83 on Socket 2/16

<<<<<<<<< 192.168.0.83 <<<<<<<<<
POST /pair-verify HTTP/1.1
Host: Fujitsu\032AirConditioner._hap._tcp.local
Content-Length: 37
Content-Type: application/pairing+tlv8
------------ END BODY! ------------
STATE(1) 01
PUBKEY(32) F97ED861FD0CA3A3B6648C2A403BA923FCB86F58868467F500BA382B605E8C12
------------ END TLVS! ------------
In Pair Verify #0 (192.168.0.83)...Found <M1>
------- ENCRYPTING SUB-TLVS -------
SIGNATURE(64) C35CF588A06050CBA588312283E39E46BF06CE75D4A2C8FB40B1F172ECDE6CBEEF173092DD45B36B64EA662AF266A661E27EEA205A14E3F12F9B2458989C1C01
IDENTIFIER(17) 32443A37433A38453A41373A44323A4643
---------- END SUB-TLVS! ----------

>>>>>>>>>> 192.168.0.83 >>>>>>>>>>
HTTP/1.1 200 OK
Content-Type: application/pairing+tlv8
Content-Length: 140

STATE(1) 02
PUBKEY(32) C1EDBA9530B3E3F1A658177D24EDDFABE633404F5997FE6AEFFE67F2D73FCF55
ENC.DATA(101) C511B8D29713AAF126EB2761F089D31E8320B4C503E12E72FC916AB62E8DC41367E535B651BC5348A23C40B732699D2AC04C27C2B2078BBDF666759759FDDA7CCFFF1445E06F9ADEC030EB4E5BF97630547D3C84BBF35674C321350EDA8AC8E869A0FB9AF6
------------ SENT! --------------

<<<<<<<<< 192.168.0.83 <<<<<<<<<
POST /pair-verify HTTP/1.1
Host: Fujitsu\032AirConditioner._hap._tcp.local
Content-Length: 125
Content-Type: application/pairing+tlv8
------------ END BODY! ------------
STATE(1) 03
ENC.DATA(120) B5880393DB13C6A07A194362FCAC7F17DBC479961A50E0CC2398E1F847A18EB9EE43C59F52A9CCF7E20737ADFDB1E08D3BA060DB0029D2F5687FCE99325691457BC8B04E76F9752481367D93B671F70910F8D65E96E6C858AC9329A5C1C6EAF01284FB4CBF24B2F051677F56E78188A466152ADE5A67321E
------------ END TLVS! ------------
In Pair Verify #0 (192.168.0.83)...Found <M3>
SIGNATURE(64) 9D463EC9F47141519D06DA50EBF83EFC9827F3EAD901CAF5DEA72DEB0BDA6B9DD21CCDFE027190D7509BEE770D342131EF67EDDC94C5BDC5F371793329DC9F02
IDENTIFIER(36) 46344241363739342D393831412D343337362D414138332D443543313437443638324335
------- END DECRYPTED TLVS! -------

>>>>>>>>>> 192.168.0.83 >>>>>>>>>>
HTTP/1.1 200 OK
Content-Type: application/pairing+tlv8
Content-Length: 3

STATE(1) 04
------------ SENT! --------------

*** SESSION VERIFICATION COMPLETE *** 






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.