test polling successful
update the direction flag

add a static direction flag to avoid the side effects of using char5[4]
all the logic is ok

now can send data back and forth