Do you want to see "AABBCCDD" as AA BB CC DD (the separate hex bytes)? The following sketch saves them in the array named: byteArray[].
void setup()
{
Serial.begin(9600);
char data[] = "AABBCCDD";
unsigned long x = strtoul(data, NULL, 16);
//Serial.println(x, HEX);//AABBCCDD
int i = 0;
byte byteArray[4];
do
{
byteArray[i] = x % 0x100;
x = x / 0x100;
i++;
}
while (x != 0);
for (int k = 3; k >= 0; k--)
{
Serial.println(byteArray[k], HEX);
}
}
void loop()
{
}
AA
BB
CC
DD