DRS4 Forum
  DRS4 Discussion Forum  Not logged in ELOG logo
Entry  Mon May 22 18:27:56 2017, Esperienza Giove, Invalid magic number 0000 
    Reply  Tue May 23 10:24:47 2017, Stefan Ritt, Invalid magic number 0000 
       Reply  Thu May 25 20:17:41 2017, Esperienza Giove, Invalid magic number 0000 
          Reply  Fri May 26 08:48:25 2017, Stefan Ritt, Invalid magic number 0000 
       Reply  Thu May 25 20:20:57 2017, Esperienza Giove, Invalid magic number 0000 
Message ID: 609     Entry time: Tue May 23 10:24:47 2017     In reply to: 608     Reply to this: 610   611
Author: Stefan Ritt 
Subject: Invalid magic number 0000 

Under linux, many people observed that the USB connection is unstable to the evaluation board. This must be related to the linux USB stack, since my code runs fine under MacOSX and Windows, where I use the same USB library (libusb-1.0). So I can't do anything from my side. Baybe the linux system has some tools to reset an USB endpoint. I googled it and found some proposals here:

https://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line

Regards,
Stefan

Esperienza Giove wrote:

Hello everybody!

After some times i init my board, or if i stop the program during the acquisition, i get the error message "Invalid magic 0000". The only way i can solve this problem is to physically disconnect and plug in again the USB cable.

What's the point? Is there a bash command / code i could use to reset it?

Thank you very much

 

ELOG V3.1.4-80633ba