473,545 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

keyence bt-w250 serialport problem IO Exception

2 New Member
when i run this code at device MC3090 handheld that no problem . device will pop out bluetooth UI(UI from handheld) to let me connect.

dim Comport as new serialport
dim port as string () =serialport.get portnames
for i as integer = 0 to port.length
with
with Comport
.portname=port( i)
.open
end with
writeInPrinter( ) 'send command to printer by using Comport .write("Somethi ng")


but when i run in device keyence BT-W250GM it will cause ioexception(the status have the problem i think the status have open by handheld. but if handheld have connect to device . then how can i send command to printer and let printer write it out...what instance should i call for instead my comport.write.. . ).i have debug and this happening while open the comport. i have no any idea. anyone have kind of experience for solve this kind of model handheld? pls help me
Feb 16 '19 #1
0 2052

Sign in to post your reply or Sign up for a free account.

Similar topics

2
13415
by: Andrea Judge | last post by:
Hi there, I'm developing an application to catch OBD sensors' data from my car. I connect it via a RS232 interface. Now. with HyperTerminal I can connect and send/receive data, but I'd like to do this from inside my C# program. Anyone can write down a very small (or tell how to do it myself) application containing methods like...
4
29269
by: Ben Kim | last post by:
Hello all, Does anyone have an example on how to implement the new SerialPort Class in VB.NET? I have been able to create the class, send (.WriteLine) to the port and Read from the port but cannot figure out how to use the Events to tell my program that data is available in the serial port buffer. I have searched the internet and MSDN...
0
1937
by: TeeCo | last post by:
I'm creating a ClickOnce installation of an application that uses the SerialPort class. I can publish, install and open the application without error but while running the application at the point at which I open the SerialPort I get an UnauthorizedAccessException exception. I've been adjusting the ClickOnce Security Settings and...
1
13904
by: sranger | last post by:
When I try to use a System.IO.Ports.SerialPort object to read from a serial port, half of the time I have no problems. However, after I successfully read from the serial port, then close the connection, either when re-opening it (in the same instance or a new instance of my program) I get either an IOException "The Handle is Invalid" exception or...
3
31242
by: Adriano | last post by:
Hello, I'm developing an application in VB.NET 2005 that communicates with a device through RS232, and need to send the following sequence of hexadecimal data to the device: 0xFF, 0x01, 0xC3, 0xE3, 0xFF, 0xFF. That's the configuration:
3
10540
by: arjan321 | last post by:
Hello all, I have a strange problem with the .NET serialPort class. When I write some data to the serialport, not all the data is immediately send: every once in a while, only ~50 characters of the 64 characters I'm sending gets send. Then, when I do a write() again, the data gets send. This is unacceptable behavior for my program.
10
18182
by: sklett | last post by:
I'm trying to send some printer commands (ZPLII) to an attached USB printer using the SerialPort component. I didn't get very far at all. In fact I haven't gotten anywhere. The first problem I encountered is that a call to SerialPort.GetPortNames() returns an empty string. In other words, NO port names are returned. I'm not terribly...
0
2475
by: cronusf | last post by:
I set up two virtual COM ports 3 and 4 using com0com. I tried to test it with the following program. However, the DataReceived event handlers never get called. Can anyone with SerialPort class experience double check my code so I can narrow it down to com0com not being setup correctly? using System; using System.Collections.Generic;...
0
1722
by: rajeswari02 | last post by:
hi am developing application on c#, in this am getting data from handheld system through serialport. data is like this: $machine id,responce code,no of rows,current row,customer name,name,total balance,paid,paid date,remaining,checksum# data like this getting from serialport ,and i need to split that and store in excel sheet,only...
0
2155
by: Floralys | last post by:
I have a transport layer class using: _serialPort.DataReceived += new SerialDataReceivedEventHandler(_serialPort_dataReceived); I use the class to get data from a barcode scanner. Normally I get the data as expected. When I send a deactivate command to the scanner the scanner still scans but does not send anything. When I activate the scanner...
0
7689
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7943
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7456
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6022
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5359
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3490
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.