Connection open freezes after bluetooth discovery in VB.Net on Windows10

// Expert user has replied.
M Monika Taprial 2 years 6 months ago
32 5 0

I m working on Zebra printer to establish connection. It works fine with USB but with bluetooth when I try to pull the available printer using discovery method. It does the discovery successfully but fail to open the connection and program stop to respond (this is the same function that works fine with hard coded Bluetooth MAC address). I am trying this on ZQ511 but I have also tried briefly on ZQ520 and it did not work on that printer as well. I have mainly used the example code for discovery and example code for Bluetooth connection using hard coded MAC address in SDK. SDK I am using is Link-OS SDK for PC-.NET. I also tried the Developer Demo project but this demo is in C#. Do you have same code in VB.Net because the application I am using is in Vb.NET? I have almost done, only this connection issue is there. I am attaching the code snippet for your review. Highlighted yellow one is the code part where it freezes when discovery is enabled and doesn't open the connection.

Please Register or Login to post a reply

5 Replies

A Alfred Teixeira

Hello,

I downloaded your VB.Net code and created a small console application around it. I made some changes to your code.
When I run the modified code, I am able to do the following:
1. Discover my ZQ520
2. Open a connection to it and set its language to ZPL.
3. Get the ZQ520's status.
4. Close the connection.

I have uploaded this VB.Net project to the following link:
https://zebra-my.sharepoint.com/:u:/p/ateixeira/EQURaXJ89VNHq1A2ivS4IV8…

Please download the code, try it and let me know the results.
Thank you,

Al

M Monika Taprial

Hello,
I am unable to download the zip file due to organization restrictions. Is there any other way of sharing?
Thank you,

A Alfred Teixeira

Hello Monika,

At present that is the only means I have to share code.

Is one of the following options available to you:
1. Provide an email address, and I attach the code to my reply - would that be blocked by your email server?
2. Do you have a share-point or FTP that you can grant me access for uploading the code?

Thank you,
Al

M Monika Taprial

Hello Alfred,

Thank you very much for providing the solution and for fast response. I downloaded the project on my personal computer. I will check at my end and will update you.

Thank you,
Monika

M Monika Taprial

Hello Alfred
I tried the console application demo project that you sent to me. It is working fine, there is no issue to connect the printer. I tried same code on Window Form application and it freezes again at connection open. Also attached the project LinkOS_BT_DemoVB_Form.zip for your review.
Thank you,
Monika Taprial

CONTACT
Can’t find what you’re looking for?