not sure why the strange behavior, but a few things jump out at me

1) is gelenData an array or data struct? if so you sure about the .read? I use serial devices and send structs and it's...