Learning State Machines In Real-Time On A Small Dedicated Hardware Device