Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

CO₂ sensor Forum Discussions

weixiaohalou
Level 2
5 questions asked 5 replies posted 10 sign-ins
Level 2

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?

0 Likes
1 Solution
enriquezgarc
Employee
First solution authored First like received First reply posted
Employee

Dear weixiaohalou,

In the programming guide you have the description UART protocol frames to read/write registers:

https://www.infineon.com/dgdl/Infineon-programming_guide_PAS_CO2_evaluationkit-ApplicationNotes-v02_...

Additionally, you need the register map to know which registers to read/write:

https://www.infineon.com/dgdl/Infineon-Registermap_description_PASCO2_MA2-ApplicationNotes-v02_00-EN...

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? 

View solution in original post

5 Replies
YashM
Moderator
Moderator First question asked 250 sign-ins 100 replies posted
Moderator

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

0 Likes
weixiaohalou
Level 2
5 questions asked 5 replies posted 10 sign-ins
Level 2

  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?

0 Likes
enriquezgarc
Employee
First solution authored First like received First reply posted
Employee

Dear weixiaohalou,

In the programming guide you have the description UART protocol frames to read/write registers:

https://www.infineon.com/dgdl/Infineon-programming_guide_PAS_CO2_evaluationkit-ApplicationNotes-v02_...

Additionally, you need the register map to know which registers to read/write:

https://www.infineon.com/dgdl/Infineon-Registermap_description_PASCO2_MA2-ApplicationNotes-v02_00-EN...

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? 

weixiaohalou
Level 2
5 questions asked 5 replies posted 10 sign-ins
Level 2

  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!

YashM
Moderator
Moderator First question asked 250 sign-ins 100 replies posted
Moderator

Glad to hear that your issue got resolved.

Yes, please feel free to post your queries to our community.

Thanks 

0 Likes