Author Topic: Radiance1/HS/Galileo Command Structure  (Read 106 times)

0 Members and 1 Guest are viewing this topic.

Offline MrSheepTopic starter

  • Regular Contributor
  • *
  • Posts: 155
  • Country: us
Radiance1/HS/Galileo Command Structure
« on: Today at 01:43:03 am »
Thought I would share my findings for the Amber Radiance Cameras' Command Structure.

Most incompatibility has to do with the MajorRevision, MinorRevision, and Checksum of this command structure. In theory Radiance 1 cameras may share the same commands but further testing has to be done. Below is a comparison of the initial communications check of the cameras. I have tested these commands and they do work with their respective cameras. When I have the time I will eventually create a program that is much better than Usermenu which can only be run in DOS and the one provided by RTools. The reason why the Galileo GUI from Rtools won't work with my two Radiance HS/Galileo Cameras is because when looking at the Serial Monitor I see that it outputs 03 00 for the revision and this simply won't work. It is extremely important for the MajorRevision and MinorRevision of the hex command match your camera. That on top of having the Checksum8 Mod 256 be accurate. And changing any of the bytes will affect this checksum

Radiance1 v3.0:
03 00 01 00 00 01 FF FF 00 00 03 02 00 00

Galileo v1.58:
01 3A 0A 00 00 01 FF FF 00 00 44 02 00 00

Radiance HS v3.21:
03 15 0A 00 00 01 FF FF 00 00 21 02 00 00

03 - Byte 1 - MajorRevision
15 - Byte 2 - MinorRevision
0A - Byte 3 - 0A For Galileo/RadianceHS 01 for Radiance 1
00 - Byte 4 - 1st byte of command code
00 - Byte 5 - 2nd byte of command code
01 - Byte 6 - Command Counter which increments by 1, However I found that keeping this 01 is ok and commands are sent and accepted by the camera.
FF - Byte 7 - Usually FF when Command being written to camera (Read or Write Command)
FF - Byte 8 - Usually FF when Command being written to camera (Read or Write Command)
00 - Byte 9 - LSB of data bytes
00 - Byte 10 - MSB of data bytes (Please note although there are only 2 bytes here depending on the command there maybe more data bytes beyond here)
21 - Byte 11 - CheckSum8 Modulo 256 Copy the first 8 bytes as well as all the data bytes (most of the time it's 2) and calculate the checksum here:
       https://www.scadacore.com/tools/programming-calculators/online-checksum-calculator/
       In this case we copy [03 15 0A 00 00 01 FF FF 00 00] and we get 21
02 - Byte 12 - 02 03 or 04
00 - Byte 13 - Always 00
00 - Byte 14 - Always 00

« Last Edit: Today at 01:51:10 am by MrSheep »
 
The following users thanked this post: Fraser

Offline MrSheepTopic starter

  • Regular Contributor
  • *
  • Posts: 155
  • Country: us
Re: Radiance1/HS/Galileo Command Structure
« Reply #1 on: Today at 01:57:42 am »
Reserved
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf