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

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

Open
orionJag opened this issue Feb 1, 2021 · 0 comments
Open

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

orionJag opened this issue Feb 1, 2021 · 0 comments

Comments

@orionJag
Copy link

orionJag commented Feb 1, 2021

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()

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

1 participant