Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RBC-AMS55E reporting 01 as master and not 00 as expected #51

Open
issalig opened this issue Jan 19, 2025 · 5 comments
Open

RBC-AMS55E reporting 01 as master and not 00 as expected #51

issalig opened this issue Jan 19, 2025 · 5 comments

Comments

@issalig
Copy link
Owner

issalig commented Jan 19, 2025

Discussed in #50

Originally posted by Gerhard1968 January 19, 2025
Hello friends, i build the project with the pcb from issalig and connect to my wall controller RBC-AMS55E. I can read the codes on the web side. It shows me the same setting of the RBC-AMS55E on the webside, but its not able to send the commands from webside to the RBC-AMS55E.
Its a different protocol? I see it´s a little differenc in the first and last bit.
And sorry about my bad english!

DebugInfo1
DebugInfo1_ON
DebugInfo2
WebInterface

@issalig
Copy link
Owner Author

issalig commented Jan 19, 2025

Interesting, it seems that your master identifies as 01 instead of 00 in my setup
so instead of 00 FE 10 02 80 8A E6 you have 01 FE 10 02 80 8A E7

Maybe changing that line to #define MASTER 0x01 could do the trick. Not sure if MASTER is used in all the commands or I jsut hardcoded 0x00 value (in such a case you can replace it by MASTER)

#define MASTER 0x00

@issalig
Copy link
Owner Author

issalig commented Jan 19, 2025

oooops, I have checked the code and it is always hardcoded (toshiba_serial.hpp), I should change it but in the meantime you can replace all the 0x00 by 0x01

For example power functions should be like this

void air_set_power_on(air_status_t *air) {
byte data[] = {REMOTE, MASTER, 0x11, 0x03, 0x08, 0x41, 0x03, 0x18};
air_send_data(air, data, sizeof(data));
}

void air_set_power_off(air_status_t *air) {
byte data[] = {REMOTE, MASTER, 0x11, 0x03, 0x08, 0x41, 0x02, 0x19};
air_send_data(air, data, sizeof(data));
}

@Gerhard1968
Copy link

only in toshiba_serial.h ?

@issalig
Copy link
Owner Author

issalig commented Jan 21, 2025

and the functions in toshiba_serial.hpp

air_set_power_on and the rest. byte 0 is normally source and byte 1 is destination

