Protocentral / protocentral_healthypi_v4

HealthyPi v4 is a fully open source, standalone vital signs monitor with wireless and wearable capabilities.
Other
39 stars 16 forks source link

No data being received on RPi HAT or Serial port #10

Open orionJag opened 3 years ago

orionJag commented 3 years ago

Hi Recently purchased a HealthyPi 4.4 and I am not receiving any data. I tried the following

 (1) using it as RPi4 HAT, the GUI shows up but with no graph / data 
 (2) connected on the standalone mode with connected to the USB-3, installed the driver for FT231X and no data as well .
       FT231X driver installed from https://www.ftdichip.com/Drivers/CDM/CDM21228_Setup.zip
 (3) Tried downloading the Iphone App, it displays the graphs :

Even tried reading directly from the serial port with script below - no data. Need help to resolve this issue.

Thanks in advance.

Python Script

import serial ser = serial.Serial(port = "COM4", baudrate=9600, bytesize=8, timeout=2, stopbits=serial.STOPBITS_ONE) print('My name is: ', ser.name) serialString = "" # Used to hold data coming over UART while True and i <= 10:

Wait until there is data waiting in the serial buffer

if(ser.in_waiting > 0):

    # Read data out of the buffer until a carraige return / new line is found
    serialString = ser.readline()

    # Print the contents of the serial data
    print(serialString.decode('Ascii'))

    # Tell the device connected over the serial port that we recevied the data!
    # The b at the beginning is used to indicate bytes!
    ser.write(b"Thank you for sending data \r\n")
i = i+1 

ser.close()