Open marcgallego opened 1 year ago
Can you attach the .raw debug file generated by the app? One of the reasons for checksum errors is the RS232 chipset of the USB serial cable itself. Brands with FTDI chipset generally have fewer checksum issues. Another possibility is the MEDIBUS command response sequence not being in sync and causing few corrupt responses.
Thank you very much for your answer! I have doing some tests and apparently setting nInterval = 2
seems to drastically improve the situation.
I am using a computer with a DB-9 port. My setup consists of a DB9 M/M gender changer and a RS232 serial null modem cable, no USBs. It may be the sync problem you mention, I'm not sure!
Here you have the lastest raw file I have: DrgVentRawoutput.raw
Marc can you share the actual binary .raw file generated by the program (needed for simulation)? The file shared is a text file.
Sure, check with this: DrgVentRawoutput.zip
I've been conducting more tests, I've modified DebugLine
so that it writes to console. I've found out that from time to time, there is already communication before pressing a key to start. In those cases, is when I get checksum errors. Do you know how can I fix this?
Press any key to continue...
03:55:16.040 - Received: ICC request
03:55:16.241 - Send: Request DevID
03:55:16.242 - Received: Device ID request
03:55:16.275 - Send: Device ID (response)
03:55:16.340 - Received: Device ID response
03:55:16.341 - Send: Request Realtime Config
03:55:16.420 - Received: Realtime Config Response
03:55:18.357 - Received: NOP request
03:55:20.400 - Received: NOP request
Requesting Transmission from monitor
Data will be written to CSV file DrgVentExportData.csv in same folder
03:55:21.389 - Send: Request ICC
03:55:21.595 - Send: Request Data CP1
03:55:21.599 - Send: NOP
03:55:21.629 - Received: ICC response
03:55:21.630 - Send: Request DevID
03:55:21.635 - Received: Device ID request
03:55:21.664 - Send: Device ID (response)
Some of the checksum errors could be due to the command response sequence being out of sync in the Medibus life cycle (ICC request or Dev ID request). Similar to this discussion: https://github.com/xeonfusion/VSCaptureDrgVent/issues/4 Let’s debug this further, PM me.
Hi, I am trying to extract data from a Drager Babylog 8000 plus using your code.
I've adapted the serial port parameters to use the device defaults (BaudRate = 9600 and Parity = None), and made sure that those are the ones set up in the device. I am not trying to extract waveform data.
It sometimes works and outputs something like this:
But many times the only output I get is
Checksum Error
. Do you have any idea of why this might be happening? Is it normal?Thank you very much for the original code and for the help!