ramapcsx2 / gbs-control

GNU General Public License v3.0
771 stars 110 forks source link

How to update on GBS-C ? #483

Closed Yukinooooooo closed 11 months ago

Yukinooooooo commented 11 months ago

I can't update my GBS-C with ESP8266 but apparently my GBS-C is not recognised on my PC and also the serial COM port is not listed, I don't know why. How can I do ?

The error message provided by Arduino

I've tried lots of micro usb cables but it's a failure. It's impossible to get COM for the serial port. I've even tried using other PCs, it's still a failure

but I did follow his instructions on Software Setup

I use this model New-GBS-C

EDIT: I'm using under GNU/Linux

ramapcsx2 commented 11 months ago

Oki, to help you single out the problem, it is definitely the OS and the USB cable / adapter. It might be simply lacking a driver, or it is defective. Get this adapter cable working first and then continue with connecting to the GBS.

YoImLee commented 11 months ago

Looks to me like you're running into permission issues. Try running ls -l /dev/ttyUSB0 (with the ESP plugged in) in a terminal to see what group it belongs to, then adding your Linux user to the group, usually dialout or uucp depending on your distro. sudo usermod -aG (groupname) (username)

You'll need to log out or reboot for it to take effect.

Yukinooooooo commented 11 months ago

Looks to me like you're running into permission issues. Try running ls -l /dev/ttyUSB0 (with the ESP plugged in) in a terminal to see what group it belongs to, then adding your Linux user to the group, usually dialout or uucp depending on your distro. sudo usermod -aG (groupname) (username)

You'll need to log out or reboot for it to take effect.

The result is crw-rw----. 1 root dialout 188, 0 Jul 22 00:30 **/dev/ttyUSB0** from ls -l /dev/ttyUSB0

I also did sudo usermod -aG mygroupname myusernamethen I restarted my PC but that didn't change anything, the problem is still the same

Yukinooooooo commented 11 months ago

Oki, to help you single out the problem, it is definitely the OS and the USB cable / adapter. It might be simply lacking a driver, or it is defective. Get this adapter cable working first and then continue with connecting to the GBS.

However, VCP Drivers or CP210x is already installed on Linux.

My Micro USB cable supports Sync & Charge, Plus, I bought it new.

Do you think my new GBS-C is defective? Could it be? It is recognised on my PC with the serial USB port, not COM.

YoImLee commented 11 months ago

The result of the first command shows that you want to add your user to the dialout group so the command would be sudo usermod -aG dialout yourusername.

The fact that your device shows up as tty instead of com is normal on linux.

Yukinooooooo commented 11 months ago

It works better than before but I have another problem after connecting....

It doesn't always show the COM serial port but the new serial port is S4

Screenshot from 2023-07-23 00-52-19

YoImLee commented 11 months ago

What happens when you select ttyUSB0 instead?

Yukinooooooo commented 11 months ago

What happens when you select ttyUSB0 instead?

You really are a genius, I'm not exaggerating. You really saved me. Thanks

I have another question if you don't mind, how do you connect the GBS-Control Wi-Fi to get the GBS-C interface after doing the Hard Resetting via the RTS pin...?

YoImLee commented 11 months ago

After the first succesful flash your ESP should be in access point mode. You should be able to connect with for example a phone using the default password qqqqqqqq. Open up the browser on your phone and go to http://gbscontrol.local Then you can optionally connect your ESP to your main wifi from the GBS-C interface.

Yukinooooooo commented 11 months ago

Now it's working. Thanks again for your help

nyanpasu64 commented 11 months ago

Closing as completed. If you have any further questions, send a reply to have it reopened.