I managed to create a terminal version with fast dumping, but changing the baudrate in code doesn't work for some reason. If changed manually in terminal, it works fine.
Binary attached. Protocol is the same, 512 bytes of flash + 2 bytes crc.
fdump [addr] [size]
Delay before read output is about 2 seconds
Writing/erase should work as well.
https://github.com/NonPIayerCharacter/OpenLN882H/tree/_ramcode
[postid:7bfc69fcbe][/postid:7bfc69fcbe]
Nothing really major. We had v2.1_rc1, this one is v2.1_rc5.
Wifi libs update, pvPortRealloc, pwm demo update (perhaps it will be possible to use original driver, instead of my reimplementation) etc.
Plus i enabled -Os, so binary should be lighter.
In v2.1_rc2 "Enhance the robustness of WiFi retransmission in extreme interference environment"
[postid:f4387a6116][/postid:f4387a6116]
We don't "have" ADC in OBK.
In code, we use ADC channel 0. The one used for internal temperature and wifi calibration. For everything.
Added after 12 [minutes]:
It boots. Version is 1724_merge_a7d75940edc4
All tests are successful.
I remember there was a problem with long startup command? I wonder if it fixed now.
I remember there was a problem with long startup command? I wonder if it fixed now
Vaguely rings a bell but I may be thinking of most recent experience with long DS18B20 full driver startup command before @max4elektroda revised to make shorter. I will check maximum length when home
Also, I am preparing for release of our LN882H util, so I can move to adding it to Easy Flasher, but I have one question - @insmod how did you find out which offset has baud rate at the build RAM code? Did you just search for constant in bin code, did you decompile it with Ghidra, or is Keil creating some kind of link/debug file?
>>21612107 It was a self-compiled binary.
I then simply recompiled it with a different baud rate and then ran compare in hex editor.
No tests on PR were run, other that it simply boots and connects to wifi.
Binary in https://www.elektroda.com/rtvforum/topic4096854-150.html#21609680 is different, it uses a normal terminal interface, but adapted to dump raw. Meaning it can dump at offset, variable baud rate, read and write without reset etc.
But, i encountered a problem with changing baud rate in tool. Tool hanged. If baud rate is changed in terminal, it worked fine.
When AP is disabled, disconnecting OpenLN, LN constantly scans and displays all nearby APs over and over. Upon AP re-enable it connects again very quickly.
In WPA2-only and then in WPA2/WPA3 the behaviour is the same for successful connection and then scanning and re-connect after AP disappears.
There are several ways to answer your question with: "Yes, you"
If you have all development requiremnts on your PC, you only need to clone the repository,
Then change "src/obk_config.h" to contain
"#define ENABLE_DRIVER_SHT3X 1"
under
"#elif PLATFORM_LN882H"
"make OpenLN882H" will then build it.
If you don't have the needed environment, but a git account, you, can "build it online", if not, you can after you made an account The simplest way is to do it as laid out here:
https://www.elektroda.com/rtvforum/topic4082682.html#21275413 In the lower part after it shows an easy way to do "online Builds" in your own repository - no need for an PR in the OpenBeken repository.
Fork the git and make your own branch
Make sure, on "Action" tab, you allow workflows:
Assuming this is your first approach, you will need to activate "workflows" once:
So open "your" fork and as the very first step go to the "Actions" tab.
If you read: "Workflows aren’t being run on this forked repository":
Allow workflows with the button "I understand my workflows, go ahead and enable them".
In your branch, as above, change "obk_config.h" to contain
"#define ENABLE_DRIVER_SHT3X 1"
under
"#elif PLATFORM_LN882H"
and commit the change.
Under Actions tab wait until LN882H is built, then go to "summary" and download the firmware.
Or, even simpler, let someone do it for you and take the firmware attached
The discussion centers on flashing the LN882H (specifically LN882HKI) module using open-source tools and firmware such as OpenBeken and OpenBK7231T_App, with detailed guides and video tutorials available. Flashing involves grounding the BOOT pin and using UART communication, which employs ASCII commands and the YMODEM protocol for data transfer. Several tools have been developed and shared, including LN882Loader (Linux-based) and Windows GUI wrappers, with ongoing improvements to support faster flash reading and dumping via commands like "fdump." Users report challenges with UART adapters, power supply stability, and correct COM port usage, highlighting the importance of proper hardware setup (e.g., CH340G vs. FTDI232 UART adapters). SSDP support and Home Assistant integration are discussed, with SSDP requiring IGMP flag enabling and driver activation in firmware. GPIO pin behavior and limitations are examined, noting that certain pins (A13 to B2) are reserved for QSPI flash and should not be used as GPIO outputs. Firmware versions and SDK updates are tracked, with reverse engineering efforts revealing internal flash structures and configuration data. WiFi stability issues on LN882H modules are reported, potentially linked to power supply quality or environmental factors, distinct from BK7231N platform behavior. Pinout details for LN882HK1 modules are clarified, identifying UART TX and RX pins and the BOOT pin for flashing mode entry. Overall, the community collaborates on improving flashing tools, firmware features, and hardware understanding to enable cloud-free operation and integration with smart home systems. Summary generated by the language model.