I have both the GPS Unit and the GPS module. Both give incorrect readings using UIFlow. Why is this the case?
Posts made by dsrc12
RE: Downloading updates - fails
@zontex I am in Australia. I also had problems with downloads yesterday - extremely slow download speeds and often downloading just hung. Occasionally core firmware downloads would get accepted by M5Burner after 10 attempts but drivers for the latest M5Stack cores could not be updated from the Arduino IDE using the Board Manager with a reference to 'M5Stack'. At the end of attempting downloads if it got that far it produced a CRC error and the Arduino IDE abandoned it.
Today everything changed - downloads were fast, only one CRC error but a second download was successful. On a second Windows PC the first download was successful. I now have the latest drivers on my Arduino IDE for all M5Stack Cores and I have the latest firmware versions. I could develop test software for Fire, Core 2 and Core Ink using UIFlow IDE on Windows and downloaded onto all of these platforms but I was only able to execute code - Fire. While Core Ink accepted my firmware it would not execute it. Both Core Ink and Core 2 are hard to control compared to Fire and I could only get my firmware to download and execute on Fire.
I suggest that M5Stack do more alpha testing with users from a few countries before officially announcing a new version. This is a regular issue with M5Stack and happens after each new version is released. While these failures were occurring I could not do any software development on M5Stack from Arduino IDE to UIFlow.
RE: UIFlow 1.6.6
@m5stack I had problems downloading firmware updates for cores and drivers for the Arduino IDE over the last 5 days but today it all went well. All downloads worked and my test code on Fire also worked. I was able to download the latest version for Core Ink: 188.8.131.52 and it was able to connect and accept firmware from my Windows PC UIFlow IDE on-line (V1.6.6) but it would not execute any simple programs on Core Ink. It had problems with Core 2 and ended up abandoned it and completed my latest projects with Fire - it is a good stable platform and works with the latest firmware (1.6.6).
RE: ECG Module code
@dsrc12: I have now got this to work and it works best if I discount the USB link to Fire. The code I had difficult understanding is based on a C++ Ternary Operator in C. Returns either ECG_Data_LENGTH if data equals 0xAA or ECG_IDLE if false. At least this is a start. Still need to decode the meaning of the parameters.
Downloading updates - fails
The download speed from M5Stack has dramatically worsened in the past two weeks. While I can still download firmware to core devices like Fire and Core 2 it often fails in the first attempt and it can take up to three attempts to get the download. It is now impossible to install Board Manager drivers under the Arduino IDE for M5Stack processors. I tried ten times and it failed 10 times - for example the 45MB M5Stack board Manager files only reached 10MB and refused to continue. I have excellent internet speeds and have no problems in downloading from elsewhere. I repeated the download and update procedures on another Windows 10 computer and had the same problems. On starting the Arduino IDE it attempts to update the M5Stack board file and gives me the error: Error downloading https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
Is this a result of the recent UIFlow updated to 1.6.6? Software quality at and download speeds from M5Stack are terrible! This brings into question the whole viability of M5Stack - good hardware but shocking software support.
Core Ink with UIFlow
I wrote a simple UIFlow program to set and display the time on Core Ink. I had to update both the M5Burner to access Core Ink firmware and downloaded version 1.6.6 I was able to connect by Windows PC to Core Ink but it refused to accept the download and failed on each occasion. There seems to be a bug in this early release of Core Ink Firmware or it could be in the on-line UIFlow 1.6.6.
ECG Module code
Please help me understand your code for this module
I got this module to work on a m5stack Fire but I would like an explanation of the library program, ECG.ino at:
There are no comments in the code which makes it hard to follow the program.
There is also no data dictionary for the following terms:
Difficult to understand constructs
What does the following do?
ECGdataFSM = ( data == 0xAA ) ? ECG_DATA_LENGTH : ECG_IDLE;
DataMAX = ( ECGData > DataMAX ) ? ECGData : DataMAX;
DataMIN = ( ECGData < DataMIN ) ? ECGData : DataMIN;
The documentation for this product at https://docs.m5stack.com/#/en/module/ecg?id=related-link
states that the MPU STM32 in the module supports a heart rate statistics algorithm. What does this algorithm do? What parameters does it use?