Freenove / Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi

Apply to FNK0043
Other
133 stars 148 forks source link

Fixed the server to be able to run from the cli with no UI + bugfixes #9

Open flakeman2 opened 3 years ago

flakeman2 commented 3 years ago

Various bug fixes and improvements but the biggest change is that the Server now runs more reliably and works without a UI. This is necessary for people who are running a headless Raspberry Pi OS (no X display).

Let me know if you have any questions. Thanks,

Devin

Sample session:

$ sudo python main.py -t -n
Starting TCP Server
Server address: 192.168.0.24
Ready, waiting for commands...
Client connection successful!
CMD_POWER

Start video transmit ... 
CMD_POWER

CMD_POWER

CMD_BUZZER#1

CMD_BUZZER#0

Server address: 192.168.0.24
flush of closed file
End video transmit ... 
^C caught ctrl-c
Stopping TCP Server
Client connect failed!
Exiting.