- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a program that reads ADC and DHT11 sensors like the file below. I have problem sending data I can't read DHT11 sensor, after being directed I got an answer my problem is because my DHT11 reader program is written specifically not in system program. However, I don't understand what it's like to be outside the system program. Can someone tell me how to include the DHT11 reader in the system program.
Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!
I managed to handle it, but it doesn't seem to be optimal but no matter it met my requirements!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello:
Are you using CY8CPROTO-063-BLE to test the function that is reading humidity and temperature value from the sensor DHT11, and send out the data by BLE connection?
Actually, I can't sync the same code with the provided in this thread, so what is the problem now?
the reading process has problem? or ble connection has problems?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply!
I am using CY8CPROTO-063-BLE to test the function of reading humidity and temperature values from DHT11 sensor and sending data using BLE connection. When reading the DHT11 sensor individually, the sensor works normally. But when I send sensor data DHT11 is not working. I was told it was because my DHT11 reader program works separately from BLE's program when doing data sending.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why can't you sync with the code I give you? I use Modus Toolbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello:
sorry I do not have the same EVB with you, for the question "But when I send sensor data DHT11 is not working", do you mean:
when BLE worked with Reading DHT11 together, ble worked well, but reading DHT11 failed.
if so , would you please share the logs when doing the test?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you here is my result screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't understand the error from the pic, do you mean some value read out is not in the range.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it's not in my scope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a problem that when sending data values it can't send data it can only read
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would you please input the normal status of the sensor value also? and it is better to add print log in the code of the sensor reading function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do not understand what you mean. I can tell you that the initial declared values of humidity and temperature are floats and here is the program that sends the data as well as the output to my terminal screen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you mean when the BLE start to work, you can't read data from the sensor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, when I request to read data from mobile app, on mobile app only send value as 00, but terminal screen still reads temperature value as shown above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is what I get from you:
You are getting the right data from the sensor on the psoc6 side. Then send these data to a phone through BLE. But you only get 00 on the phone app side?
Is it right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's right, that's exactly my problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I really don't understand what the problem is because I'm new to this type of microprocessor and programming software. So I don't know a lot of things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try to check the data before you send it?
Could you get a right return value when you send the data through bluetooth?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!
I managed to handle it, but it doesn't seem to be optimal but no matter it met my requirements!