- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regarding Infineon-XENSIV_CO2_sensor, when it is connected to a computer with USB, does the sensor only work when the software XENSIV PAS CO2 Sensor2Go GUI is opened? Now I want to transfer the measured CO2 data to the Raspberry Pi via USB. Instead of computer software, what instructions need to be executed on the sensor, is it serial port operation on CY7C65213-32L TXI or is there any other method?
Solved! Go to Solution.
- Tags:
- Data Transmission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear weixiaohalou,
In the programming guide you have the description UART protocol frames to read/write registers:
Additionally, you need the register map to know which registers to read/write:
For example, for reading the co2 value, you will need to sent the sequence (ascii):
(host -> sensor) :r, 05 /n
(host <- sensor): XX/n
(host -> sensor): r, 06/n
(host<-sensor): YY/n
Then your co2 concertation value will be the result of assembling together those registers: (XX << 8 | YY)
Does this help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
The XENSIV™ PAS CO2 mini-evaluation board (sensor board) when connected to the XENSIV™ PAS CO2 evaluation motherboard, the GUI is needed to log/check the data.
Q. Is it a serial port operation on CY7C65213-32L TXI or is there any other method?
Ans: Are you trying to use the above USB-serial bridge controller between the sensor (motherboard) and the RPi?
Please let me know.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually, my current idea is to use Raspberry Pi to replace the computer, but the Raspberry Pi does not have a corresponding GUI software. I want to transfer the data to the Raspberry Pi via USB, and then use Python to process the data. The question now is how Transmission, I found a document on your website--Programming guide for XENSIVTM PAS CO2, there are related read and write instructions to transmit commands from the sensor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear weixiaohalou,
In the programming guide you have the description UART protocol frames to read/write registers:
Additionally, you need the register map to know which registers to read/write:
For example, for reading the co2 value, you will need to sent the sequence (ascii):
(host -> sensor) :r, 05 /n
(host <- sensor): XX/n
(host -> sensor): r, 06/n
(host<-sensor): YY/n
Then your co2 concertation value will be the result of assembling together those registers: (XX << 8 | YY)
Does this help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I couldn't reply to you in time. I solved this problem last week, mainly because it needs to understand the reading and writing of its registers, including measurement cycle measurement mode, reading data and other settings. Now I have successfully read the data with python. Thank you very much for your help. I hope I can communicate with you if I have any questions in the future. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Glad to hear that your issue got resolved.
Yes, please feel free to post your queries to our community.
Thanks