Hello folks, I have a question with regards to timing on the raspberry pi. I know the pi does not have a built in crystal clock accessible by the user for long term timing but I was wondering if there was a way to find the change in time between code execution cycles. Specifically I need to find the...
The C code is identical. The parallax propeller SPIN code is modified as follows: PUB TimeRequest | r, n if U_Flag == 0 '' Normal version reply SendDataString(string("1.0")) chksum := "1" + "." + "0" value := cnt 'COMport1.dec(value) repeat n from 0 to 3 'SendDataString(string(" ")) SendDataByte(val...
mmmm checking your results, the sums are correct already. Hello PeterO, I have found the problem. I changed the format of the checksum output of the device from hex to just regular byte (different way of sending the same byte)... Although they should be the same, it worked. Thank you for your help ...
Are you getting the correct 15 bytes in the buffer ? You have code to dump them out so what are you getting ? PeterO Here is the output of the code attached: ( I am only receiving 9 bytes total from the device but made the buffer a little larger) The first 7 bytes of the packet seem correct Sometim...
Good afternoon folks, I have come once again to ask for your assistance. I have been working on a coding problem for the past couple of days and I just cannot seem to find the problem. I am attempting to communicate with a device over a USB/serial port. The object sending information to my code requ...
Good evening folks, I have a hexadecimal (FF F3) coming in over a serial line. In the user manual it states that it is a 16-bit little-endian 2's complement value and I need to convert it to a decimal.. (in C) However I was trying to understand the little endian part but am now very confused. Could ...
Excellent. Thank you for the help! Both methods worked. For those interested here is the final segment of code that controls motor position: int speed=500; highbyte = ((speed) >> 8) & 0xFF; //FIND LOWBYTE AND HIGHBYTE BASED ON INPUTED SPEED lowbyte = (speed) & 0xFF; position = {0x21,0x53,0x43,channe...
Hello folks, I have once again stumbled upon a problem which I have been trying to solve for a good amount of time but to no avail.. I am currently trying to control the Parallax Propeller Servo Controller via Debian Linux on the Raspberry Pi. User manual for the controller: http://www.parallax.com/...
Hello folks, I just recieved my raspberry pi today and am very excited to start working with it. I have already begun to play around with BerryBoot v1.1 - bootloader ( http://www.berryterminal.com/doku.php/berryboot ) and it is looking promising. However I am very new to all of this, and Linux is so...