Unable to communicat​e with serial device using hex

Hi... I have two instruments, both manufactured by the same company (Inficon), both that provide the same basic function which is rate control of vapor deposition...  Both instruments use RS-232 serial communication (baud rate of 19,200, 8 data bits, 1 stop bit, no parity, no flow control).  The only fundamental difference between the two instruments is that the instrument I will call #1 communicates serially using simple ASCII text while the second instrument (#2) communicates using HEX numbers...  Using VISA serial write and read, I have for a long time been successfully communicating with instrument #1...  I send it (serial write) a certain ASCII text command and the instrument responds with a message I successfully read back (serial read)...  That works fine...  Now I have a need to do the same "write a command and read a response" with instrument #2... I'm working with an engineer at the instrument company who has supplied me with the precise HEX messages I need to send, messages he has tested on an identical instrument #2 at his factory but so far, what works for him does not work for me...  I write the HEX string.  I get no errors but also I get NO BYTES available to read at the serial port...  Note, he is NOT using LabVIEW at the factory but is instead using a proprietary serial communication executable the factory uses internally...  He and I have resorted to having me try the simplest HELLO command in HEX that is, in fact, exactly the following
0200480149  <--- in HEX (first two bytes are Length of command with LSB first, MSB second, the next two bytes are the command itself, in this case H1 (HEX for ASCII "H" is 0x48 and this company then uses 0x01 for 1 rather than the actual HEX for ASCII "1" which would be 0x31. Then the last byte is a checksum which is simply the HEX add of the two command bytes, 0x48 + 0x01 = 0x49...
The bottom line I am confident the above 0200480149 (HEX) would work if I was sending it correctly but somehow I am not...  
It's the weekend right now and I've been reading NI support posts here and I already have a couple of ideas that I intend to try on Monday...  One is I will try HyperTerminal to see I can communicate that way...  Second, the code I am using is ALMOST identical to the very basic Serial Write/Read code that can be found at (this is being done in LabViEW 7.1)
C:\Program Files\National Instruments\LabVIEW 7.1\examples\instr\smplserl.llb\Basic Serial Write and Read.vi 
But the ALMOST might be important...  I just noticed that I "Enable Termination Character" set to TRUE (default).  That may be causing my problem so the first thing next week I will set that to FALSE and see if my problem goes away...  But I'm trying to get a jump start on this problem (I am under time pressure to get this working) so I thought I would ask for your help...
I also am not sure how to set up the string control that is inputting this HEX input message...  I have set it as "Normal" and also as "HEX display"...  But either way I set it, I still get "0 bytes at port" when I get to the READ portion of the code so neither "Normal" nor "HEX display" is working for me... 
So other than trying HyperTerminal and also trying to set the "Enable Termination Character" to FALSE, can anyone suggest what I might be doing wrong???  I am pretty sure it is a formatting issue (such as sending that termination character) and I need to get it figured out soon... Any other ideas???  Any help would be much appreciated...  thanks.... bob...

Hi...  Thanks for the response...  Find the very simple code I am using attached...  Do note that the string indicator out of the VISA read does open up with default values of 0D0A (CR LF)...  I didn't put those in and I've left them there to show what the defaults were when this code was first saved, just in case you think those values being there matter...  ??  Anyway, again, the code is attached...  Note also I have left the code with its "Enable Termination Char" set to ON (default) in the Configure VISA serial subvi.  I am not at work yet and will set that to FALSE later but you've more or less convinced me that is not going to solve my problem as that is tied to terminating the READ and does not impact the Serial WRITE...  And I appreciated the input on Portmon...  I downloaded it and will give it a try when I get to work which will be soon...  But I wanted to attach the code as you requested...  Holler back if you see anything that might help me with my issue...
Oh, one last thing...  The manual for the instrument explicitly says that it uses "one start bit, 8 data bits, one stop bit, no parity, no flow control"...  What got my attention there is the explicit mention of "one start bit"...  Nothing in Windows or LabVIEW allows me to alter how many start bits there might be so I am assuming ALL serial comm uses one start bit and they just chose to mention it here???  Or might the start bit settings be an issue????  I am just searching... 
Last, this code is in LabVIEW 7.1 and I really do use COM4 as I use a Keyspan serial port expander on the PC because we needed more serial ports...  That part has been tested and In fact, the other day, while in the middle of this problem we took the serial cable and hooked to what I above called the #1 instrument and talked to it just fine over COM4, same cable and everything so I think that part is good...
thanks... bob... 
Attachments:
Talk with Cygnus.llb ‏35 KB

Similar Messages

  • Hp officejet 4500 g510n-z computer is unable to establish two-way communicat​ions with the device

    Control panel shows the printer is ready and online.  Error says computer is unable to establish communication with the device?  Solution Center says 'disconnected'? Windows firewall is disabled.

    If you are using Snow Leopard, Lion or Mountain Lion and have HP software for pre-Snow Leopard (either from a CD not marked as compatible with 10.6 -10.8 or you recently upgraded to Snow Leopard, Lion or Mountain Lion and had the HP software on your Mac before you upgraded - even if you did a standard uninstall of the old software or installed new software over the top of it) you must uninstall the software using the 'scrubber' option:
    Go to Applications/Hewlett Packard/ click on HP Uninstaller
    Click on Continue
    Highlight your device on the left pane
    Press and hold Control + Alt + Cmd keys on the keyboard simultaneously while you click on Uninstall <<<< This IS the Scrubber Option, there is no button labeled "Scrubber"
    There will be a pop up that asks if you are sure you want to uninstall ALL hp software. (At this point, if you continue, any HP printers you have installed will need to be reinstalled)
    Click Continue and let it finish
    Restart your Mac
    Now reset the printing system:
    - Sys Prefs, Print & Fax
    - Right (control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add it. Look for the printer, select it and wait until the "Add" button becomes available. Click it.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Any way to communicate with Serial PORT using JavaScript

    is there any way to communicate with Serial PORT using JavaScript ??
    Dont tell me to do it in java because I need to this on client side not on server side.
    such as when client pressed the button, a javascript function will be called and in that function I need to communicate with the serial port of that client... That action will not go to server side.

    Is there any way to send a string of bytes to the serial port from the client side ?
    Just a button on the web page that sends out stuff to the comport.
    I was hoping to do this using java script also ..

  • USB comunication with a device using LabWindows CVI 7.1 or more late.

    Hello Partners.
     I am try to  get information about USB comunication with a device using CVI 7.1 or more late, I will need to developed a aplication for comunicate with a device but I  have not  idea of How do this. I know how comunicate with the serial port in CVI, but I never have developed any application using the USB port.
    Do you know which are the requirements for do this??
    I have read some information and I am seeing that I needed the driver of device for do this but I do not know what is the command line that will need to send in the aplication for comunicate with my device.
    Somebory knows how can I do this in my application??
    Somebory has some exemplo code in where I can see the commands that I needed to send to the USB port?
    Thanks a lot for your help.
    I will be to hope some suggestion.

    hi,
    think there are three possibilities:
    1. the product comes with an own driver & api
    2. the product comes with an FTDI-device to communicate over
    2.1 you can talk with the device over a virtual COM (rs232)
    2.2. you can talk with the device over  the D2XX-layer (look at the FTDI-webside: "D2XX Programmers guide....")
    best regards
    Simon

  • I have samsung corby gts3653 mobile and need to connect internet to mac through it but it doesn't have wifi and pcsuite for mac and how could i able to connect it through gprs? GPRS is active in mobile but unable to link it with macbook pro(using lion os)

    i have samsung corby gts3653 mobile and need to connect internet to mac through it but it doesn't have wifi and pcsuite for mac and how could i able to connect it, through gprs? GPRS is active in mobile but unable to link it with macbook pro(using lion os) can any one reply.

    Until the MacBook Air was released and supported in 10.5, the Mac did not consider USB to be a valid Networking Protocol. So set the Mac with USB solutions aside.
    To connect computer-to-computer, you typically need to be using an Ethernet crossover cable. Assigning the same address to two Ethernet devices is never the solution -- it gives a Network Conflict, just as you said.
    If your Windows box has some mechanism for Sharing its WiFi connection over Ethernet, you would have to follow its rules. Whether that means Manually assigning an Ethernet Address in the same range or the PC will provide the Address, I do not know.
    Best success may be running an Ethernet cable to your Wired/Wireless Base Station, or using a "gaming adapter" (Ethernet-to-Wireless no drivers required) connected to the Mac's Ethernet port to give it WiFi access. What is your Base Station {Cable, DSL, FIOS, Other} ? Ethernet cables can be up to 100 meters (an American Football Field). Often the Base Station can be moved closer for more convenience.

  • Since upgrading to Mavericks, I have been unable to sync devices (specifically ipad mini and iphone 4s) to my MId 2013 Imac . They wil rapidly connect and disconnect, and I'm unable to do anything with the device. This happens with both USB ports.  Any su

    Since upgrading to Mavericks, I have been unable to sync devices (specifically ipad mini and iphone 4s) to my MId 2013 Imac . They wil rapidly connect and disconnect, and I'm unable to do anything with the device. This happens with both USB ports.  Any suggestions?
    MacBook Air, OS X Mountain Lion (10.9.1)

    Obviously, syncing an iOS device with iTunes over USB is still supported in Mavericks. Calendar and contact syncing with iTunes is no longer supported. That has nothing to do with your problem.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Computer is unable to communicat​e with printer Officejet J4680c All in One using wireless setting.

    I received a message while I reinstalling software and driver to change from usb conection to wireless conection:  Your laptop is unable to communicate with your printer (Officejet J4680c All in One.  This may be caused by firewall software.  If you are using firewall software, verify that UDP port is unblocked for both inbound and outbound trafic.  But I don't know how to verify that option in my computer.  While I reinstalled software I turn off firewall software in my computer.  Can some one help me to resolve this issue? Thanks.
    Ref:  My laptop is Toshiba Satellite P755 with Windows 7 (64bit)

    Hi,
    Download and run HP Printer Install Wizard from link below
    www.hp.com/go/tools
    Although I am an HP employee, I am speaking for myself and not for HP.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • OfficeJet 8500-A910 unable to establish two-way communicat​ion with the device

    I have an HP OfficeJet 8500 A910 installed a couple months ago.  On first install the HP software could communicate with it from two computers--one XP and one Win7.  Now I can scan to the locations I setup before and print from both computers, but when I try to run the HP software that was installed and working on either computer, I get "...unable to establish two-way communication with the device".  I have tried all the troubleshooting and downloaded the diagnostic tool.  I have disabled both the Norton and Windows Firewalls. 
    Any suggestions would be appreciated.

    I have a similar problem. Brand new HP Officejet Pro 8500A Plus, wire-connected to router.
    I am unable to print/scan/fax on my Windows XP when Symantec Endpoint Protection is turned on.  I have to disable it to be able to print/scan/fax. 
    I can do all capabilities with my Win7 computers.  This seems to be a Win XP related problem.
    I have checked for HP PML service...not listed.  I show HP Port Resolver and HP Status Server and PML Driver HPZ12 started.
    Doesn't bode well for keeping Viruses and other malware at bay.  Any suggestions?

  • Communicate with Modbus device using OPCLabVIEW.

    Hi all,
    I am using LabVIEW 6i with DSC. I want to connect Modbus device. At some other place I saw that this is very easy with OPCLookout server but we don't have this opc server toolset. So I want to communicate Modbus device using LabVIEW DSC only. Did any one had done it please help me out.
    Thanking you.
    Vishal

    Hi thanks for the reply.
    In first para you are talking about some server. Is it OPCLookout / OPCLabVIEW server or anything else please let me know.
    As far as the OPCLookout server is concern, we got it. But our excate requirement is as follows.
    >>>>> We want to connect our modbus device with FP.
    We have flow controller working with modbus protocol. this controller store some parameters. At particular time(daily) we want to get this readings in FP and then pass it to some other PC or main controller. But I am not aware how the lookoutopc server would work with FP. I think that if we could connect modbus with LabviewDscOPC server than DSC will take care for the communication ( Not sure & not know how, if u know please guide me). Due to this only I am ve
    ry strict for the LabviewDsc.
    In third pare u told about to make driver for modbus. Please guide me how could i do this. I tried to communicate with modbusdemobox (ni one) using serialport vis. but not able to communicate.
    Please guide me.
    Thanking you.
    Regards,
    Vishal

  • Communicate with MTP device using C# desktop application

    I want to communicate(Read / Write) with android phone connected with desktop machine as MTP device using C# in Desktop application.
    When phone is connected in MTP mode, not as USB drive.
    Ram Swami

    Hi,
    mybe the links below can assist you:>
    WPD Application Programming Interface
    WPD: Transferring Content
    MTP, WPD, OMG
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • HP Laptop Computer, computer is unable to establish two way communicat​ion with the device (printer)

    HP Laptop Computer, Windows 7-64bits, no changes made to the system before issue occured.
    Printer: HP Photosmart Plus all-in-one B210a series.
    When I click onto my Ink Levels for my printer in my computer it goes to 63% and stops. Then it says; The computer is unable to establish two way communication with the device. All systems are up and running and there is no reason I should be having a problem.
    I can print, Fax and Scan, I don't get blank paper from printer, printer is not jammed, nothing in Queue to stop it from printing. It just won't show my Ink Levels from my computer.
    This question was solved.
    View Solution.

    @marymay222, I will be glad to assist you on how to uninstall the software and drivers for the printer. 
    1. Click on the start menu
    2. Choose all programs
    3. Select the HP folder
    4. Highlight the printer name
    5. Select the UNINSTALL tab
    This will uninstall the software and drivers. After it completes, reboot the computer. 
    When it comes back on, insert the CD, if you still have it. If you do not have the CD, you can download the drivers from the website. 
    http://www8.hp.com/us/en/support-drivers.html
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Connection with serial device (SPP)

    I try to connect with a bluetooth serial device (a robot, no standard device) which is working with every PC but not from my MAC. I can connect to the device (I use ZTerm) and send one character, but not more. If I send more, those characters are not send until I quit and restart ZTerm. Then (nearly) all characters are sent. I can get all characters sent by the device. It seems a problem of flushing the buffers at some level of the drivers. Any experience or idea?
    My config:
    Apple Bluetooth Software Version:     1.6.0f2
    Hardware Settings:
    Francesco Mondada’s Computer:
    Address:     00-11-24-67-c9-b7
    Manufacturer:     Cambridge Silicon Radio
    Firmware Version:     3.1792 (3.1792)
    Bluetooth Power:     On
    Discoverable:     Yes
    Requires Authentication:     No
    HCI Version:     3 ($3)
    HCI Revision:     1792 ($700)
    LMP Version:     3 ($3)
    LMP Subversion:     1792 ($700)
    Device Type (Major):     Computer
    Device Type (Complete):     Laptop Computer
    Composite Class Of Device:     1057036 ($10210c)
    Device Class (Major):     1 ($1)
    Device Class (Minor):     3 ($3)
    Service Class:     129 ($81)

    Hi!, Ranothil: If you have the next cable and "null modem" (http://commerce.hpcalc.org/serialcable.php), you can transfer, anydata, from HP50G, to PC and viceversa, across Connectivity Kit (Conn4x), without problem. Please, see this link, with instruction's, for transfer data with serial cable, null modem and connectivity kit ... http://sense.net/~egan/skb/ and/or ... http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv017.cgi?read=125259 Note: Better, if you transfer data, from HP50G to, PC and viceversa, across the microUSB.  

  • Problems with multiple devices using same apple ID

    I have a Macbook, iPad and iPhone. After doing an IOS update now my devices keep saying I cannot use that same appleid because it's already taken. I cannot find away around this and want to know experience of others

    That warning occurs only if you try to create a new Apple ID using an email address already in use. An existing Apple ID can be used with mutiple devices. 
    What exactly did you do when you got that message?

  • How to create a Sales order with ref. with serial number using BAPI

    Hi Gurus...
    I have a requirement where,  i need to create an order with reference to serial number using a BAPI.
    The inputs will be the Order type..Sales area..Sales office..Sales group..Sold-To-party..Material number...Serial number...
    When i create the order using VA01 the configuration data will be automatically copied from the BUMP order which will have all the required information.
    But to create using a BAPI, i am struck ed..Please help
    Thanks in advance..
    Srinu

    You can use this BAPI.
    You can pass ITM_NUMBER to the ORDER_ITEMS_IN parameter. I think this will act as serial number.
    Regards,
    Murali

  • Communicat​e with LIN device via RS232

    Hi,
    We have a project to communicate with a card containing the LIN bus. I seek a solution to communicate directly with the card via the RS232 port. I think use an rs232 adapter and a rs232-LIN transceiver directly to the card. The links below containinformation of material:
    http://www.mikroe.com/eng/downloads/get/1276/max23​2_manual_v100.pdf
    http://www.mikroe.com/eng/downloads/get/1507/lin_m​anual_v100.pdf
    I want to know if anyone has used this solution before. Do you think this is feasible.Thus, the problem is that Labwindows allows easy implementation of code ofcommunication with the card (functions, examples ...).
    Thank you for your opinion about this solution.

    Hello,
    Sorry for the delay. Can you describe me your solution. I thought of another alternative. Can I communicate directly using the rs232 port, a LIN  transceiver and a power adapter (rs232 to TTL). Can you tell me what library I should use because I do not know really what is the principle.
    Many thanks

Maybe you are looking for

  • Multiple Domain Files

    A lot of questions are asked in this forum about managing multiple domain files and splitting existing ones. The "solutions" seem to be either to use an application such as iWebsites or to duplicate the domain file into folders and delete the appropr

  • How do I delete a photo album if it has been synced from a computer no longer in use?

    I accidentally synced a couple of photo albums on to my phone on a computer that we are no longer using. I am unable to delete these albums now, and they are taking up too much room

  • Oracle 8.1.6.3 on Aix 5L

    Is Oracle version 8.1.6.3 certified to run on the newer versions of AIX 5L version 1 and version 2?

  • Customized drill-down report cannot go to line item level (FGI4 and FGI1)

    Hi Expert, I created a customized drill-down report using New GL features, as follows: FGI4 create form, with reference to form: 0SAPBLNCE-01 FGI1 create report for the form created. After that I set some things like characteristic, variables, and ou

  • Two Gfx cards in an MP

    It was suggested to start a new topic on this. I do have a 3870 and a spare stock card for my MP. I'm getting a 2nd screen and wanted to drive the smaller screen off the stock card. But it seems two cards confuses Motion, so maybe this is not a good