void air_set_power_on(air_status_t *air) {

@Gerhard1968
Copy link

Sorry i am a hardware type an not software. I change 0x00 to 0x01 but now ich get allways an error:

  • I change nothing in the Arduino IDE 2.3.2
  • I use a new Wemos D1

In file included from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:42,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\HP EliteDesk\Documents\Arduino\toshiba_air_cond-master\air_copy_20250122164919\air_copy_20250122164919.ino:77:
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp: In instantiation of 'static void ArduinoJson::V730PB22::Converter<T, Enable>::toJson(const T&, ArduinoJson::V730PB22::JsonVariant) [with T = char []; Enable = void]':
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBaseImpl.hpp:139:21: required from 'bool ArduinoJson::V730PB22::detail::VariantRefBase::doSet(const T&, ArduinoJson::V730PB22::detail::false_type) const [with TConverter = ArduinoJson::V730PB22::Converter<char [], void>; T = char []; TDerived = ArduinoJson::V730PB22::detail::MemberProxy<ArduinoJson::V730PB22::JsonDocument&, ArduinoJson::V730PB22::detail::RamString>; ArduinoJson::V730PB22::detail::false_type = ArduinoJson::V730PB22::detail::integral_constant<bool, false>]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:298:29: required from 'bool ArduinoJson::V730PB22::detail::VariantRefBase::doSet(const T&) const [with TConverter = ArduinoJson::V730PB22::Converter<char [], void>; T = char []; TDerived = ArduinoJson::V730PB22::detail::MemberProxy<ArduinoJson::V730PB22::JsonDocument&, ArduinoJson::V730PB22::detail::RamString>]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:82:46: required from 'bool ArduinoJson::V730PB22::detail::VariantRefBase::set(const T&) const [with T = char []; TDerived = ArduinoJson::V730PB22::detail::MemberProxy<ArduinoJson::V730PB22::JsonDocument&, ArduinoJson::V730PB22::detail::RamString>]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Object/MemberProxy.hpp:38:14: required from 'ArduinoJson::V730PB22::detail::MemberProxy< , >& ArduinoJson::V730PB22::detail::MemberProxy< , >::operator=(const T&) [with T = char []; TUpstream = ArduinoJson::V730PB22::JsonDocument&; AdaptedString = ArduinoJson::V730PB22::detail::RamString]'
C:\Users\HP EliteDesk\Documents\Arduino\toshiba_air_cond-master\air_copy_20250122164919\process_request.hpp:155:24: required from here
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:30:18: error: no matching function for call to 'convertToJson(const char [], ArduinoJson::V730PB22::JsonVariant&)'
30 | convertToJson(src, dst); // Error here? See https://arduinojson.org/v7/unsupported-set/
| ~~~~~~~~~~~~~^~~~~~~~~~
In file included from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:33,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\HP EliteDesk\Documents\Arduino\toshiba_air_cond-master\air_copy_20250122164919\air_copy_20250122164919.ino:77:
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Document/JsonDocument.hpp:422:13: note: candidate: 'void ArduinoJson::V730PB22::convertToJson(const ArduinoJson::V730PB22::JsonDocument&, ArduinoJson::V730PB22::JsonVariant)'
422 | inline void convertToJson(const JsonDocument& src, JsonVariant dst) {
| ^~~~~~~~~~~~~
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Document/JsonDocument.hpp:422:47: note: no known conversion for argument 1 from 'const char []' to 'const ArduinoJson::V730PB22::JsonDocument&'
422 | inline void convertToJson(const JsonDocument& src, JsonVariant dst) {
| ~~~~~~~~~~~~~~~~~~~~^~~
In file included from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:42,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\HP EliteDesk\Documents\Arduino\toshiba_air_cond-master\air_copy_20250122164919\air_copy_20250122164919.ino:77:
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:261:13: note: candidate: 'void ArduinoJson::V730PB22::convertToJson(const Printable&, ArduinoJson::V730PB22::JsonVariant)'
261 | inline void convertToJson(const ::Printable& src, JsonVariant dst) {
| ^~~~~~~~~~~~~
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:261:46: note: no known conversion for argument 1 from 'const char []' to 'const Printable&'
261 | inline void convertToJson(const ::Printable& src, JsonVariant dst) {
| ~~~~~~~~~~~~~~~~~~~^~~
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:191:56: note: candidate: 'template ArduinoJson::V730PB22::detail::enable_if_t<ArduinoJson::V730PB22::detail::IsString::value> ArduinoJson::V730PB22::convertToJson(const T&, ArduinoJson::V730PB22::JsonVariant)'
191 | inline detail::enable_if_t<detail::IsString::value> convertToJson(
| ^~~~~~~~~~~~~
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:191:56: note: template argument deduction/substitution failed:
In file included from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Polyfills/type_traits.hpp:9,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Polyfills/utility.hpp:7,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Memory/MemoryPoolList.hpp:9,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Memory/ResourceManager.hpp:8,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/JsonVariantConst.hpp:10,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:9,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/ElementProxy.hpp:7,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/JsonArray.hpp:7,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:29,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\HP EliteDesk\Documents\Arduino\toshiba_air_cond-master\air_copy_20250122164919\air_copy_20250122164919.ino:77:
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Polyfills/type_traits/enable_if.hpp: In substitution of 'template<bool Condition, class T> using enable_if_t = typename ArduinoJson::V730PB22::detail::enable_if::type [with bool Condition = false; T = void]':
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:191:56: required by substitution of 'template ArduinoJson::V730PB22::detail::enable_if_t<ArduinoJson::V730PB22::detail::IsString::value> ArduinoJson::V730PB22::convertToJson(const T&, ArduinoJson::V730PB22::JsonVariant) [with T = char []]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:30:18: required from 'static void ArduinoJson::V730PB22::Converter<T, Enable>::toJson(const T&, ArduinoJson::V730PB22::JsonVariant) [with T = char []; Enable = void]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBaseImpl.hpp:139:21: required from 'bool ArduinoJson::V730PB22::detail::VariantRefBase::doSet(const T&, ArduinoJson::V730PB22::detail::false_type) const [with TConverter = ArduinoJson::V730PB22::Converter<char [], void>; T = char []; TDerived = ArduinoJson::V730PB22::detail::MemberProxy<ArduinoJson::V730PB22::JsonDocument&, ArduinoJson::V730PB22::detail::RamString>; ArduinoJson::V730PB22::detail::false_type = ArduinoJson::V730PB22::detail::integral_constant<bool, false>]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:298:29: required from 'bool ArduinoJson::V730PB22::detail::VariantRefBase::doSet(const T&) const [with TConverter = ArduinoJson::V730PB22::Converter<char [], void>; T = char []; TDerived = ArduinoJson::V730PB22::detail::MemberProxy<ArduinoJson::V730PB22::JsonDocument&, ArduinoJson::V730PB22::detail::RamString>]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:82:46: required from 'bool ArduinoJson::V730PB22::detail::VariantRefBase::set(const T&) const [with T = char []; TDerived = ArduinoJson::V730PB22::detail::MemberProxy<ArduinoJson::V730PB22::JsonDocument&, ArduinoJson::V730PB22::detail::RamString>]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Object/MemberProxy.hpp:38:14: required from 'ArduinoJson::V730PB22::detail::MemberProxy< , >& ArduinoJson::V730PB22::detail::MemberProxy< , >::operator=(const T&) [with T = char []; TUpstream = ArduinoJson::V730PB22::JsonDocument&; AdaptedString = ArduinoJson::V730PB22::detail::RamString]'
C:\Users\HP EliteDesk\Documents\Arduino\toshiba_air_cond-master\air_copy_20250122164919\process_request.hpp:155:24: required from here
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Polyfills/type_traits/enable_if.hpp:21:7: error: no type named 'type' in 'struct ArduinoJson::V730PB22::detail::enable_if<false, void>'
21 | using enable_if_t = typename enable_if<Condition, T>::type;
| ^~~~~~~~~~~
In file included from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:46,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\HP EliteDesk\Documents\Arduino\toshiba_air_cond-master\air_copy_20250122164919\air_copy_20250122164919.ino:77:
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp: In instantiation of 'static void ArduinoJson::V730PB22::Converter<T, Enable>::toJson(const T&, ArduinoJson::V730PB22::JsonVariant) [with T = char []; Enable = void]':
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBaseImpl.hpp:139:21: required from 'bool ArduinoJson::V730PB22::detail::VariantRefBase::doSet(const T&, ArduinoJson::V730PB22::detail::false_type) const [with TConverter = ArduinoJson::V730PB22::Converter<char [], void>; T = char []; TDerived = ArduinoJson::V730PB22::detail::MemberProxy<ArduinoJson::V730PB22::JsonDocument&, ArduinoJson::V730PB22::detail::RamString>; ArduinoJson::V730PB22::detail::false_type = ArduinoJson::V730PB22::detail::integral_constant<bool, false>]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:298:29: required from 'bool ArduinoJson::V730PB22::detail::VariantRefBase::doSet(const T&) const [with TConverter = ArduinoJson::V730PB22::Converter<char [], void>; T = char []; TDerived = ArduinoJson::V730PB22::detail::MemberProxy<ArduinoJson::V730PB22::JsonDocument&, ArduinoJson::V730PB22::detail::RamString>]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:82:46: required from 'bool ArduinoJson::V730PB22::detail::VariantRefBase::set(const T&) const [with T = char []; TDerived = ArduinoJson::V730PB22::detail::MemberProxy<ArduinoJson::V730PB22::JsonDocument&, ArduinoJson::V730PB22::detail::RamString>]'
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Object/MemberProxy.hpp:38:14: required from 'ArduinoJson::V730PB22::detail::MemberProxy< , >& ArduinoJson::V730PB22::detail::MemberProxy< , >::operator=(const T&) [with T = char []; TUpstream = ArduinoJson::V730PB22::JsonDocument&; AdaptedString = ArduinoJson::V730PB22::detail::RamString]'
C:\Users\HP EliteDesk\Documents\Arduino\toshiba_air_cond-master\air_copy_20250122164919\process_request.hpp:155:24: required from here
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBaseImpl.hpp:64:13: note: candidate: 'template void ArduinoJson::V730PB22::detail::convertToJson(const ArduinoJson::V730PB22::detail::VariantRefBase&, ArduinoJson::V730PB22::JsonVariant)'
64 | inline void convertToJson(const VariantRefBase& src,
| ^~~~~~~~~~~~~
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBaseImpl.hpp:64:13: note: template argument deduction/substitution failed:
In file included from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:42,
from c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\HP EliteDesk\Documents\Arduino\toshiba_air_cond-master\air_copy_20250122164919\air_copy_20250122164919.ino:77:
c:\Users\HP EliteDesk\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:30:18: note: mismatched types 'const ArduinoJson::V730PB22::detail::VariantRefBase' and 'const char []'
30 | convertToJson(src, dst); // Error here? See https://arduinojson.org/v7/unsupported-set/
| ~~~~~~~~~~~~~^~~~~~~~~~
Mehrere Bibliotheken wurden für "SoftwareSerial.h" gefunden
Benutzt: C:\Users\HP EliteDesk\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\SoftwareSerial
Nicht benutzt: C:\Users\HP EliteDesk\Documents\Arduino\libraries\EspSoftwareSerial
exit status 1

Compilation error: exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants