Communicating via the Com port (comm)

Hi Folks,
I'm trying to communicate to the com port on my device but apparently can't "see" any available com ports.
Actually I'm trying to communicate via the Infrared port on my device and have been able to do so on a Nokia using COM0, however, on an Orange SPV, no ports are available. I'm using the Connector class from GCF.
I've used
System.getProperty("microedition.commports")
and on the Nokia get a load of ports back, however, on the other device I get back null. The device does have a IrDA port so I feel like I should be able to access it, I just don't know how.
I wondered if there is other ways to get hold of a port?
Reading http://developers.sun.com/mobility/midp/questions/properties/index.html it implies that the above property is implementation specific, does that mean Midlet Manager implementation specific (the SPV device uses Intent Java).
Thanks for any suggestions or any tips / links on IrDA / serial communication with ME :)
Cheers,
Toby

Start with the NI modbus library.
http://sine.ni.com/nips/cds/view/p/lang/en/nid/201​711
Or download portmon and use it to watch the data as modscan is working. Then use VISA and serial port commands to transfer data bytes until it matches what modscan is transmitting. You'll learn more doing it this way.
Also download the modbus protocol pdf file.
http://forums.ni.com/ni/board/message?board.id=170​&message.id=197677&query.id=96682#M197677
Message Edited by unclebump on 03-10-2008 06:04 PM

Similar Messages

  • I'm having trouble communicating with a transducer (Keyence LS-3100 laser scan micrometer) via the serial port. It works in Hyperterminal. Any suggestions?

    Its not a simple baud-rate or parity error. If I issue the command to send data (X1) in hyperterminal I start to get data. If I then switch to Labview I still get data. However if I try to issue the send-data command via Labview I get nothing (i.e. I can read from the device, but not write to it).
    I am on a Windows 98 (version 2) PC, running Labview 5.1.1

    Try adding a carraige return to the end of your command.
    "djb" wrote in message news:[email protected]..
    > I'm having trouble communicating with a transducer (Keyence LS-3100
    > laser scan micrometer) via the serial port. It works in
    > Hyperterminal. Any suggestions?
    >
    > Its not a simple baud-rate or parity error. If I issue the command to
    > send data (X1) in hyperterminal I start to get data. If I then switch
    > to Labview I still get data. However if I try to issue the send-data
    > command via Labview I get nothing (i.e. I can read from the device,
    > but not write to it).
    > I am on a Windows 98 (version 2) PC, running Labview 5.1.1

  • Is it possible to connect an HP LaserJet P4015n printer to a computer via the ethernet ports?

    My usb port on my Laserjet P4015n no longer works and I am unable to connect this printer to my network router because it's in a different room. Is it possible to connect an HP LaserJet P4015n printer to a computer via the ethernet ports? Of so, how would I go about making this connection? Will I need to install ethernet drivers for this to work?
    Thanks,
    Greg

    This seems to be a commercial product. For the best chance at finding a solution I would suggest posting in the forum for HP Business Support!
    You can find the Commercial Laserjet board here:
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Does anyone get the mouse lag with an external display connected via the display port?

    does anyone get the mouse lag with an external display connected via the display port?

    You don't describe the problem in great detail.  Is this the issue you are describing?
    https://discussions.apple.com/thread/4398076?start=0&tstart=0
    If so, then, "Yes."  I have the same problem.  Note that this isn't a tracking speed problem for me, it's a lag between my hand moving and the pointer moving on the external display.
    Andrew

  • How to close the COM Port ??????????

    Dear all :
    I have written an application that send AT commands to a modem , Once I opened a com port , i don't know how to close it . I got the null pointer exception when i create a new channel , because the inputStream and outputStream is owned by the previous channel . So , some one can teach me how to close the com port that opened before ?
    my source code for open port :
    public void Connect_Com(CommPortIdentifier portId) {
    Integer i = new Integer((int) (Math.random()* 1000));
    String channel = "channel" + i.toString();
    System.out.println(channel);
    try {
    System.out.println("preparing to open port");
    serialPort = (SerialPort) portId.open(channel, 2000);
    } catch (PortInUseException e) {}
    try {
    inputStream = serialPort.getInputStream();
    System.out.println("getting inputStream");
              } catch (IOException e) {}
    try {
    serialPort.addEventListener(this);
              } catch (TooManyListenersException e) {}
    serialPort.notifyOnDataAvailable(true);
    try {
    serialPort.setSerialPortParams(9600,
    SerialPort.DATABITS_8,
    SerialPort.STOPBITS_1,
    SerialPort.PARITY_NONE);
    } catch (UnsupportedCommOperationException e) {}

    serialPort.close() ?
    From the documentation of SerialPort:
    - SerialPort extends CommPort.
    - CommPort.close() closes the communications port.

  • Using VISA and RS232 devise , loosing the COM port .

    Using VISA and R232 devise communicating fine with labview and I can  Read and Write.
    however, I want to turn OFF the devise, then turn it ON again (part of the test), and be able to continue .
    The COM port is not communicating . unless I turn both the devise off  and Exit  LV then restart again.
    How to do that without restarting LV.
    thanks

    " Is there a better way to make sure its closed and driver is not hanging onto the connection? "
    you could try a command like " devcon disable usb\vid_0CD5*0003~" and then "devcon enable usb\vid_0CD5*0003~"
    ( you will need to figure out the ID of your device, my example is for a LabJack U3. )
    Get the devcon.exe-utility from microsoft.
    but as mentioned before, just watch what happens with device Manager (' run devmgmt.msc')...
    to enable/disable a device in a VBS script you can use below example,   (As Administrator!)
    Option explicit
    Dim oShell
    set oShell= Wscript.CreateObject("WScript.Shell")
    oShell.Run "RunAs /user:Domain\USER ""cmd"
    WScript.Sleep 100
    oShell.Sendkeys "USERPASSW"
    WScript.Sleep 500
    oShell.Sendkeys "devcon disable usb\vid_0CD5*0003~"
    WScript.Sleep 1000
    WScript.Sleep 100
    oShell.Sendkeys "devcon enable usb\vid_0CD5*0003~"
    WScript.Sleep 1000
    oShell.Sendkeys "exit~"
    Wscript.Quit
    My reason for doing it this way is that my USB device didn't respond to any of my calls from Labview. Enable/Disable solved the issue...
    The thing I particularly hate about above VBS-script is that I need to send the Admin password in plain text...

  • HT2497 do I connect my airport express to my modem via the WAN port and then connect to my imac via ethernet cable?

    Do I connect my airport express to my modem via the WAN port and then connect from airport express to my imac with ethernet cable? Is that how you "hard wire" the connection? Because when I do that, I still can't get online. Thanks.

    What is the make & model of your modem?
    You pretty much stated the correct wiring. There should be an Ethernet cable connected between the modem and the WAN (circle of dots) port on the AirPort Express base station.
    Anytime you change networking hardware it is always a good idea to perform a complete power recycle of that hardware. Check out the following AirPort User Tip for details. Please post back your results.

  • Can the Com port on the EX90 be connecting to an AMX NI700 to receive command?

    if so, what are the pinouts for the EX90? (TX/RX/GND) The AMX uses pin 3 for TX, Pin 2 for RX and Pin 5 for GND. I have been using an RJ45 cable and trying to match pins but I am still not getting a TX signal. Also, does the COM port need to be enabled?

    The EX90 is not really build to be controlled by an additional control system.
    (in general thats a thing for the integrator prodcucts).
    The Serial port is not a RS232 (+/-25 Volt), instead of their using TTL level.
    So a direct connection without a proper cable might cause a hardware fault!
    I think the serial port was on by default, but that might have changed on the current software versions, thats what works fine for me:
    xconf // serial
    *c xConfiguration SerialPort BaudRate: 38400
    *c xConfiguration SerialPort LoginRequired: Off
    *c xConfiguration SerialPort Mode: On
    The serial port is also on the bottom of the device, its ok to use it if you need to
    troubleshoot boot issues, but besides that not really usable.
    Dont expect Cisco to do any support for this if you run in to strange behavior when
    controling the system with a 3rd party control.
    Btw, what I would strongly recommenced is to use the telnet/ssh cli or http(s) API.
    could picture that this might work with the AMX700, so why even think of using a serial port, ...

  • Can I share internet from a airport express via the ethernet port

    I have a older airport express that I am trying to you to share the internet with a Marantz AV receiver. I used to be able to share the internet to a PS2 a few years back.
    I was able to set up another network parallel to my normal wireless network with an older moonbase style airport extreme using WDS.
    I am unsure if this is the limitation that apple has introduced to the unit, or it is a Telstra firewall issue.
    Is it possible using a combination of Airport Etremes or expresses to share the internet to a wired unit?

    I have a new airport extreme that I use all the time. I was using the older airport express for airplay.
    The older airport extreme I just pulled down from the cupboard trying to get the AVR connected.
    Since posting I have able to use the Airport extreme to connect the AVR via the ethernet port.
    Still curious why I cannot connect using the airport express.
    Interestingly the older airport extreme pushed the new airport extreme into WDS mode. Tried to hook up the express and it did not work.

  • Output Signal From a Desktop Flash application to the COM port

    How do I script to connect /send a signal to the COM port of
    the PC from a Desktop Flash application.
    The Signals can be variables such as "1/2/3/4" . The signals
    will be send on a corresponding click in the flash application. For
    eg: if I click button "A" in the Flash application, it sends a
    signal "1" to the COM Port. If I click the Button"B", it send the
    signal"2" to the COM Port.
    Please advise if it can be done directly or through a Third
    Party software.

    maybe this helps:
    http://www.phidgets.com/downloads.php?example_id=27

  • Using VISA can not find the com port

    I use visa read but can't find any com port in Windows 7.
    How can i find the com port in Windows 7?? 
    由 jw2002 在 06-28-2009 09:20 AM
    上編輯的訊息
    由 jw2002 在 06-28-2009 09:20 AM
    上編輯的訊息
    Solved!
    Go to Solution.

    Windows 7 is not officially supported by National Instruments as it hasn't even been released. That means you won't get any official support from NI on this.
    That said, does your computer actually recognize a serial port? Do you have an actual serial port, or do you have some sort of virtual COM port, or are you using some sort of adapter, such as a USB to serial port box? If it's any of the latter, the most likely reason is a driver issue which needs to be written to be compatible with Windows 7. 

  • Configuring a 5508 via the SFP ports

    Is there anyway to configure a 5508 via the SFP ports?  Or do you have to use the service port for autoinstall or NCS auto provisioning?  It looks like it grabs a DHCP address but it doesn't seem to like telnet,ssh ,http or https.  There isn't anyone onsite.

    Thanks,  I got it figured out.  The 5508 was plugged up to a switch that was configured for lag (for the 5508 that was hooked up before).  I changed the port channel to put the native vlan on one that hands out DHCP.  The blank 5508 grabbed an ip but wasn't working.  I ended up disabling the other ports connecting to the 5508.  I defaulted the switchport that was connected to the 5508's SFP port 1 and put it in the right access vlan.  I was then able to ping the IP it grabbed and http in to it.
    thanks though!

  • Airport Express as an end point on a wireless network and connect a computer via the ethernet port?

    Can I use my Airport Express as an end point on a wireless network and connect a computer via the ethernet port? - I'm wanting to connect a computer that does not have wireless and is in another building.

    The requirements for this to work are:
    1) The AirPort Express must be the 802.11"n" version. Model Number is A1264
    2) There must be adequate wireless signal stength where the Express will be located
    3) The Express must be configured to "join" the wireless network with the option checked to activate the Ethernet port

  • Signal From a Desktop lash application to the COM port

    How do I script to connect /send a signal to the COM port of
    the PC from a Desktop Flash application.
    The Signals can be variables such as "1/2/3/4" . The signals
    will be send on a corresponding click in the flash application. For
    eg: if I click button "A" in the Flash application, it sends a
    signal "1" to the COM Port. If I click the Button"B", it send the
    signal"2" to the COM Port.
    Please advise if it can be done directly or through a Third
    Party software.

    maybe this helps:
    http://www.phidgets.com/downloads.php?example_id=27

  • I have an iMac and also a MacBook. All of a sudden my iMac does not recognise my Canon 500D camera even though I have downloaded 1000s of photographs from it via the USB port.  The MacBook recognises the camera immediately. Can anyone help?

    I have an iMac and also a MacBook. All of a sudden my iMac does not recognise my Canon 500D camera even though I have downloaded 1000s of photographs from it via the USB port.  The MacBook recognises the camera immediately. Can anyone help?

    Thank you for your reply.  I know I can use a card reader however I don't see why I should when importing directly from my camera has worked reliably for years.  The process I use is simply connecting the digital output from my camera to the USB port on the iMac, which has previously automatically opened iPhoto ready for the import.  Now all of a sudden my iMac does not recognise the camera.  However if I connect in the same way to my MacBook then iPhoto opens automatically on the MacBook, recognises the camera and is ready for importing.  So whilst I know I can use a reader, or my MacBook I want to use my iMac in the same way that I have for years.  I can only assume that the settings on the iMac may have changed, but I cannot verify this.

