Sending ASCII commands by tcp to wireless device

Hi to all. I have some AVL (automatic vehicle location) devices. I work with them through GPRS by USB modem (Compass 885). I read data from them through UDP port and everything works fine. But I have to send a commands to the devices by TCP and I don't know how. All of examples are not helped. Ping test to IP of device is OK.  Hope to your help.

You have the pointer to nmap.  But you could just try any search engine for more info.  That is now in your task to deal with the protocol for communication.  We can point you to how to use LV, how to find out certain information but you need to do the specific work for your task.  What port your AVL is on, is information specific to your problem.  It was a design choice by whoever wrote the software/firmware for the AVL device.
nmap is a powerful tool and with great power comes great responsibility.  It is used by hackers and network administrators.  The full use of nmap is beyond this discussion group but you can use the link for more information.  This is not as good a solution as asking the designers for their communication protocol.  It is designed for communication and so it would be absurd not to publish it in a manual or keep it secret.

Similar Messages

  • Send Ascii command Through RS232 Interface in labview

    Hello,
    I tried to use labview to control the CD2A Compudrive.
    Actually I found the driver of CD2A online in the following link
    http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=266
    but however, I still can't use this driver to send the command and adjust the parameter.
    p.s. Use only "CD2A Setup" or "CD2A Init" should be enough to set the parameter and command, right?
    The command code written in the CD2A Manual is, for example,
    <STX>ST600<ETX><LF>   which is Start of Message,Start Position 600 nm, End of Message, Line Feed
    I've tried to send this using MAX (Measurement & Automation Explorer), but the signal I got back is
    −1073807298
    = Could not perform operation because of I/O error.
    For the command in the driver above,
    The code is written in number form of ascii format  >> e.g. <STX> = ascii 02
    and The Code is written as
    \02ST600\03\r
    But sending this code>> nothing happens
    Which is quite confusing for me.
    1. Is it general to write \02  to send <STX> signal??
    2. actually <LF> = ascii 10  >> so why does it use    /r         instead?
    3. What should I do, is my format correct???  I can't even send one signal to operate it at all.
    Thank you very much for help

    A string control can set for 4 different types of display. When you right click on it, you can select Normal, '\' Codes, Hex, or Password. Normal is ASCII character and the unprintable characters such as <STX> cannot be entered. The <STX> is hex 02 so you enter this as \02. The '\' says to interpret the next byte as hex. A <LF> is not ASCII 10 at all. It is hex 0A. For readability, it was decided a long time ago that certain '\' characters could be represented a bit differently. If \n, that was hex 0A. A \r is hex 0D or the CR. You can find documentation on these stand C Escape Sequences. In LabVIEW, you can type \0A into your control and it will automatically convert or \n.
    Your other option is to use hex display. You just enter all of the hex equivalents though it makes entering the ST600 a bit more difficult in your case.
    I'm not sure if the data entry in MAX is set for '\' Code Display and whether it is interpretting your string correctly. I know that the Basic Serial Write and Read example in LabVIEW is set this way and you might want to try that.

  • Sending ASCII commands through USB hub

    I am having issues connecting to hardware. I have 3 types of hardware connected to a Serial to USB converter hub. 2 of the hardware take ASCII commands while the other does not. I am able to communicate with the hardware individually without the hub but when I connect the hardware to the hub and the hub to my computer, it does not work. I do not think MAX sees the hardware connected. Any ideas?
    CLD Certified 2014

    When you say "hub", are you talking about a product like the QUATECH USB to serial adapter (4 ports)?
    If so, then each port has its own serial port assigned to it.  You should be able to communicate through it using a terminal emulator, such as HyperTerm, TerraTerm, ProCOMM, etc.  
    You do have to install the driver for the box and you can also configure the starting COM port number.  For instance, Port A on my box is COM-3.
    You can open multiple ports in parallel, as long as you select different COM port numbers.
    MAX should see the serial ports.

  • Sending a command every 5 seconds to device

    How? Sorry but its pretty simple, i want to issue a command to an external device every 5 seconds. I however do not want to put the entire threat to sleep for 5000ms.
    thanks guys,
    Steven

    Take a look at Timer and TimerTask.

  • Sending GPIB commands

    Hi,
    How to send string commands to GPIB(IEEE488) from PC?
    The functions "GPIB CMD" and "MISC" not working.
    If use: "cmd 4+0 4" not answer. Why?
    Duke

    Duke,
    I'm not exactly sure what message you're wanting to send to the device; I am not familiar with the BASIC syntax that you are referring to, especially since all your reads, writes, and commands start with the "LISTEN" directive?
    As you may or may not know, you can address a GPIB device to send data or to send a command. To address a device and send data (like a "*IDN?" or some sort of query for measurements), you will want to use GPIB Write and GPIB Read VI's. For commands, you can use GPIB CMD. However, the command value 4 doesn't make much sense by itself. "4" stands for "Selected Device Clear" in the GPIB multiline messages.
    Should you be sending the "4" command (Selected Device Clear)?? Or just the 4 data? If you want to send the
    command, you probably would send a "talker aa, Listener xx, subaddress yy" command to the bus to specify where you want the command to be sent, where aa is the GPIB address of your board, xx is your device's gpib address, and yy is your device's sub address. Look in the links below to construct a string of gpib commands that do this, then you can feed this string into GPIB CMD.
    This link has information about low-level GPIB commands that may be helpful:link
    Here is some getting started info for IBIC, a text-based interactive control for GPIB interfaces that may allow you to experiment to see what exact GPIB command will do what you want: link
    Hope this helps.
    Scott

  • TCP connection error when sending MODBUS commands to WAGO 750-881 controller after 113655 bytes of data have been sent

    Hi all,
    I am new to the world of labview and am attempting to build a VI which sends commands to a 750-881 WAGO controller at periodic intervals of 10ms. 
    To set each of the DO's of the WAGO at once I therefore attempt to send the Modbus fc15 command every 10ms using the standard Labview TCP write module. 
    When I run the VI it works for about a minute before I recieve an Error 56 message telling me the TCP connection has timed out. Thinking this strange, I decided to record the number of bytes sent via the TCP connection whilst running the program. In doing so I noticed that the connection broke after exactly 113655 Bytes of data had been sent each time. 
    Thinking that I may have been sending too many messages I increased the While-loop delay from 10ms to 20, 100 and 200 ms but the error remained. I also tried playing with the TCP connection timeout and the TCP write timeout but neither of these had any effect on the problem. 
    I cannot see why this error is occuring, as the program works perfectly up untill the 113655 Bytes mark. 
    I have attached a screenshot of the basic VI (simply showing a MODBUS command being sent every second) and of a more advanced VI (where I am able to control each DO of the WAGO manually by setting a frequency at which the DO should switch between ON and OFF). 
    If anybody has any ideas on where the problems lie, or what I could do to further debug the program this would be greatly appreciated. 
    Solved!
    Go to Solution.
    Attachments:
    Basic_VI.png ‏84 KB
    Expanded_VI.png ‏89 KB

    AvdLinden wrote:
    Hi ThiCop,
    Yes the error occurs after exactly 113655 bytes every time. The timeout control I would like to use is 10ms, however even increasing this to 1s or 10s does not remove the error, which leads me to believe that this is not the issue (furthermore, not adding any delay to the while loop, thus letting it run at maximum speed, has shown that the TCP connection is able to send all 113655 bytes in under 3 seconds again pointing towards the timeout control not being the issue here). 
    I attempted Marco's suggestion but an having difficulty translating the string returned into a readable string, (rightnow the response given is "      -#   +   ").
    As to your second suggestion, I implemented something similar where I created a sub VI to build a TCP connection, send a message and then close the connection. I now build each message and then send the string to this subVI which successfully sends the command to my application. Whilst not being the most elegant method of solving the issue, it has resolved the timeout problem meaning I am able to send as many commands as I want. So in that sense the problem has been solved. 
    If you still have tips on how to correctly read the TCP read output, I would however like to see if I could not get my first program to work as it is slightly more robust in terms of timing. 
    Modbus TCP RTU is a binary protocol, as you show in your Basic VI, where you format the data stream using byte values. So you have to interprete the returned answer accordingly with the Modbus RTU spec in hand. Now what is most likely happening is that the connection gets hung after a while since you do NOT read the data the device sends as response to your commands. The TCP/IP stack buffers those bytes and at some point the internal buffers overflow and the connection is blocked by the stack. So adding the TCP Read at strategic places (usually after each write) is the proper solution for this. Is there any reason that you didn't use the NI provided Modbus TCP library?
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I've just seen this message for the first time and it's showing on 10 devices.
    What I really love about Apple Configurator is the copious amount of context driven help offered to you.
    "Unable to send ClearPasscode command to device.
    The device was disconnected.
    Check the USB connection to the device."

  • I'm getting a error message when using Apple Configurator "unable to send ClearPasscode command to device"

    I'm getting a error message when using Apple Configurator "unable to send ClearPasscode command to device"

    Yes, that is correct.  My spreadsheet has the following information in those cells if you want to compare yours on Monday:
    Product Type
    Application
    |
    AdamId:
    <and a 9 digit number>
    I ended up bringing the Macbook Pro home with me after struggling with it for a half hour at the end of a long day. I called and within 5 minutes the problem was corrected.  The technician said they were getting calls all day. 

  • Unable to send RequestUnlockToken command to device with Apple Configurator

    I've always used Apple configurator to unlock my 1:1 iPads if a student forgot his or her passcode. Recently I've been unable to perform this task. I receive the following error information when I hit the Refresh button:
    Unable to send RequestUnlockToken command to device.
    Description                                                      Code     Domain
    Device returned unexpected status "NotNow".      5           com.apple.configurator.error
    Any help would greatly be appreciated in solving this issue.
    My iPad are running iOS 7.0 or better
    Apple Configurator v1.5

    I've always used Apple configurator to unlock my 1:1 iPads if a student forgot his or her passcode. Recently I've been unable to perform this task. I receive the following error information when I hit the Refresh button:
    Unable to send RequestUnlockToken command to device.
    Description                                                      Code     Domain
    Device returned unexpected status "NotNow".      5           com.apple.configurator.error
    Any help would greatly be appreciated in solving this issue.
    My iPad are running iOS 7.0 or better
    Apple Configurator v1.5

  • Sending mail to wireless device

    how to email to wireless device?????
    is there any example code.....thank

    well you dont need any thing special to send mail to a wireless device
    e.g. a wap enabled mobile may read mail from same mail server as a web client does. Only it has to go through a wap gateway.
    You may send mail from your machine to a mail server(ordinary mail) and then a wireless device may read the same mail(only contents that gateway allows to pass through in case of wap )from same mail server on request.

  • Send SMS From Oracle To GSM Mobile Device

    Dear All,
    My concern is that I want to send a SMS using a GSM mobile device from database when ever a record is updated or inserted. I have searched the forum but does not find any convenient method with easy steps.
    please share your valuable views and solutions that are easy to follow for me.
    I am using
    Operating System Linux Redhat 4.6
    Database Oracle Database 10g Release 10.2.0.1.0 - 64bit
    Regards,
    Zafar Iqbal
    Edited by: Zafar Iqbal on Jun 8, 2012 3:48 PM

    Zafar Iqbal wrote:
    Is there no any alternative solution??Numerous solutions.
    as I have searched the forum or Google only find above solutions. Above solution is costly and other more above solution is only for nokia phone and dependent on Linus machine only
    There is no any Oracle recommended solution????Why would Oracle recommend a solution? It is like saying that Oracle needs to recommend what keyboard manufacturer to use for keyboards used to enter data and commands for SQL-Developer and TOAD...
    The "solution" depends entirely on the SMS interface(s) available for use.
    One can manually create the SMS transmission infrastructure - by hooking up a mobile via USB to a server and sending SMS's via it.
    One can use existing infrastructure from a cellular provider for sending bulk SMS's. This can be, for example, done via a web service of the provider.
    We use a TCP network service ourselves - where our PL/SQL code (using the UTL_TCP interface) sends a special formatted messages (including a service tag, mobile numbers, message) to the service and this service delivers this as SMS's.
    Some cellular provides used to support a SMTP interface - allowing you to send an e-mail to a specific address (sometimes with the mobile number as e-mail subject), where the e-mail body contains the SMS to send.
    So there is no single recommended solution. There is wide variety of solutions. And it would be advisable to talk to cellular providers about the SMS bulk-send interface services they provide. These comes with discounts, SLAs, support, service reports and so on.

  • Long Delay When Print Commands Sent To HP Wireless Officejet

    I have an HP Officejet Pro 8500 connected via a wireless connection to my home LAN. I have a late 2009 iMac (ethernet connection) running the latest release of Snow Leopard. Both the HP printer device and scanner device show up as installed in the Print & Fax settings of preferences with full functionality and they both work. The printer is normally idle (in sleep mode) until one sends a command. Any print command sent from any Mac OS X application to the device takes about 40 seconds to wake up the device if it is idle. Print commands sent from Windows XP applications running via a bootcamp partition wake up the printer instantly.  Print commands sent from any other Windows OS based computer connected wirelessly on the LAN also wake the HP instantly.
    I would appreciate any ideas as to why there is this delay when printing from Snow Leopard.

    I installed from the HP CD that came with the Officejet. It says MAC OS X v104, v10.5, Version 9.8.0 (I assume this is the HP version) and then updated to the 2/11 Apple HP Driver update. So I appear to have followed your advice.
    Note that Print & Fax preferences shows 2 devices for the Officejet. One is the printer and the other device is the fax. The printer has both printer and scan tabs. The fax does work as I just tried it. When I open the printer utility for the printer from within preferences, two devices are listed: The printer (green) and I can access the settings. The Fax identifed in its name as being at teh same ip address, but is is in red and the settings can not be accessed.
    I opened the embedded web server to look at all the settings. I'm using DHCP.
    Here is what I found under Networking:
    Host name is correct.
    Proxy setting are blank, which is correct.
    Network Protocols are set to Both IPv4 and IPv6
    Under Wireless: IPv4 Addressing is set to Automatic IP & Automatic DNS Server. IPv6 is empty. The Advanced settings are all under Infrastructure and correct. Ad Hoc settings are blank. Compatibility has the 2nd item checked that says in an Ad Hoc network use 811.b behavior.
    Anything else that may be helpful

  • Using VI Example Basic Serial Write Read to send AT commands to Cell phone modem error 1073807360

    I am using the NI Example VI: Basic Serial Write and Read to send AT commands to a Cell phone acting as a Modem.  I can send AT commands to this phone using Hyperterm when I select the modem driver by name in the hypert port selection field but not as com 7 which it occupies according to device manager modem properties. The basic serial vi does not show the modem driver as a selection, only ports by comX are shown. I get error 1073807360.

    Have you tried to put the name you enter in Hyperterminal in the VISA resource control? If Com 7 doesn't show, you can simply type "COM 7" in the VISA resource control. Or use "ASRL::INSTR 7".
    Also, make sure the connection in hyperterminal is closed, before you open the port in LabVIEW.
    Hope it helps,
    Wiebe.

  • Print Report using ASCII command through printer selection available on windows

    Hi,
    I'm using Labview 2009 to create a report using Report Generation Toolkit.
    Creating a report is not the problem, the problem is I need to print the report manually by sending an ASCII Code.
    I noticed that there are few example on send ASCII code command, but neither of them are related to printing.
    The printer I use is Panasonic dot matrix printer KX-P1121E with USB port. (Fanfold type of paper)
    I used "NI_report_lvclass: Print report.vi" from Report Generation before this to print my report, everything is okay and not receiving any error.
    But I noticed that after finish printing, the paper will automatically feed out as if that VI (Print report.vi) is sending out "Form Feed" (FF) Command to the printer. 
    My application cannot use this method because I need to print a set of data in every minute. If the data only have 2 rows, then it will be a wasting a lot of paper if everytime finished printing paper feeding out. I want the printer to continue standby on the same paper after finished printing previous data. In other words, maybe just manually send "Line Feed or Carriage Return" to the printer.
    So I have a few things need to be clarified step by step;
    1. How can I send an ASCII Code to my printer? Do you have any example for this? link below is the character of ASCII Codes that can be use :http://webpages.charter.net/dperr/links/esc_p83.ht​m
    2. Can I send a report created by report generation to be printed using this ASCII command method?
    3. If my printer is setup by using windows (Meaning: Available on "Printer and Faxes" list), How can I configure the printer setup in sending the ASCII Code? 
    Really appreciated your reply
    Thanks!

    Hi Zwired1,
    Just to make sure I fully understand the situation - I am assuming since you say you are printing to two different printers that when you are using the Print Report.vi you are using the printer name string to specify which printer you would like to print on. And if the printer that you specify is not functioning it automatically prints on the other printer, is that correct?
    From looking at the code in the Print Report.vi, it looks like if you specify a printer name in the input string, if there is a problem with that printer or if that printer is unavailable, the VI should not print anything, so please let me know if that is not the behavior you are seeing.
    For your question about checking the health of printers, there is a VI in the report gen toolkit called Query Available Printers. You can find it if you open up the Print Report.vi and choose the Standard Report instance, the Query Available Printers.vi is on the block diagram of that VI. It will return the list of available printers and the default printer.
    I hope that helps,

  • How Do I Connect An Airport Extreme With Password to another Wireless Devic

    We have a setup for two different wireless devices so that there are multiple locations that can get online, but the entire setup has no passwords assigned. We would like to assign passwords to both wireless devices so that only the appropriate people are getting online. How does one do this?
    The first wireless device that connects directly to the modem from the phone company is a brand new Apple Airport Extreme. The computer that set up the device so that people can get a signal was from a PC that is directly connected to the Airport Extreme via an ethernet cable. Also connected to the Airport Extreme is an ethernet cable that goes (50-100ft) to another wireless device - by Netgear - which then sends out another signal to pick up wireless internet, which is the signal/network that I work from.
    If we assign a password to the Airport Extreme, I'm guessing it will complete screw up the connection to the Netgear. How would that be dealt with? And, how could we then, if we wanted, set up a password for the Netgear as well. I've read some initial information on the user guide CD and online, but I don't know the terminology of whether these are networks or just wireless devices 'bridged' together, etc.
    My biggest concern, is it works right now, but the owner of the devices wants to put passwords on it and I want to make sure we can keep it working even with passwords. Does anyone know how to easily set up passwords and can I do it from my computer even though they were initially set up by a PC? Or do I have to do it from the PC and if so, how, because I am completely a Mac person and am very unfamiliar with Windows. Thanks.

    Question that I need to know now is how do we set up a password on the Apple Airport Extreme now, when it is already set up and working without one?
    Open AirPort Utility.
    Select your base station, and then choose Manual Setup from the Base Station menu. Enter the base station password if necessary.
    Click AirPort in the toolbar, and then click Wireless.
    Choose a password scheme from the Wireless Security pop-up menu.
    Enter the password all users will need in order to join this wireless network.
    AirPort Utility 5.1 Help: Password-protecting your wireless network
    Also, are there different types of passwords and if so, what is the most reliable one so that we don't lose connections, time out or have any other quirks?
    There are different types of wireless encryption. WPA2 and WPA are the most secure especially when used with a non-dictionary password. 128 bit WEP is passable in most situations but not very strong. 40/64 bit WEP is extremely weak.
    There is really no general "reliability" issue with any of them. Some devices aren't compatible with some of them.
    If when we assign a password to the Apple Airport Extreme and for some reason the Netgear stops working, how do we unassign/take away the password on the Airport to get it back to the current setup that we know does work?
    Follow the procedure above but disable wireless encryption instead of enabling it.

Maybe you are looking for

  • Error consuming a web service

    I invoke a SAP web service from oracle with SOAP message <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> </soap:Header> <soapenv:Body> <paem:ReadEmploye

  • When I try to open certain slide shows, my computer gets the spinning wheel and times out. Other slide shows open fine. What am I doing wrong?

    When I try to open certain slide shows, my computer gets the spinning wheel and times out. Other slide shows open fine. What am I doing wrong?

  • Need to restore iPhoto - don't know where from...

    I recently had to do an erase and install of OS X (10.4) on my iMac (flat screen G4/700). I didn't even think about iPhoto, because I assumed that it would be reinstalled when I put the OS back on. No such luck. My problem now is that I don't know wh

  • Hide p_arg_values after procedure call

    I need to hide a value in my address bar from users after they submit a form. I have a form that is calling a procedure that builds a page. Currently, when the page is built, the resulting url includes... "p_arg_names=MFG_ID&p_arg_values=2". I want t

  • Hierarchical trees

    Dear Sir, I need to know whether I can use hierarchical trees in Forms 6.0. If yes, please send me the instruction to do. And I need to know Client-Server architecture Application deployment. Thanks in Advance.