Why HF 60105 auto shutdown?  

  RSS

daisyoat
(@daisyoat)
Active Member
Joined: 7 years ago
Posts: 7
07/05/2013 4:41 am  

Hello!

I use C# serialports communicate with the spectran,

BaudRate =9600

I send 01 A5 5A F1 1F
receive 01 51 1A F5 AF

then I send 21 20 00 00 00 08 3F

receive the ampFREQDATA

but about 10 or 15mins

this device will auto shutdown

How can I avoid that?

THANKS


Quote
mm_dev
(@mm_dev)
Member Admin
Joined: 9 years ago
Posts: 287
07/05/2013 9:16 am  

Your value argument looks wrong, check your IEEE 754 conversion. Though that shouldn't cause a shutdown. Also use a higher baudrate, like 57600, 115200 or higher. At 9600 the device buffer might overflow eventually.


ReplyQuote
daisyoat
(@daisyoat)
Active Member
Joined: 7 years ago
Posts: 7
07/05/2013 12:20 pm  

Your value argument looks wrong, check your IEEE 754 conversion. Though that shouldn't cause a shutdown. Also use a higher baudrate, like 57600, 115200 or higher. At 9600 the device buffer might overflow eventually.

I set BaudRate= 256000 or 115200,the device also will auto shutdown when running 10 or 15 mins.


ReplyQuote
daisyoat
(@daisyoat)
Active Member
Joined: 7 years ago
Posts: 7
07/05/2013 12:43 pm  

Step 1.
trun on the device. connect the USB ports
Step 2.
Open the serialports set baudrate =115200 StopBITS =1

Step 3
accroding to Spectran API Documentation

execute VERIFY produce
send 0x01 0x05 0x5A 0xf1 0x1f

Step 4.

SET USBMEAS ON(=1)
send
0x 21 0x20 0x00 0x00 0x00 0x08 0x3f

Then
I receive FREQdata from USBports.

Did I miss any step?

Thanks for your help


ReplyQuote
mm_dev
(@mm_dev)
Member Admin
Joined: 9 years ago
Posts: 287
07/05/2013 1:46 pm  

This is how the ASDK connects, using the d2xx driver (simplified):
1) setup USB connection:
handle = FT_Open(...)
FT_SetChars(handle, 0, 0, 0, 0)
FT_SetParameters(handle, 8192, 8192)
FT_SetBaudrate(handle, 921600)
2) send VERIFY command and wait for reply
3) communicate according to Spectran API using FT_Read/FT_Write
4) before closing the connection handle send the LOGOUT command
5) close handle using FT_Close

So far I've not yet seen a HF turning off by itself under normal conditions.

Communication over the VCP driver (which I assume is used by the .NET module) isn't tested or supported.


ReplyQuote
daisyoat
(@daisyoat)
Active Member
Joined: 7 years ago
Posts: 7
08/05/2013 4:55 pm  

This is how the ASDK connects, using the d2xx driver (simplified):
1) setup USB connection:
handle = FT_Open(...)
FT_SetChars(handle, 0, 0, 0, 0)
FT_SetParameters(handle, 8192, 8192)
FT_SetBaudrate(handle, 921600)
2) send VERIFY command and wait for reply
3) communicate according to Spectran API using FT_Read/FT_Write
4) before closing the connection handle send the LOGOUT command
5) close handle using FT_Close

So far I've not yet seen a HF turning off by itself under normal conditions.

Communication over the VCP driver (which I assume is used by the .NET module) isn't tested or supported.

Maybe I got solution,

serialports sp =new serialport();
1.sp.open();

2.send verify;
3.set USBMEAS on ,timer1.Enable=true;(timer1.interval=10000)

4. when reach the time ponit of timer1.interal set USBMEAS off
send logout
sp.close();
timer2.Enable=true;(timer2.interval=10000)

5.when reach the time ponit of timer2.interval
repeat step 1-5

timer.interval may be adjusted to the appropriate value

After this adjustment, the truning off does not happen again(after test for 2 hours).


ReplyQuote
Share: