You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a real device : CNAP, medical device. The device use CUFF as consumable, the duration of use is stored in a DS2432 chip.
I am working to bypass the memory information to use over-time cuff for formation, tests, and student lesson. CUFF cost approx 1'000$ so we just want to use them for measurement during study.
I have recorded one wire communication with pulse view. I have written a code to emulate the DS2432 using OneWireHub on arduino UNO.
When I test my slave with BUS PIRATE, I can mimic the communication I have recorded using real cuff. But it doesn't work when using the "real" master.
I have recorded the communication with pulse view :
Below is "original" communication between CNAP instrument and a CUFF
Below is the "real" master with my emulated device using OneWireHub lib
My guess is that the slave have a high state between two reicv command and address sent from the master is not visible on the bus. Master tried this several and then display an error message
Below is the BUS PIRATE sending request to the emulated device using OneWireHub
Here there is a delay between the command and the target address when bus pirate is the master.
I have the feeling, that the issue is coming from timing. The master is sending the target address 80us after sending the command. When BUS PIRATE sent it 844us after the target adress.
Do you have any insight where I can look for to tweak the library behavior to match the master timing?
Thank you,
Jérôme
The text was updated successfully, but these errors were encountered:
Hi Jérôme, I am also working in the similar project (consumable on medical device) but I even haven't been able to read the data. I tried using my rasbpi to read the data directly by using file manager with 1-wire protocol enabled. However, all I got is FF FF FF in every byte and I think I should use another approach (using uC like arduino).
Anyway, instead of trying to emulate the slave (CUFF) can we just overwrite the counter on the DS2432 so it will read the CUFF as if it's new or unlimited?
It's not really a bug... let's me explain
I have a real device : CNAP, medical device. The device use CUFF as consumable, the duration of use is stored in a DS2432 chip.
I am working to bypass the memory information to use over-time cuff for formation, tests, and student lesson. CUFF cost approx 1'000$ so we just want to use them for measurement during study.
I have recorded one wire communication with pulse view. I have written a code to emulate the DS2432 using OneWireHub on arduino UNO.
When I test my slave with BUS PIRATE, I can mimic the communication I have recorded using real cuff. But it doesn't work when using the "real" master.
I have recorded the communication with pulse view :
Below is "original" communication between CNAP instrument and a CUFF
![CNAP_ORIGINAL](https://private-user-images.githubusercontent.com/8749731/341110756-5d1c3ef7-91ec-4d43-95dc-5ffc04ae9875.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NTAxMjcsIm5iZiI6MTcyNDU0OTgyNywicGF0aCI6Ii84NzQ5NzMxLzM0MTExMDc1Ni01ZDFjM2VmNy05MWVjLTRkNDMtOTVkYy01ZmZjMDRhZTk4NzUuUE5HP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjVUMDEzNzA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2FkZjJiYjNhMGZjNGQzNDdkZmRjYTBlYWZiODljMWJhZDBjM2YyNDA2ODlkNmNlYTQ5MzMwNmNlZWYyODliMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.JkSZIKURrfePtly9tSGzKz2lNqWRLbr97Y4Ax-ylcHA)
Below is the "real" master with my emulated device using OneWireHub lib
![CNAP_EMULATED_SLAVE](https://private-user-images.githubusercontent.com/8749731/341111182-6a30f947-ddeb-4446-84d0-af65bb3b0eca.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NTAxMjcsIm5iZiI6MTcyNDU0OTgyNywicGF0aCI6Ii84NzQ5NzMxLzM0MTExMTE4Mi02YTMwZjk0Ny1kZGViLTQ0NDYtODRkMC1hZjY1YmIzYjBlY2EuUE5HP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjVUMDEzNzA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjM1NjhmODljNWE4OTdlOTM2MTI0YWFhYzRiNTIzZDNhMzI0YWM1NzU4ZTFhYjcxMmE5Y2E0MjE5MTRhOTQzMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ._8gy7TzKcvAI4gfXSXVLw3ggEac__XfMxA8IKCbt-PA)
My guess is that the slave have a high state between two reicv command and address sent from the master is not visible on the bus. Master tried this several and then display an error message
Below is the BUS PIRATE sending request to the emulated device using OneWireHub
![BUS_PIRATE_EMULATED_SLAVE](https://private-user-images.githubusercontent.com/8749731/341111965-10308c07-34fc-4fdc-a600-4fdd88238974.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NTAxMjcsIm5iZiI6MTcyNDU0OTgyNywicGF0aCI6Ii84NzQ5NzMxLzM0MTExMTk2NS0xMDMwOGMwNy0zNGZjLTRmZGMtYTYwMC00ZmRkODgyMzg5NzQuUE5HP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjVUMDEzNzA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzhhODY5YTcxMDMzZmNiNDFlZTlhYzc4ZjFiMzNlNWM5ZTJhNmJhYzg5NTdiZjYwZjYzZGFlMmQwN2M4MjYzNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.zsPM9bBEytUYKafdnwNm5TXYYNPZrbKK1rI7DEKIzco)
Here there is a delay between the command and the target address when bus pirate is the master.
I have the feeling, that the issue is coming from timing. The master is sending the target address 80us after sending the command. When BUS PIRATE sent it 844us after the target adress.
Do you have any insight where I can look for to tweak the library behavior to match the master timing?
Thank you,
Jérôme
The text was updated successfully, but these errors were encountered: