View: 168|Reply: 6

RaspTank webserer.py issues

[Copy link]

1

Threads

1

Posts

5

Credits

Newbie

Rank: 1

Credits
5
Post time 2020-7-16 01:58:50 | Show all posts |Read mode
Edited by 1594835721 at 2020-7-16 02:10 AM

I've attached the hat and camera to the raspberry pi. I've tried running the webserver.py script and the following error show.
webserver_py.JPG
Reply

Use magic Report

1

Threads

49

Posts

150

Credits

Registered member

Rank: 2

Credits
150
Post time 2020-7-20 17:04:48 | Show all posts
After booting, the program automatically runs successfully and will occupy the camera resources. Use sudo killall python3 to release the resources. Thank you.
Reply

Use magic Report

1

Threads

3

Posts

23

Credits

Newbie

Rank: 1

Credits
23
Post time 2020-8-5 19:03:51 | Show all posts
I too have been having this issue. Following these steps from section 5 of manual

"If the program is not run when the robot is booted, try to connect Raspberry Pi via SSH, manually run webServer.py with code and check the errors. Refer to the Q&A below or email us for help (before manually running webServer.py, you need to end the program possibly auto run in the backend to release resources.

sudo killall python3
sudo python3 RobotName/server/webServer.py

If the webServer.py is auto run successfully, open a web browser (here Google Chrome), type in the IP address of the Raspberry Pi, with :5000 added to the end, and go to the next step, as shown below:

192.168.1.17:5000

If no image is displayed, try manual running webServer.py as described in the step above."


And i still can not connect thru a web page. How do i run webServer.py manually.
Also, i am not getting any lights
Jim
Reply

Use magic Report

0

Threads

2

Posts

8

Credits

Newbie

Rank: 1

Credits
8
Post time 2020-9-10 11:35:44 | Show all posts
1590741547 replied at 2020-8-5 07:03 PM
I too have been having this issue. Following these steps from section 5 of manual

"If the program i ...

Did you ever figure this out?  I'm having the same issue.
Reply

Use magic Report

0

Threads

23

Posts

73

Credits

Registered member

Rank: 2

Credits
73
Post time 2020-9-12 18:09:23 | Show all posts
1599708893 replied at 2020-9-10 11:35 AM
Did you ever figure this out?  I'm having the same issue.

If the Raspberry Pi is turned on, the browser cannot open the web control interface with "Raspberry Pi ip+port number 5000" (for example: 192.168.3.230:5000)
     Please try the following:
     1. Enter the command "sudo killall python3", and then run the webServer.py program "sudo python3 <Your webserver.py file address>" (for example: sudo python3 adeept_rasptank/server/webServer.py)
   2. If an error occurs when running the webServer.py program, please check whether the camera is connected correctly (the metal surface of the camera cable is in contact with the metal surface of the camera)


After the Raspberry Pi is turned on, the browser can access the web control interface with "Raspberry Pi ip + port number 5000", a non-real-time, static video appears, and the robot cannot be controlled to move.
   Please try it:
1. Check whether the Raspberry Pi restarts. "Connect Failed" appears on the web control interface about 1 minute. There is no response when logging in to the Raspberry Pi terminal via ssh.
2. The reason for this phenomenon may be: the battery power is not enough to control the robot with the web control interface. It is recommended to replace the battery.
3. Select high rate discharge 18650 battery or the maximum output current of the battery is at least 4A.





Reply

Use magic Report

0

Threads

2

Posts

8

Credits

Newbie

Rank: 1

Credits
8
Post time 2020-9-14 13:43:48 | Show all posts
Edited by 1599708893 at 2020-9-14 03:32 PM
1597721285 replied at 2020-9-12 06:09 PM
If the Raspberry Pi is turned on, the browser cannot open the web control interface with "Raspberr ...

I am using 2 Sanyo NCR18650GA 3500mAh 10A Batteries.  The connection is solid to the camera that came with the kit and I still have the same issue.  The setup tutorial that was provided with the kit and the online tutorial are VERY different.  I have tried every way I can think of without any luck.  I'm not familiar with python yet so I assume this is some early step issue with the python setup.  I imaged the rasbian variant straight to an SD card and followed the instructions from there.  What I can tell online is the c2p or something like that isn't initiallizing.  do I need to manually adjust the py files on the sd card?

(Edit 1) Currently starting the whole process over just in case but any advice is GREATLY appreciated :-).  My 6 year old daughter is looking forward to playing with this thing when we are done building it together.

(Edit 2)  I did analyze my Pi 4B board before powering it on and there was a small stray solder "line" that I pulled of by rubbing my finger over it.  It wouldn't have affected any circuity otherwise but I am going to disclose that the QC process wasn't top notch.

(Edit 3) After redoing everything... SAME PROBLEM... :-(.  I think the camera that came with the kit is bad.

Reply

Use magic Report

1

Threads

49

Posts

150

Credits

Registered member

Rank: 2

Credits
150
Post time 2020-9-17 18:23:23 | Show all posts
1599708893 replied at 2020-9-14 01:43 PM
I am using 2 Sanyo NCR18650GA 3500mAh 10A Batteries.  The connection is solid to the camera that ca ...

Please check if the camera is installed correctly:
The metal surface of the camera cable is in contact with the metal surface of the camera,
The metal surface of the camera cable is in contact with the metal surface of the camera interface of the Raspberry Pi

After the confirmation is complete, please run the command in the terminal: "raspistill -t 1000 -o image.jpg",
If the camera is installed correctly, the program will not go wrong,
After running the command "ls", a picture of image.jpg can be viewed.

Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules