Problem: Instrument via serial connection

Hello Forum,
I am trying to connect my instrument to my laptop via USB through Serial port. I used NIVISAIC and found the Resource name as ASRL3::INSTR. When I was working with Laview I found the following error
Error 1073807246 occured at property node (arg1) in VISA configure serial port (Instr.). Reason: The resource is valid, but VISA cannot currently access it.
Using the interactive control one of the attribut is in red (Is Port connected: VI_ATTR_ASRL_CONNECTED: Invalid property value
Also when I send Identification query using NIVISAIC, it returns the same command.
I did not understand much of it. However there is a software for the instrument, using which I could connect to the instrument the first time I switch on the system. When I disconnect it and tried once again, it was not connecting.
I had earlier connected Keithley 2400 via GPIB KUSB 488. Is there any problem in connecting two devices. Or is the driver of the software and NIVISA are conflicting with each other.
Please find the screen shots.
Please help.
Thank you.
Attachments:
2.JPG ‏57 KB
3.JPG ‏80 KB
4.JPG ‏93 KB

Hello Dennis,
It did not help much.
7: Write Operation (*IDN?)
Return Count: 5 bytes
8: Read Operation
Return Count: 5 bytes
*IDN?
I tried to query with \n and \r\n; but did no good. There is only one instrument connected to the PC via Serial port.
I would like to know if the identification command is same for all instrument or does it change with manufacturers.
Why does it return the same command that was given to the instrument.
If I am to ignore this, please find the block diagram and manual of the instrument in the attachment. It was said that the commands should be sent as single characters and not as string.
In the block diagram I have used VISA Configure Serial Port, VISA Write, VISA Read and VISA Close vi's. Please tell me whether this is correct. The Commands where given in separate lines or should I use separate VISA Write vi for each characters.
Thank you.
Attachments:
interface.JPG ‏130 KB
block diagram.JPG ‏14 KB
PR-655 - 670 Manual.pdf ‏4053 KB

Similar Messages

  • Problem communicating via serial port in Linux

    Hello,
    I am trying to transfer data via serial port, in Linux.
    But it is impossible till now!
    I get Runtime exception.
    Here is my code:
    public class Main {
        public Main() {
        int num=5;
        int[] array = new int[5];
        public static void main(String args[])  {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    array[0]=1;
                    array[1]=2;
                    array[2]=3;
                    array[3]=4;
                    array[4]=5;
                    new ParallelCommunication(num,array);
    import java.io.*;
    import java.util.*;
    import javax.comm.*; // for SUN's serial/parallel port libraries
    //import gnu.io.*; // for rxtxSerial library
    public class ParallelCommunication implements Runnable, SerialPortEventListener {
       static CommPortIdentifier portId;
       static CommPortIdentifier saveportId;
       static Enumeration portList;
       InputStream inputStream;
       SerialPort serialPort;
       Thread readThread;
       static OutputStream outputStream;
       static boolean outputBufferEmptyFlag = false;
       int num;
       int[] array;
       public ParallelCommunication(int this_num,int[] this_array) {
          boolean portFound = false;
          String defaultPort;
          num = this_num;
         array=new int[this_array.length];     
          array = this_array;     
          // determine the name of the serial port on several operating systems
          String osname = System.getProperty("os.name","").toLowerCase();
          if ( osname.startsWith("windows") ) {
             // windows
             defaultPort = "COM1";
          } else if (osname.startsWith("linux")) {
             // linux
            defaultPort = "/dev/ttyS0";
          } else {
             System.out.println("Sorry, your operating system is not supported");
             return;
    //      if (args.length > 0) {
    //         defaultPort = args[0];
          System.out.println("Set default port to "+defaultPort);
          // parse ports and if the default port is found, initialized the reader
          portList = CommPortIdentifier.getPortIdentifiers();
          while (portList.hasMoreElements()) {
             portId = (CommPortIdentifier) portList.nextElement();
             if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
                if (portId.getName().equals(defaultPort)) {
                   System.out.println("Found port: "+defaultPort);
                   portFound = true;
                   // init reader thread              
                   initialize();
                   break;
          if (!portFound) {
             System.out.println("port " + defaultPort + " not found.");
       public void initwritetoport() {
          // initwritetoport() assumes that the port has already been opened and
          //    initialized by "public void initialize()"
          try {
             // get the outputstream
             outputStream = serialPort.getOutputStream();
          } catch (IOException e) {}
          try {
             // activate the OUTPUT_BUFFER_EMPTY notifier
             serialPort.notifyOnOutputEmpty(true);
          } catch (Exception e) {
             System.out.println("Error setting event notification");
             System.out.println(e.toString());
             System.exit(-1);
       public void writetoport(int counter) {
          try {
             // write string to serial port
             outputStream.write(String.valueOf(array[counter]).getBytes());
          } catch (IOException e) {}
       public void initialize() {
          // initalize serial port
          try {
             serialPort = (SerialPort) portId.open("SimpleReadApp", 2000);
          } catch (PortInUseException e) {System.out.println("Port In Use.");}  //******Here is the Exception******
          try {
             inputStream = serialPort.getInputStream();
          } catch (IOException e) {}
          try {
             serialPort.addEventListener(this);
          } catch (TooManyListenersException e) {}
          // activate the DATA_AVAILABLE notifier
          serialPort.notifyOnDataAvailable(true);
          try {
             // set port parameters
             serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8,
                         SerialPort.STOPBITS_1,
                         SerialPort.PARITY_NONE);
          } catch (UnsupportedCommOperationException e) {}
          // start the read thread
          readThread = new Thread(this);
          readThread.start();
       public void run() {
          // first thing in the thread, we initialize the write operation
         initwritetoport();     
         for(int i=0; i<=num_of_inputs; i++) {
            // write string to port, the serialEvent will read it
            writetoport(i);
         serialPort.close();     
       public void serialEvent(SerialPortEvent event) {
          switch (event.getEventType()) {
          case SerialPortEvent.BI:
          case SerialPortEvent.OE:
          case SerialPortEvent.FE:
          case SerialPortEvent.PE:
          case SerialPortEvent.CD:
          case SerialPortEvent.CTS:
          case SerialPortEvent.DSR:
          case SerialPortEvent.RI:
          case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
             break;
          case SerialPortEvent.DATA_AVAILABLE:
             // we get here if data has been received
             byte[] readBuffer = new byte[20];
             try {
                // read data
                while (inputStream.available() > 0) {
                   int numBytes = inputStream.read(readBuffer);
                // print data
                String result  = new String(readBuffer);
                System.out.println("Read: "+result);
             } catch (IOException e) {}
             break;
    }...and the outcome is :
    Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException:
    Error opening "/dev/ttyS0"
    tcgetattr(): Input/output error
    at com.sun.comm.LinuxDriver.getCommPort(LinuxDriver.java:66)
    at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:369)
    at ParallelCommunication.initialize(ParallelCommunication.java:128)
    I have searched a lot and I couldn't find a solution.
    Thank you.

    I'm having the same problem this helped somewhat debug the problem
    http://bloggerdigest.blogspot.com/2006/11/linux-serial-com-port-diagnostic-test.html
    I'm running Suse 10.3 and apparently it does not recognize my serial ports. So before
    you can test your Java code you have to figure out how to make linux see the ports.
    If I find a solution I'll let you know but if you find one first let me know. Thanks.

  • My motor receives data via a serial connection, but it won't move. What am I doing wrong?

    Hello everyone,
    as the title says, I am trying to use a motor called "MP285" by Sutter Instruments via LabView. The control unit of this motor only has a RS232-output, but I use a Serial-to-Usb-Adapter to connect the device to the PC.
    My problem is the following:
    I tried to perform a basic Input/Output test by using the Ni MAX an sending ASCII strings to the control unit (after configuring it according to the reference manual), which worked fine. I also used the "jabber"-function of the control unit to send an output string to the PC and was also able to read that string from the buffer. Besides, when I used a LabView-VI to send a command via VISA Write, it also appears on the display of the control (at least the ASCII letters).
     Accordingly, I assume that the Serial-to-USB-adapter does work. Is that for sure, or can the adapter evoke any other problems?
    However, when I try to use the shipped controlling software, the motor won't work. Furthermore, I contacted the customer support and they sent me some VIs and a LabView-Project, which was tested by the company. Unfortunately, it did not work for me. The motor wouldn't move, when I sent the command, although the LabView-interface indicates that there the connection between PC and controller has been established. As the program has many features and I only need a command to move the motor, read the position and set the origin, I tried to build my own VI. I had a look at some basic VIs for motor control and referred to the manual.
    As it seems, the controller uses data streams of full bytes (8 bits, not ASCII) in Big Endian for its strings (I copied the information at the bottom of this text). Thus, I tried to concatenate particular strings to send it via VISA in the correct form (see attached). Do I have to convert the "m" into hexadecimal explcitly? I looked up "Convert ASCII to Hexadecimal", but when I try this, the output string does not change.
    However, when I send this string to the controller in normal mode, nothing happens . When I activate the Input/Ouput test (see above), there is a m displayed on the controller unit. So I guess, I am messing up the command structure. Can anybody help me please?
    Kind regards
    PS: Sorry for cleaning up the diagramm..
    PPS: For some reason, I could not attach the VI because " The contents of the attachment doesn't match its file type". So, I changed the name in "-vi" instead of ".vi" as suggested by a forum user. Hope this works for you!
    Excerpt form the reference manual:
    General Information:
    "Command requests are single bytes followed by optional parameters and terminated by a
    carriage return (CR, 0Dh). The data stream consists of full bytes (all 8 bits — not ASCII.
    The lowest order byte (for example, of the four bytes encoding the X coordinate) is the first
    into the controller and is the first out. The default Baud rate is 9600. Commands are
    processed bytewise by interrupt and executed only after the terminating CR is received.
    There are no delimiters within command strings. The controller will reply with carriage
    return (CR, 0Dh) at the completion of normal command processing."
    Command structure:
    Get Current Position      command ‘c’CR 063h + 0Dh
                                               returns xxxxyyyyzzzzCR three signed long (32-bit) integers + 0Dh
    Go To Position                 command ‘m’xxxxyyyyzzzzCR 06Dh + three signed long (32-bit) integers + 0Dh    
                                                returns CR 0Dh
    Setting up for Serial Communication:
    First, use the 9-pin serial port cable provided with the MP-285 to connect the “serial port” of
    your computer to that of the MP-285 controller. Next configure your terminal emulator (e.g.,
    HyperTerminal in Microsoft Windows (9X and above) to the following settings (or their
    equivalent):
    • TTY mode
    • Echo typed characters locally only (do not echo input to the computer serial port back to
    the controller)
    • Baud rate to 9600
    • 8 data bits, no parity, 1 stop bit
    • COM port - set to the port to which you have connected the MP-285 controller
    Solved!
    Go to Solution.
    Attachments:
    MotorTestVI-vi ‏17 KB

    Thank you for your feedback!
    To make this clear: I dont know if the motor MOVES when sending the appropriate command via MAX. That is because I dont know how to enter the binary? command. I only tried to send some string like "dear moto please move" to see if this ASCII string can be displayed on the control unit while running the input-mode (which I described above).
    This works for both, MAX and my Labview-Vi.
    However, these are the I/O traces:
    1. MAX: I sent the string: "Test"
    NI I/O trace:
    viWrite (ASRL25::INSTR (0x026B41E8), "Test", 4, 4) Process ID: 0x0000123C         Thread ID: 0x00001434 Start Time: 16:18:31.599       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    2. LabView-Vi (I removed everything that followed the first "Visa Write" and added the recommended property node to check if my termination char is correct). I sent string "TEST".
    14.  viOpenDefaultRM (0x065171F0) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.918       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    15.  viParseRsrc (0x065171F0, "COM25", 4, 25) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.918       Call Duration 00:00:00.002 Status: 0 (VI_SUCCESS)
    16.  VISA Set Attribute ("COM25", 0x3FFF001A, 3000) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.920       Call Duration 00:00:00.020 Status: 0 (VI_SUCCESS)
    17.  VISA Set Attribute ("COM25", 0x3FFF0021, 1200) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.940       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    18.  VISA Set Attribute ("COM25", 0x3FFF0022, 8) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.940       Call Duration 00:00:00.001 Status: 0 (VI_SUCCESS)
    19.  VISA Set Attribute ("COM25", 0x3FFF0024, 10) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    20.  VISA Set Attribute ("COM25", 0x3FFF0023, 0) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    21.  VISA Set Attribute ("COM25", 0x3FFF0038, 1) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    22.  VISA Set Attribute ("COM25", 0x3FFF0018, 13) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    23.  VISA Set Attribute ("COM25", 0x3FFF0025, 0) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    24.  VISA Set Attribute ("COM25", 0x3FFF00B3, 2) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    25.  VISA Get Attribute ("COM25", 0x3FFF0018, 13) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    26.  VISA Get Attribute ("COM25", 0x3FFF0038, True) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.000 Status: 0 (VI_SUCCESS)
    27.  VISA Write ("COM25", "TEST", 4) Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.941       Call Duration 00:00:00.001 Status: 0 (VI_SUCCESS)
    28.  VISA Close ("COM25") Process ID: 0x0000154C         Thread ID: 0x00000678 Start Time: 16:24:34.942       Call Duration 00:00:00.110 Status: 0 (VI_SUCCESS)
    Both strings are correctly displayed.

  • How i can connect the pci nican card with stoeber posidyn sds 4021 via serial cable

    i'm trying to communicate the stoeber posisyn sds 4021 servo inverter and the pci ni-can card via serial cable. the problem is that 1 RxD and 2 TxD pins dont have any connection available on the can card.
    it is important to connect these pins somewhere or can_l and can_h do all the job?
    what about the v- terminal, it is possible to connect it in grnd and leave v+ with 8v?

    In this situation it may be necessary to contact the manufacturer of this device. It is strongly recommended to use both CAN_H and CAN_L for CAN communication. The V- pin is used as reference ground. The V+ is simply for bus power.
    Randy Solomonson
    Application Engineer
    National Instruments

  • Connection Siemens TC65 to PC via serial port

    I don't connect Siemens TC65 via serial port . How can I do this? How can I upload java code in tc65..
    Is there anyone to solve this problem?

    tajava
    Welcome to the forum. Please refrain from posting in old threads that are long dead. When you have a question, please start a topic of your own. Feel free to provide a link to an old thread if relevant.
    I also suggest you go through these links before posting again:
    [How to ask questions the smart way|http://catb.org/~esr/faqs/smart-questions.html]
    [How To Get Good Answers To Your Questions|http://www.tek-tips.com/viewthread.cfm?qid=473997]
    I'm locking this thread now.
    db

  • Problem with connetction to wrt54g2 via wireless connection with WPA/WPA2 & wireless MAC filter

    Hello,
    I'm Alexey from Novosibirsk, Russia.
    I have a problem with connection to wrt54g2 from my DELL D630 notebook via wireless connection. When I setup WPA/WPA2 in wireless security and wireless MAC filter I can't connect from notebook to WRT - in Windows I see that dynamic IP address from WRT is not assigned. When I switch off security mode to disable always OK, but I need a wireless security between DELL and WRT.
    Connection via cable Ethernet port is OK.
    Can You help me?

    Have you tried the different laptop...?
    Download 1.71 MB the firmware for WRT54G2 v1 and reflash the router's firmware.After reflashing/upgrading the router's firmware,reset the router for 30 seconds and reconfigure the router from scratch. 

  • Process Name when we connect via Serial Port ,Its URGENT !!!

    Hi,
    I am working with Sun Solaris 9 sparc and in my application,I have to communicate with the serial port.
    For every connection we made, in Solaris it creates a process.So Can anyone tell me the name of the process when we connect serial cable??
    like USB connection /dev/usb0 or /dev/hiddev0 process is created..
    Thanks in Adavnce ...

    Sangyesh wrote:
    Hi,
    I am working with Sun Solaris 9 sparc and in my application,I have to communicate with the serial port.Outbound to a device, or inbound to a login shell or something else...?
    For every connection we made, in Solaris it creates a process.Are you talking about 'telnet' or 'ssh'? Those work differently from serial connections.
    So Can anyone tell me the name of the process when we connect serial cable??You might have a login listener if you configure it, otherwise, nothing is running.
    You need to provide more details about how you intend to use the serial cable. I can't tell from your post.
    Darren

  • How can i browse FP 2000 via serial port same use Ethernet port(RJ 45)?

    I am a new user for  labview.I develope my program with FP 2000 but I have some problem
      1 How can i browse FP 2000 via serial port same use Ethernet port(RJ 45)? if it can Tell me please.
      2 If  I use GSM/GPRS modem via FP 2000 rs 232 port (I under stand how to send AT command) and leave it stand alone
         Can I dial modem and browse file in FP 2000 same as use Ethernetport?
    Someone please help me.Thank you very much.

    Hi!
        First, I can say that your project involves many things, I cannot describe all features in the forum, and I'm not used with GPRS modems (my modems are base band serial modems...).
        Anyway, I would say that in your project you should proceed like this:
          1) Configure your FP 2000 module via MAX and ethernet connection;
          2) Download an embedded application to your module (build in LabView Real-Time)
          3) In your application, you should build a kind of serial port manager, and by the means of serial port you send/receive commands from PC.
        The commands from PC can include "Tell me the about the FP 2000 file system ", or "switch on line X", or anything you need.
       I think it would be difficult to use Internet exp, because you use IE with TCP/IP, and TCP/IP is over ethernet.
       I know that for Windows you can find some wrappers that make you "see" the serial port as an ethernet, but these wrapper do not exist under filed Point, and you shoul build one yourself!!!(and that's not easy).
        For example, to browse your files, you should build a VI that searches through your file system, and reports, via serial, the files present in a directory (it's an example....).
        About communication between GPRS modems and FP2000, I know nothing.  I suppose that these modems accept serial inputs, so you'll have to configure your serial port on FP 2000 with the correct baud rate, parity, and so on..... and you send your data to the modem.  The modem will transfer data in its way, no matter on how it does.
        To send data to your modem you shoud take a look to some Serial communication examples.  What I suggest you, first, is to connect the serial port of FP2000 to a PC, and test communication between PC and FP2000, without modems. Just direct cable connection!  If you're able to do this, insertion of modems is the next step, and should be quite easy.  If you're not able to make the PC receive strings of data from FP2000, over  RS232, adding modems is a further complication, and you won't come out of this mess!
       So, what I say, is just build, for now, a simple embedded application for FP2000, that, using RS232, sends data to a PC (you should see data sent with use of Hyper terminal).
        To build this application, use Instrument I/O --> VISA commands (VISA open, VISA write, and Property node should be enough, for now).
       Please, let me know if this helps......
        Have a nice (programming) day!
    graziano

  • PC Suite - no USB and Serial Connection Type avail...

    I have been trying to solve this problem for days now. I have Windows XP and Nokia 5310. After I installed Nokia PC Suite, there is no USB or Serial connection type in the Connection Manager; it only has Blue Tooth and Infrared conection available. I have install and uninstalled PC suite and used PC Suite Cleaner to clean the installation. I also went into the add and remove program in the control panel and click on "change" to fix the Nokia Connection Manager and Nokia Connectivity Cable Driver. It still didn't work. The thing is that the first time when installed PC Suite on my laptop, it did have USB connection option. Later after uninstalled PC Suite and reinstalled it, it start to have this problem. I am extremly frustrated. Can anyone help please?

    Thanks for your reply. I have solved the problem by following your instruction below:
    Go to Start --> Settings --> Control Panel --> Software, there you need to uninstall all Nokia software (Nokia PC Suite, Nokia Cable driver, PC Connectivity Solution ...)
    Download and run Nokia PC Suite Cleaner
    Reboot your computer
    Download and install PC Suite here.
    Connect your phone via USB cable (if possible use a different USB jack) and follow the instructions on the screen.
    Maybe when I uninstalled Chinese version of PC suite, the order in which it was uninstalled was not the one you suggested above. So,I followed your instruction and uninstall order to uninstall PC Suite again. I also uninstalled all the antivirus, spyware, and firewall before I reinstall the PC Suite. It worked; then, I reinstalled all the other security software again after I had reinstalled the PC Suite. Although it worked, I still didn't know what exactly cause the problem the first place, PC Suite version, Security protection software, or the order which it was uninstalled? All it matters is it's working.

  • Problem with labiew serial in XP

    Hi
    I've written an application (using Labview 7.1) which is communicating via
    serial (laptop serial port) to an instrument. The instrument has 1200baud,
    81N, no flow control. The serial problem happens when I request data from
    the instrument, which is done by sending a short string to it. Using the
    basic serial read write VI and setting the delay between reading and
    writing to something big enough to allow for the slow speed of the port
    (the return is 12 bytes so anything over 300ms should be plenty) and then
    making the VI execute repeatedly gives unexpected results. Occasionally a
    double entry appears in the read string.
    Obviously this is a very brief description of a complicated problem but
    thought it worth asking here in case there are any obvious "gotchas" that
    I've overlooked. For instance, does Win XP do anything unusual that
    affects serial behaviour wrt labview and VISA and that I need to disable?
    There doesn't seem to be a VI or VISA module to clear the serial if it
    gets into knots?
    Many thanks in advance
    Regards
    Bill

    Here's a little wait vi that I use when reading from a COM port. 
    Attachments:
    Serial-Wait.GIF ‏15 KB

  • Ultra 5 Serial connection

    Hi,
    I am having a few problems connecting an Ultra 5 to my laptop via serial cable.
    I have looked at the following instructions:
    http://www.idevelopment.info/data/Unix/Solaris/SOLARIS_UsingSerialConsoles.shtml
    http://www.sunhelp.org/unix-serial-port-resources/serial-pinouts/#u10.link
    and have reviewed the following post:
    http://forum.sun.com/jive/thread.jspa?forumID=246&threadID=93916
    I have made a db9-db9 cable with cross over between pins 2-3 and pin 7 straight through as suggested.
    I have'nt updated the eeprom to point to ttya (I'm sure this should'nt make a difference as long as the keyboard is'nt plugged in - which it is not)
    Is there anyone out there who has got this to work with an ultra5 - am I missing something obvious?
    Any help gratefully received.

    Hello.
    I have made a db9-db9 cable with cross over between pins 2-3 and pin 7 straight through as suggested.This is true for db25-db25.
    For db9 this is totally wrong!
    db9 - db9:
    2-3 must be crossed over, pin 5 (not 7) must be straight through
    db25 - db9 (this is what you need):
    2,3 must be straight through (not crossed)
    pin 5 of db9 must be connected to pin 7 of db25
    (This is the minimum configuration; you may also connect other pins like DTR-DSR; CTS-RTS; ...)
    Martin

  • Cellphones, bluetooth and serial connections

    I have used a GPRS-connection with my Powerbook connected to my cellphone via bluetooth for a couple of years now. However, I have one problem with this setup - I have several cellphones (A, B, C) and subscriptions (1, 2, 3) and I can only connect with the most recently paired phone. In other words, if I first pair A with my computer and try to connect using 1 it works fine. I then pair B and try to connect through 1 (I have moved the SIM-card for 1 from A to B) it still works fine but when I now try to connect using A, the connection, and this is no surprise, fails. The reason it is no surprise is because the computer still tries to connect using B.
    I don't know why this happens, but there seems to be some limitation in Mac OS X/the Bluetooth setup process which only allows it to use the most recently paired phone.
    In other words, in the situation described above, the only way to be able to connect using A again is to "unpair" both A and B and the "re-pair" A.
    Very annoying. However, after digging around a bit in the Bluetooth prefs I found: Devices tab -> select a phone in the device list -> Edit Serial Ports… where you can add serial ports (two different types of serial ports: "Dial-up networking" as well as "Serial port") for your devices and then make them visible in the Network pref pane. I guess this means that it is possible to add a serial port that belongs to a specific BT-device and then create a network location that uses this port/device and suddenly my problem would have disappeared.
    The problem is that this window is unsupported. Yes, I have called Apple Assistance and they specifically says that this window is not supported by them, not even if I paid a technician or engineer at Apple (I support more than 20 users at my company that needs this functionality, hence my eagerness to pay for support). They actually laughed at me when I said I was prepared to pay to have this issue escalated.
    Back to my question: I have tried to add both types of ports in different combinations but when I try to connect it still fails. In Mac OS X I get the following error message:
    The modem has unexpectedly hungup. Please verify your settings and try again.
    and a verbose internet connection log looks like this:
    Mon Oct 2 14:53:48 2006 : Sony Ericsson GPRS CID4
    Mon Oct 2 14:53:48 2006 : CCLWrite : AT\13
    Mon Oct 2 14:53:48 2006 : CCLMatched : OK\13\10
    Mon Oct 2 14:53:48 2006 : CCLWrite : AT&FE0S0=0\13
    Mon Oct 2 14:53:48 2006 : CCLMatched : OK\13\10
    Mon Oct 2 14:53:50 2006 : CCLWrite : AT+CGDCONT=4,"IP","services.telenor.se"\13
    Mon Oct 2 14:53:50 2006 : CCLMatched : OK\13\10
    Mon Oct 2 14:53:50 2006 : Making GPRS connection
    Mon Oct 2 14:53:50 2006 : CCLWrite : ATD99**4#\13
    Mon Oct 2 14:53:51 2006 : CCLMatched : CONNECT
    Mon Oct 2 14:53:58 2006 : Serial connection established.
    Mon Oct 2 14:53:58 2006 : using link 0
    Mon Oct 2 14:53:58 2006 : Using interface ppp0
    Mon Oct 2 14:53:58 2006 : Connect: ppp0 <--> /dev/cu.indie-SerialPort-1
    Mon Oct 2 14:54:00 2006 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x7290d549> <pcomp> <accomp>]
    Mon Oct 2 14:54:00 2006 : rcvd [LCP ConfReq id=0x4 <auth pap> <accomp> <pcomp> <asyncmap 0x0> <magic 0x129b263f>]
    Mon Oct 2 14:54:00 2006 : No auth is possible
    Mon Oct 2 14:54:00 2006 : lcp_reqci: returning CONFREJ.
    Mon Oct 2 14:54:00 2006 : sent [LCP ConfRej id=0x4 <auth pap>]
    Mon Oct 2 14:54:00 2006 : rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x7290d549> <pcomp> <accomp>]
    Mon Oct 2 14:54:03 2006 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x7290d549> <pcomp> <accomp>]
    Mon Oct 2 14:54:03 2006 : Hangup (SIGHUP)
    Mon Oct 2 14:54:03 2006 : Modem hangup
    Mon Oct 2 14:54:03 2006 : Connection terminated.
    Any ideas how to get this to work?

    I wonder if just using Network>Configure>Show>Network Port Configurations, then selecting the existing Bluetooth/Serial connection and duplicating it as many times as needed, the editing them wouldn't help... then you could just have a location for eack Phone.

  • Problems with n97 apps connecting to network (Voda...

    Problems with n97 apps connecting to network (Vodafone UK – 3G)
    Recently a number of my apps which used to connect automatically to the internet (which ever was available – known wi-fi or 3g) have stopped doing this.  They now only connect to one known wi-fi.
    I’ve tried uninstalling and reinstalling each app, but this hasn’t solved the problem.  I’ve checked for software updates and do not believe any have been applied or are available.  All apps have been downloaded via Ovi on the phone.  I still am able to access the internet by the web browser which was installed on the phone and via google maps (which also still manages GPS position, search, etc).
    The apps which I notice causing a problem are:
    Sainsbury’s/nectar
    Tesco
    Map my tracks
    Snaptu
    Opera Mini
    Any one got any ideas???

    I have the same problem since i updated my mac to 10.5.6.
    Each time I have to do a diagnostic and retype the WEP password to have the internet connection.

  • Problem with transacted JMS connection factory and transaction timeouts

              We encountered an interesting problem using transacted JMS connection factories.
              An EJB starts a container managed transaction and tries to validate a credit card
              before creating some information to a database for the user, in case of success
              an SMS is sent to the user via the transacted JMS queue. If the credit card authentications
              duration is about the same as the transactions timeout (in this case the default
              30 seconds) sometimes the database inserts is committed but the JMS insert is
              rollbacked. How can this be?
              If the authorization duration is much longer than 30 seconds everything works
              fine (both database and JMS inserts rollbacked), the same is true if a rollback
              is insured by calling EJBContext.setRollbackOnly(). The problem thus occurs only
              if the duration is approximately the same as the transaction timeout, it appears
              that the database insert is not timeouted but the JMS insert is. How can this
              be if they are both participating in the same transaction.
              The JMSConnectionFactory used is a Connection factory with XA-enabled. The result
              is the same also with the default "javax.jms.QueueConnectionFactory" and if we
              configure our own factory with user transactions enabled.
              Any help appreciated!
              

    Tomas Granö wrote:
              > We encountered an interesting problem using transacted JMS connection factories.
              > An EJB starts a container managed transaction and tries to validate a credit card
              > before creating some information to a database for the user, in case of success
              > an SMS is sent to the user via the transacted JMS queue. If the credit card authentications
              > duration is about the same as the transactions timeout (in this case the default
              > 30 seconds) sometimes the database inserts is committed but the JMS insert is
              > rollbacked. How can this be?
              It should not be.
              >
              > If the authorization duration is much longer than 30 seconds everything works
              > fine (both database and JMS inserts rollbacked), the same is true if a rollback
              > is insured by calling EJBContext.setRollbackOnly(). The problem thus occurs only
              > if the duration is approximately the same as the transaction timeout, it appears
              > that the database insert is not timeouted but the JMS insert is. How can this
              > be if they are both participating in the same transaction.
              >
              > The JMSConnectionFactory used is a Connection factory with XA-enabled. The result
              > is the same also with the default "javax.jms.QueueConnectionFactory" and if we
              > configure our own factory with user transactions enabled.
              >
              > Any help appreciated!
              Make sure that your session is not "transacted". In other words,
              the first parameter to createSession() must be false. There is an
              unfortunate name re-use here. If a session is "transacted", it
              maintains an independent "inner transaction" independent of the
              outer transaction. From the above description, it seems unlikely
              that your application has this wrong, as you say that
              "setRollbackOnly" works - but please check anyway.
              Make sure that you are using a true XA capable driver and database
              (XA "emulation" may not suffice)
              Beyond the above, I do not see what can be going wrong. You
              may want to try posting to the transactions and jdbc newsgroups. Note
              that JMS is appears to be exhibiting the correct behavior, but the
              JDBC operation is not. The JDBC operation appears to have
              its timeout independent of the transaction monitor's timeout.
              Tom
              

  • How to control more than one instrument via different interfaces at the same time

    Hi, I am new to Labview.  I am working in a project where I have to make a Automated testing tool . So, here is the set up -  I have a Chip on a board to which there are several instruments connected namely Agilent power supply, Agilent pattern generator, oscilloscope,Dmm and Thermotron. All these instruments will be connected to the host computer via ethernet, GPIB or RS232. I have to write a program on Labview where the program  should be able to communicate with these  instruments  at  the same time  and show the ouput  on display unit . I have to run the program once, should be able to view the ouputs. So, Is it possible to write such program in Labview??.  I have  downloaded  few instuments  drivers. Is it possible to combine those intrument drivers and construct a new VI which would be able to control all this ??   Will it be easier to program this on Labview or  I should  go for Labwindows/CVI  ??.
    Please mention some useful sites or tips (if u know) for writing program.
    Thanks in advance
    shasanka

    Hi Shasanka,
    ofcourse it's possible to control more than one instrument at a time.
    You should use the VISA routines to access all your devices. Every device get it's 'address' as 'VISA resource name'. This resource name contains information on the used bussystem and the (internal) device address (i.e. GPIB devices have an address number).
    So I suggest to read the manual and to look at the examples that come with LabView!
    And (from your question) it seems you should take the 3 or 6 hour seminar as well! (Look at www.ni.com -> academics.)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for