Maybe you are looking for

  • Material Master Upload using BAPI_MATERIAL_SAVEREPLICA

    Hi All, I am using BAPI_MATERIAL_SAVEREPLICA for creating materials. I am facing an issue where BAPI is not doing the validations properly. In 'Work Scheduling' View, there are some fields which gives error in MM01 transaction. But BAPI posts success

  • Text checkbox obscuring view of text in PSE12

    With PSE12 how do I stop the green "tick" / red "reject" checkbox from obscuring my view of the text as I'm trying to type? The problem is that the checkbox retains the same number of pixels on my screen - no matter what amount of zoom is applied to

  • Crystal reports VS OBIP

    Hi All, Can anyone provide me some advantages and disadvantages for Crystal reports VS OBIP?? Thanks in Advance. Cheers, San

  • PC User Seriously Considering MacBook Pro - Advice Needed!!

    Hey guys and girls, So I have been using PCs now for almost 20 years and of course Windows since the 3.1 releases. I have been using a Sony Vaio laptop for the last 3 and a half years and the poor thing is just getting slower and slower and formattin

  • 802.1X cannot change expired password at login

    Hi all, I'm trying to roll out 802.1X authentication for wifi access at my company, however there's one major problem I can't for the life of me figure out. I'm not able to get the Macs to prompt for a password change when the password has expired at