Massimogri / Wearable-phonocardiogram-for-HR-detection

Prototype of a wearable phonocardiogram for HR detection in real time
1 stars 1 forks source link

Please Help Wisely -From humanitarian point of view -PSoC 5 #1

Open ghost opened 1 year ago

ghost commented 1 year ago

I am having all code with me (https://drive.google.com/drive/folders/1hKyy2O2HLyh9o4wxKsPFoyXOMyaorkv7)

https://www.duo.uio.no/bitstream/handle/10852/82665/5/Olav-Bjerke---masteroppgave.pdf .

Getting USB Time out error while replicating this into CY8CKIT-059

I managed to organize a CY8CKIT-059 board and have spent 2h to try out the software I’ve found at your link of Google drive:

· The software has been developed on a CY8CKIT-050 board according to Olav’s documentation (page19/20), so it might happen that on CY8CKIT-059 board some strange behaviors occur due to missing devices like the missing LCD panel. I would recommend to use same hardware as Olav.

· I was able to compile and download the firmware to my CY8CKIT-059 board, I was able to connect to the USBUART COM interface and I was able to send commands via HTerm to the board, I got an echo as response. I got no kind of “USB timeout”

· I’ve seen that there is also a Python script, guess that this is used to control the board via USBUART COM interface. As I can communicate with the board not using the Python script, I expect that the issues are within the Python scripts or in the way of control of the board via the Python script. Also I would expect that the “USB timeout” may be a message out of the Python script.

As Python script is completely outside of my knowledge, I cannot help here anymore. If I would have the task to get it running, I would first use HTerm to get it running manually by typing in commands and then further try to understand and debug what the Python script is doing

Massimogri commented 1 year ago

The code in this repository refers to a specific configuration of the FW present inside the PSoC board. In particular, it tries to connect to all proximal boards by sending them a 'v' character. Then, the PSoC is programmed to send ''HeartSounds$$$' after the receival of the 'v' character. Indeed, the python script looks for that string with a certain timeout.

If you can use Hterm, i would suggest either to program the PSoC to recognize a character such as 'v' or to remove the part of the script which checks every COM ports to use the one assigned to your board