Public paste
Undefined
By: Guest | Date: Aug 22 2014 14:20 | Format: None | Expires: never | Size: 2.74 KB | Hits: 1019

  1. The following is the debug output resulting from starting sigrok-cli like this:
  2. $ ./sigrok-cli -d agilent-dmm:conn=/dev/tty.AgilentU1177A-2C30E6-SPP --samples 1 -O csv -l 4
  3.  
  4. The code in libsigrok/hardware/agilent-dmm/api.c has been changed a bit so that a message is
  5. logged for every serial_* call, giving the return value and errno.
  6.  
  7. sleep(2) has been inserted before various calls, resulting in the output below.
  8.  
  9. -----
  10.  
  11. sr: agilent-dmm: sr_serial_dev_inst_new() = 853542336, errno = 60, strerror = Operation timed out
  12.  
  13. sr: agilent-dmm: serial_open() = 0, errno = 60, strerror = Operation timed out
  14.  
  15. sr: agilent-dmm: sleep(2)
  16. sr: agilent-dmm: serial_flush() = 0, errno = 60, strerror = Operation timed out
  17.  
  18. sr: agilent-dmm: serial_write() = 7, errno = 60, strerror = Operation timed out
  19.  
  20. sr: serial: Received 44: 'Agilent Technologies,U1232A,MY53060029,V1.00'.
  21. sr: agilent-dmm: serial_readline() = 0, len = 44, errno = 60, strerror = Operation timed out
  22.  
  23. sr: agilent-dmm: Setting sample limit to 1.
  24. sr: session: Starting.
  25.  
  26. -----
  27.  
  28. sr: agilent-dmm: sr_serial_dev_inst_new() = -1998584384, errno = 60, strerror = Operation timed out
  29.  
  30. sr: agilent-dmm: serial_open() = 0, errno = 60, strerror = Operation timed out
  31.  
  32. sr: agilent-dmm: serial_flush() = 0, errno = 60, strerror = Operation timed out
  33.  
  34. sr: agilent-dmm: sleep(2)
  35. sr: agilent-dmm: serial_write() = 7, errno = 60, strerror = Operation timed out
  36.  
  37. sr: serial: Received 44: 'Agilent Technologies,U1232A,MY53060029,V1.00'.
  38. sr: agilent-dmm: serial_readline() = 0, len = 44, errno = 60, strerror = Operation timed out
  39.  
  40. sr: agilent-dmm: Setting sample limit to 1.
  41. sr: session: Starting.
  42.  
  43. -----
  44.  
  45. sr: libsigrok loglevel set to 4.
  46. srd: libsigrokdecode loglevel set to 4.
  47. sr: agilent-dmm: sr_serial_dev_inst_new() = -1855978048, errno = 60, strerror = Operation timed out
  48.  
  49. sr: agilent-dmm: serial_open() = 0, errno = 60, strerror = Operation timed out
  50.  
  51. sr: agilent-dmm: serial_flush() = 0, errno = 60, strerror = Operation timed out
  52.  
  53. sr: agilent-dmm: serial_write() = 7, errno = 60, strerror = Operation timed out
  54.  
  55. sr: agilent-dmm: sleep(2)
  56. sr: agilent-dmm: serial_readline() = 0, len = 0, errno = 60, strerror = Operation timed out
  57.  
  58. No devices found.
  59.  
  60. -----
  61.  
  62. sr: libsigrok loglevel set to 4.
  63. srd: libsigrokdecode loglevel set to 4.
  64. sr: agilent-dmm: sr_serial_dev_inst_new() = -1050671504, errno = 60, strerror = Operation timed out
  65.  
  66. sr: agilent-dmm: serial_open() = 0, errno = 60, strerror = Operation timed out
  67.  
  68. sr: agilent-dmm: serial_flush() = 0, errno = 60, strerror = Operation timed out
  69.  
  70. sr: agilent-dmm: serial_write() = 7, errno = 60, strerror = Operation timed out
  71.  
  72. sr: agilent-dmm: serial_readline() = 0, len = 0, errno = 60, strerror = Operation timed out
  73.  
  74. No devices found.