jefffhaynes / XBee

A .NET library for XBee wireless controllers
MIT License
40 stars 17 forks source link

Timeout XBee Series 2 Pro S5 #32

Closed fguiet closed 6 years ago

fguiet commented 7 years ago

Hi mate,

Try to get controller by issuing this statement on my XBee Series 2 Pro S5 var controller = await XBeeController.FindAndOpenAsync(SerialPort.GetPortNames(), 115200);

but it keeps on throwing TimeoutException on this statement from class XBeeControllerBase :

if (await Task.WhenAny(taskCompletionSource.Task, delayTask).ConfigureAwait(false) != taskCompletionSource.Task) { throw new TimeoutException(); }

Got Hardware version correctly filled up...but address is always null (maybe it is the problem?)

Can you help? Thank u Fred

jefffhaynes commented 7 years ago

Hm not sure. I'll take a look as soon as I can.


From: Frederic Guiet notifications@github.com Sent: Monday, July 24, 2017 4:21:27 PM To: jefffhaynes/XBee Cc: Subscribed Subject: [jefffhaynes/XBee] Timeout XBee Series 2 Pro S5 (#32)

Hi mate,

Try to get controller by issuing this statement on my XBee Series 2 Pro S5 var controller = await XBeeController.FindAndOpenAsync(SerialPort.GetPortNames(), 115200);

but it keeps on throwing TimeoutException on this statement from class XBeeControllerBase :

if (await Task.WhenAny(taskCompletionSource.Task, delayTask).ConfigureAwait(false) != taskCompletionSource.Task) { throw new TimeoutException(); }

Got Hardware version correctly filled up...but address is always null (maybe it is the problem?)

Can you help? Thank u Fred

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/jefffhaynes/XBee/issues/32, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJSKRz0LeuPt8T3lb5yXuddmjIlD9vBMks5sRPzHgaJpZM4OhsKW.

fguiet commented 7 years ago

Hey Jeff,

Thank for ya answer.

I added this line to XBeeControllerBase so my XBee Pro 5S get recognized

Line about 560 : case HardwareVersion.XBeeProS5: return new XBeeSeries2(this, HardwareVersion.XBeeProS2, address);

Add to say that my XBee is using API mode 2

and voila...

Fred

jefffhaynes commented 7 years ago

I'm not familiar with that model. What value to you assign to HardwareVersion.XBeeProS5?

fguiet commented 7 years ago

Heya,

I set HardwareVersion.XBeeProS5 to 0x1D I wanted to order more of that product but it is now obselete...so may be it is not worth adding this device to your great C# XBee API...I am currently using an old API (that is still working so...)

Fred