wayneft, I manage to the #define for cbi and just copied it in. At first it didn't work but after I connected the 5V on the HV side, there was communication!
It still isn't stable and freezes after a while but this is a huge improvement! Thanks!
Do you know what caused this problem?
Bo Xuan