05-29-2015 08:40 PM
Hi all,
I'm trying to use the Pololu Wixel (https://www.pololu.com/docs/0J46) to read data from a Dexcom transmitter using this wixel app: https://github.com/StephenBlackWasAlreadyTaken/wixel-xDrip
I'll spare you the details of reading the docs; the Wixel receives a packet from the transmitter and transmits that packet over USB. It converts the packet from something the transmitter sends to a 7 byte package: 4 bytes for a uint32 payload, 1 byte for a battery reading of the transmitter, and 2 bytes for a battery reading of the wixel.
When I do a VISA read (the wixel is on a COM port if that helps), the VISA comes up with an error: (Hex 0xBFFF0015
I know the wixel is transmitting over USB (using CTS, baud rate of 9600), as it's showing that it's connected to the transmitter. I just think my labview VI is set up incorrectly. I've attached it for critique. Any help would be very much appreciated!
05-29-2015 08:59 PM
Why don't you have the Serial Configure VI in there to be sure that the baud rate is set, termination character is disabled, and that it uses hardware flow control?
05-29-2015 09:10 PM
05-29-2015 09:15 PM
Added the serial configure, got a payload! But now it's giving this error: VISA: (Hex 0xBFFF001E) The specified state of the attribute is not valid, or is not supported as defined by the resource.
What would be a good serial terminal to easily configure for a read? attached is a photo of the block diagram.
05-29-2015 09:20 PM
05-29-2015 09:31 PM
The website doesn't say to use CTS; but the app that I loaded on (wixel-xdrip, the C code for it is under apps/dexdrip/dexdrip.c in the github repository) has CTS in one of the comments about the serial transfer, so I figured that was best to use. Neither PuTTy nor CoolTerm is getting anything, even though the Wixel has no blinking yellow LED ( from the app, that means that it's connected to the transmitter). This is disconcerting to say the least. What do you suggest I try?
05-29-2015 09:55 PM
What input is that constant 32 wired into? I'm sure that is why you have that error because neither 32 for a baud rate or for data bits would be valid for any COM device I've ever seen.
05-29-2015 09:57 PM
05-29-2015 10:23 PM
That number is for the number of data bits within the byte. Usually either 7 or 8, most commonly 8.
Your 4 byte "payload" is part of the 7 you wire into the VISA read so you can read 7 bytes.
05-29-2015 10:58 PM