Xbee API communication

Hello all,
So I'm having some issues reading data from an Xbee in Labview. I have two xbees connected to arduinos that are communicating to a single xbee connected to my laptop, I'm using API mode on the xbees and attempting to read and separate the data for each xbee.
Reading some past posts I've picked up a nice VI to parse the data by searching for the start delimiter of each packet, using this I've been able to read and separate the data by just checking the address of each (the case structure, BD97 and C220 are just the addresses of my xbees). This worked as far as reading the data went, but running it I've gotten some data corruption somewhere (there will be random spikes that shouldn't be there). 
After I ran into this error I added the little checksum check to try and get rid of the bad data, but this led to no data being passed through (checksums are wrong in each packet). I've gone through and actually added up the checksum of some of the packets by hand and they are wrong in my VI. I did the same with each packet in the xbee XCTU software and all the checksums added up correctly so it's not an issue with the xbees.
Anyone got any ideas where I might be going wrong here??? I attached the two VI's I've been using (ignore the randomness of it I've been doing a lot of tinkering).
and the original thread I was looking off of is here: http://forums.ni.com/t5/LabVIEW/example-code-for-xbee-zigbee-in-API-mode/td-p/1297882
Any help is appreciated!
Attachments:
Input Data Parser.vi ‏29 KB
Xbee Parser tester 2Checksum.vi ‏24 KB

Hi dmartin2011,
What protocol are you using? 232? 485?  Also, how are they connected to the laptop?
In the event that the parser is taking too long, you could consider a producer/consumer design pattern where the producer loop does the VISA read and the consumer loop does the parsing and checksum?
Can you explain what you mean by random spikes?  You could also place an indicator on the raw data output from the VISA read and make sure that data is what you expect and that your controls for baud and flow, etc. are set correctly. 
Michael K.

Similar Messages

  • PI Directory API - Communication Channel Change

    Building an application using SAP PI Directory API to read existing communication channel(s) and to update them to change the Status (Active / Inactive).  I'm able to change the status but not able to retain the password in the channel; For example, JDBC channel has DB user id and password.  After successfully changing the status, Channel is loosing password.
    Here is the logic that I'm following to change the communication channel.
    Using Communication Channel Service
      - Read method to get communication channel object
      - Change method to change the status
          - In change method, I'm creating CommunicationChalleRestricted object based on the CommunicationChannel object received in Read method.  (using get and set methods)
    Also, I'm dynamically creating and activate/reverting the Change list while performing the change operation.
    Please note that the communication channel service in WSNavigator is not showing the password when executing READ method.  I've also tried OpenForChange method, but the same issue.
    How can I make password retained while changing the existing communication channel? 
    Any help is greatly appreciated.
    Thanks
    Sat

    Hi Sat,
    I had implemented a tool to make mass channel active or inactive using a simple excel-sheet interface. I had faced the password issue when i was implementing this. But i came to know that password are not stored as plain text but instead they are stored as encrypted text with some complex encryption algorithm and key. And also due to security reasons the web-services in PI do not return password(not even the encrypted string).
    So to update,save and activate any channel in PI you simply need to skip the AdapterSpecificAttribute which has "password" as the name. Below is the pseudo code(java) for this
    ArrayList<GenericProperty> ASA = new ArrayList<GenericProperty>();
    Loop all AdapterSpecificAttributes:
    if(Name.tolowercase().contains("password"))
         // skip
    else
         GenericProperty attr = new GenericProperty();
         attr.setName(Name);
         attr.setValue(Value);
         ASA.add(attr);
    Loop End:
    //set ASA to the CommunicationChannel object AdapterSpecificAttribute
    Note: Not tested the above code so make changes accordingly(as required). I have implemented this same logic and it worked.
    Hope it helps,
    Thanks,
    Anand

  • LMS Reporting Complete when communication is lost

    The LMS we're using, eLogic, reports a SCORM course as Complete if the communication is lost. This was happening on a regular basis as associates began to use online training for the first time. So we requested that it leave the course as Incomplete so the user could re-open more easily. We've been told that this does not conform to SCORM standards that say if communication is lost that the course be marked as Complete. That makes no logical sense to me. Can anyone explain? Or help me to understand?
    Thanks!

    I think this really has more to do with how your lesson is sending the status. It's the lesson that, ultimately, should decide if the lesson is complete or not. However, that status is not 'definite' until the LMS.commit function is called. Once that's called, then any data that's been sent back to the LMS is official.
    So ideally, your CP lesson should not send a Completed status until the user has finished whatever tasks are required to gain that status (all pages viewed, certain interactions finished, etc)...then when the user exits the lesson, CP sends the Commit and Finish calls and the LMS finalizes that lesson.
    It sounds like this LMS is doing some sort of default action where, perhaps, if communication is lost with the lesson or a timeout is reached, it automatically commits the status (which CP should have sent). So first:
    1. Is your CP lesson sending the status properly? Is it sending Completed as soon as it opens? That's a common issue... If so, the LMS could be receiving the status correctly, but acting on it incorrectly by commiting that status when it should not be.
    2. Is the LMS taking a default action, like setting a status to Completed, when the API communication is lost? Which, I agree, sounds like a bad assumption to make and is doubtfully a SCORM requirement.
    HTH
    Erik

  • NetworkManager applet doesn't prompt for VPN secret for non-root user

    I'm using NetworkManager in GNOME DE. When logged in as non-root user, I'm unable to connect to a vpnc profile.
    * As non-root, I am able to add/remove/alter/connect to WiFi network profiles with no trouble.
    * As non-root, I am also able to add/remove/alter vpnc profiles.
    * However, the VPN group key and VPN user password do not appear to store properly when adding/editing the profile as non-root. I can enter them, but when I bring the dialog back up, they are always blank. Even so, I can see an entry for vpnc in the Gnome keyring.
    * When I slide the on/off switch to try to connect with the vpn profile, there is no prompt for the VPN group key or password. The switch just slides back to Off immediately and I can see the text 'authentication required' flash briefly where it shows the connection status. After that flashes, the connection status is back to 'Not connected'. No error message displays.
    * If I sign in as root, there are no problems. The VPN 'secrets' will save properly in the dialog, and also if I leave them blank, I'm prompted for them when I activate the connection.
    * Creating the connection as 'root' is not an option, as this doesn't appear in profile list when signing on as non-root.
    Any ideas on where to look or what to check? As mentioned above, non-root can maintain WiFi connections through NetworkManager just fine, so the problem appears localized to VPN 'secrets'. Also other applications (i.e. Evolution) have no trouble in dealing with authentication.
    I do have polkit installed:
    extra/polkit 0.110-2 [installed]
    Application development toolkit for controlling system-wide privileges
    extra/polkit-kde 0.99.0-2
    Daemon providing a polkit authentication UI for KDE
    extra/polkit-qt 0.103.0-2
    A library that allows developers to access PolicyKit API with a nice Qt-style API
    community/polkit-gnome 0.105-1 [installed]
    PolicyKit integration for the GNOME desktop

    Update/more information on this...
    My typical/preferred setup for my VPNs is to save the VPN group key, but to be prompted for my VPN user password on each connect. So, this is how I was trying to setup in the applet. Interestingly, I have found that if I save BOTH of the 'secrets' to the keyring, then I can connect!
    The behavior is still as above in the dialog -- both secrets are blank if I edit the connection, although they are present in the Gnome keyring. As long as they are BOTH there, I can connect fine. But, if I have either of them set to 'Always Ask', then I am not prompted for them and the connection fails.
    Although I can work with this, I would certainly still like to figure out what is going on and fix it, as it does bother me that it works that way:
    * Why can't the dialog redisplay my secrets when I edit a connection as non-root?
    * Why doesn't Always Ask work to prompt me for secrets when running as non-root?
    Any ideas? I've used the Gnome/NetworkManager/vpnc combination on other desktops (this is my first Arch), and I have never seen anything like this.

  • Cisco prime 2.1 / 2.2 support for Cisco ise 1.3 ?

    Hi, I just tried to connect cisco PI 2.1 to cisco ISE 1.3, but fails.
    I read the release Notes, only ISE 1.2 ist supported.
    But I was wondering that the ssl handshake fails (I have done a packet capture). 
    So PI 2.1 has not tried to connect to ise 1.3 via api, because of the connection fails at the ssl handshake stage.
    Anyway, does anybody know if ISE 1.3 will be supported with PI 2.2 or a version of PI 2.1.x ?

    Why doesn't the REST API communication in Prime 2.1 (2.1.0.0.87) support TLS? The platform itself seem to be able to handle TLS-DHE-RSA with AES-128-CBC-SHA. Why is it trying to use SSLv2 ?
    These protocol is incompatible and very much outdated: http://en.wikipedia.org/wiki/Transport_Layer_Security#SSL_1.0.2C_2.0_and_3.0
    Can this behavour be reconfigured in CLI or at least be allowed in ISE 1.3 to make a workaround until a working patch or upgrade is done? Could or should adding the Cisco Prime server as managed node in ISE circumvent the incompability?

  • Open Hub External System

    Hi,
    I have a basic requirement to extract data out of Open Hub into an external Oracle database. I have read previous threads online on this topic, but still have a couple of questions that are not clearly answered.
    Firstly, my client complies with all licensing arrangements to use Open Hub.They do not want to use flat files and they do not have access to tools like the Microsoft Connector described in many online blogs. 
    Secondly, my client would like BW to kick off the process chain, load into an internal BW table, and then raise a trigger to the external Oracle database to come and "pull" the data from the newly created table. I am new to working with API's, but I read about standard API's been available to achieve this, but I would like some simple clarrification:
    - In my Process Chain, after I load the Open Hub data into the internal table, I want BW to use the API RSB_API_OHS_3RDPARTY_NOTIFY to tell the external system it's ready to pull the data. Reading the docu about this API, it seems like this needs to be initated from the external Oracle database. Is this correct (I would hope BW could do this) ? And if so, I dont know if my client has these API's on their Oracle system. How do I ensure they do ? I imagine they are freely available, but since I am not a DBA, and do not have access to someone who can tell me or not, I would like to know what the standard procedure for API communication is here. An example or white paper showing the API (with parameters) for a real life scenario would be ideal.
    - If the above does not work, even though they say the Microsoft connector tool can be used for Oracle, I am hesitant to use a Microsoft tool, when surely Oracle has their own free tool to do this - or can the Microsoft Connector integrate directly with an Oracle database ??????
    - When we refer to the term "Third Party Tool", does this mean a ETL tool like Informatica, or a connection tool like the Microsoft Connector, or the external database like the Oracle database in this example ?
    Any clarrification with the above would be most appreciated. I do not have access to a BW system yet, so I would like to know some of the details before I propose a potential solution.
    Thanks,
    BWPerson

    Hi
    Here are some documents:
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/c2463c6796e61ce10000000a114084/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e830a690-0201-0010-ac86-9689620a8bc9
    http://www.bwexpertonline.com/archive/Volume_01_(2003)/Issue_05_(May)/V1I5A5.cfm?session=
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f12a03d-0401-0010-d9a7-a55552cbe9da
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/tree.htm
    http://www.thespot4sap.com/forums/m_30/mpage_1/key_/tm.htm
    hope it helps
    Fil.

  • Regarding the pre requisites to connect to the hubspot

    Hi Experts,
                   i had a requirement where my customer is placing the files in the hub spot.From there i need to pick the files in real time and should be routed to the C4C. so i am having the queries as follows
    1. is it possible to connect to the hubspot
    2. if so what are the pre-requisites i need to do
    3. As per understanding i have to use the FTP transport protocol in file adapter.
    Please guide me
    Thanks
    Giridhar

    Hi pavan,
                   we checked with the hubspot team.they are not providing any support for the Ftp/ SFTP Protocols. so the only way you would be able to upload content to Hub Spot would be through our Content APIs as per the conversation. i.e they support the api's like json and python.
    as per the following links and my understanding.
    http://developers.hubspot.com/docs/methods/blogv2/post_blog_posts
    http://developers.hubspot.com/docs/methods/files/post_files
    http://developers.hubspot.com/docs/methods/pages/post_pages
    what are possible adapters that support the api communication?
    As per my understanding REST adapter supports the api communication.Please correct me if i am wrong.
    Please suggest me .
    Thanks
    Giridhar

  • Je voudrais commander un petit moteur pas à pas à partir du port LPT dun boitier de commande . mais je ne sais pas quel programme écrire dans labview

    bonjour !
    je suis débutant dans l'utilisation de Labview.je dois commander une table de déplacement 3D ,je voudrais commander un petit moteur pas à pas chargé du déplacement suivant les axes(X,Y,Z) à partir du port LPT dun boitier de commande . mais je ne sais pas quel programme écrire dans labview

    Bonsoir Max,
    Le point de départ serait de consulter le site du constructeur de l'équipement (table trois axes) pour voir s'il n'existe pas déjà un driver existant (des fonctions à utiliser directement dans LabVIEW). S'il n'existe pas de driver, récupére la doc de l'équipement et prend ton courage à deux main, il va falloir se l'écrire, ce driver.
    Brut de pomme, deux liens:
    How Do I Use the Parallel Port in LabVIEW?
    Can VISA Communicate with Parallel Ports?
    Plus précisément: NI-VISA est une surcouche logicielle qui permet d'avoir une interface de programmation (API) commune pour différents types de bus (série, USB, PCI, und so weiter). Il est possible de l'utiliser pour adresser un port parallèle. Il y a aussi d'autres méthodes proposés (Cf.How Do I Use the Parallel Port in LabVIEW?, méthode 2, In Port.vi et Out Port.vi). Ceci constituerai la solution 'bas niveau' pour envoyer une commande et relire la réponse de ton équipement - fabriquer les fonctions LabVIEW / le driver de ton équipement, à partir de la documentation, en espérant que la doc mentionne les commandes de l'équipement ("comment-que-j'y-cause-à-mon-boitier-pour-qu'il-fasse-ce-que-je-lui-ai-demandé")
    Bon courage,
    .mrLeft{float:left} .mrInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898}
    Mathieu R.  
      CTD - Certified TestStand Developer / Développeur TestStand Certifié  
      CLAD - Certified LabVIEW Associate Developer  

  • Link to SWF or HTML file from LMS?

    Hello,
    Can someone please tell me how I should link to the captivate file from LMS.  Is it better to link to the SWF file or the HTML file (or in this case, the HTML full-screen file)?
    I would also appreciate it if you could tell me why one file is better than the other to link to from LMS.
    Thank you,
    Justin

    If you are using an LMS for the purpose of tracking data about the user's interaction with your course, it will be either using SCORM or AICC standard to achieve that.  In both cases you need the HTM file that Captivate publishes because there is quite a lot of JavaScript involved in the API communication between the course modules and the LMS.  If you were only uploading the SWF file, the LMS wouldn't be able to "talk" to your course.
    In the case of SCORM, you upload your course as a zip file that contains everything it needs to operate and communicate with the LMS.  This zip file, and all the files it contains, is what the LMS expects.
    Having said this, there are some pseudo LMS systems out there that are really more akin to content management systems (CMS) since all they really do is deliver the files to the user and track the fact that they did so.  They don't read or record scoring coming back from the course too well.  In some cases these types of LMS will expect to get the course as a single file only (because they're more used to courses in the form of PDF files or PPT presentations) and so the SWF file is about the only one you CAN upload to them with any chance of delivering content.  I don't recommend you go for these types of systems.

  • Users must reboot after live migration

    Has anyone had trouble with users needing to reboot after a server is live migrated? I migrate a virtual server from one node to the other the users cannot connect until they reboot. This does not seem right to me. Any help?
    This topic first appeared in the Spiceworks Community

    I'm creating a visual basic application and I am getting super confused by this bit of code.It keeps returning a 404 error at "Dim reader = client.DownloadString("http://themeq.xyz/other-domain/poro/api/communicator.php?i=c&p="; & todo)", but I know the website works and exists. Can anyone see what I am doing wrong, it doesn't work with or without a proxy.VB.netx = "http://www.google.co.uk"VB.netTry proxy = client.Proxy Dim proxyuri = proxy.GetProxy(New Uri("http://www.google.co.uk")).ToString client.UseDefaultCredentials = True client.Proxy = New WebProxy(proxyuri, False) client.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials Dim nbyt As Byte() = Encoding.UTF8.GetBytes(x) Dim todo = Convert.ToBase64String(nbyt) Dim reader = client.DownloadString("http://themeq.xyz/other-domain/poro/api/communicator.php?i=c&p=" & todo...

  • Communication problem when using Google Font api

    Hi
    When I try linking to the Google font api I receive a communication error in BrowserLab. The page renders OK outside of BrowserLab in my usual browser and if I remove the link then the page works in BrowserLab (but obviously doesn't include the fonts).
    I have tried increasing the delay time but still no luck.
    Is this something that just won't work? I'd love to be able to use BrowserLab to help build out my site but can't at present.
    The page in question is http://rockingdesign.co.nz.
    Thanks for looking,
    Tim

    Hi Tim, I just tested that link in BrowserLab and I don't think I'm seeing any issue. I'm attaching a screenshot of Firefox 4 Windows taken by BrowserLab. I didn't get any error, and the screenshot looks ok to me.
    Was this possibly a temporary issue or do you not have the proper link back in? If you still see it, can you give me more info, the exact error message you see, and possibly a screenshot?
    Thanks,
    Mark

  • Java communication api for windows 64 bit

    Hi,
    I need communication api for windows 64 bit. Are these api's in developement?
    Thanks,
    Andrea Todeschini

    If you use version 2.0 of the rxtx library then it provides a complete implementation of the javax.comm package.
    Version 2.1 does not (its in the gnu.io namespace)
    // Try the following url
    http://users.frii.com/jarvi/rxtx/download.html
    matfud

  • Need API for Java communicating with RS232

    Dear All,
    I am a newbie to Java. I have a sensor connected to a microcontroller, and this microcontroller is also connected to a PC through the RS232 (COM 1). I have installed the Java Communications API "Javax.comm" on my PC and was able to run the "BlackBox" sample program. What I require is a simple Java program that will read and show the bytes comming through the COM1 port. If anyone has done anything similar or has an idea of how to go about it, could they please send me some example code, I would be very grateful. Or if anyone knows about any website with such similar examples i would be very grateful.
    Thank you very much.
    FREDERIC

    Cross posted numerous times...
    http://forum.java.sun.com/thread.jspa?threadID=634826

  • Does the Communications API work with Studio 4

    I just installed Studio 4 along with the JDK. The Java version that I am running now is:
    java version "1.4.1_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
    Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
    Running on MS XP.
    The Communications API seemed to work just fine on JDK 1.3 with Forte 1.0.
    I installed the Comm API as instructed and set my ClassPath:
    CLASSPATH=D:\PROGRA~1\s1studio_jdk\j2sdk1.4.1_02\lib\comm.jar;D:\MyProjects\java\GarxFace
    A call to:
    Enumeration portList;
    portList = CommPortIdentifier.getPortIdentifiers();
    does not yield any ports at all.
    Stranger yet, if I use the auto complete feature in the editor. For example if I type: m_PortID. then no members of PortID show up.
    But the code compiles just fine.
    Any idea what is going on?

    First I found the reason that the auto complete was not working. I had to mount the comm.jar file (you did not have to do this in Forte 1,0, just set the classpath). I thought that I had done that. That is the problem when you work late. ;)
    Here is a eexcerpt that I found on a search in another post:
    Copy javax.comm.properties to your <JDK>\lib directory.
    C:\>copy c:\commapi\javax.comm.properties c:\jdk1.1.6\lib
    The javax.comm.properties file must be installed. If it is not, no ports will be found by the system.
    Notice it says that "javax.comm.properties file must be installed"
    javax.comm.properties is indeed installed in my JDK lib subrirectory, but it is almost like it is not being found.

  • Using JMF API with Sun One Studio v4 update 1 (community ed.)

    Having great difficulty trying to utilise the JMF API I've just downloaded with Sun One Studio v4, update 1 (community edition).
    After installing the API, I tried copying the the .jar files under the lib folder of JMF to the lib folder of sun one studio.
    Although admittedly a novice in the field of adding API's I have attempted to add the .jar files into the libary of recognised modules but made no progress.
    The problem is that although JMF API is installed, Sun One Studio does not seem to be aware of this and so does not recognise any associated libraries e.g. java.media or JMFApplet.
    I would appreciate advice from anyone who knows how to configure Sun One Studio to utilise the JMF API.
    Mark

    All right, I think I may have solved it. After mounting jmf.jar I needed to update the parser database. All the libraries seem to be there.
    Can someone clarify though, the trial program i'm using makes reference to: java.media
    I don't have this module. I do instead have javax.media which I believe includes all the methods of the java version. Am I right or am I missing this crucial module??

Maybe you are looking for

  • How to connect sqlserver use oracle sql developer?

    I created a non-oracle location connection in owb and can load data from sqlserver to warehouse. Now, I want to use sqlplus or sqldeveloper to connect sqlserver directly, But I got this error message"ora-03135:connection lost contact". How can I conn

  • How to sync alac only files

    I got a new iPod classic and I want to fill it with some alac files I ripped from CDs. The only thing is I want to keep the AAC files too because I use an iPod shuffle when in at the office or the gym and I don't want to keep automatically converting

  • Dynamic library?

    Hi there, I'm curious...does anyone know how to point iTunes to a library folder and then have it automatically synch with that folder and everything in it? I am constantly rebuilding my entire library because I add a bunch of music to my HD, but the

  • BW VS other data warehousing tools

    What are some of the fundamental differences between SAP BW and other datawarehousing tools like Business objects and Cognos. Please provide specific points for each of the tools. Thanks

  • Graphics Firmware Update 1.0 for Mac Pro 2006?

    The official documentation is confusing because Apple lists the 2006 Mac Pro as "incompatible" with Windows 7 here: http://support.apple.com/kb/HT3986 but at the bottom of the same page it states that the update is for the "Mac Pro with NVIDIA Geforc