FarmBot / farmbot_os

The operating system and all related software that runs on FarmBot's Raspberry Pi.
MIT License
1.09k stars 266 forks source link

Broadcom Linux Wireless Driver not initializing properly. #186

Closed mrmadhu closed 7 years ago

mrmadhu commented 8 years ago

Hello

I'm not sure if this was discussed already, as per the setup instruction when i try to configure my home wifi details and save by accessing 192.168.24.1, nothing happens after clicking save configuration button, it stays in the initial screen, i tried using the both the .img file 2.0.3 and 2.0.2 both has the same issue.

Only SSID's that are visible is as following

test_ssid meep lawl

it does not show my home wifi SSID when scanning wifi

Thanks in advance for any help

ConnorRigby commented 8 years ago

ah yeah sorry. those things showing up should never happen on a real Raspberry pi. Im going to push a new release you can try fairly shortly.

jokosup commented 8 years ago

any ETA when can we expect the new release?

ConnorRigby commented 8 years ago

Your on a pi3 correct? this release should work: here

mrmadhu commented 8 years ago

Sorry, It dosent work, it does not scan and show the home wifi SSID

RickCarlino commented 8 years ago

@mrmadhu Can you try opening the JavaScript console and tell me if you see any errors? That might have additional information about what the issue is.

RickCarlino commented 8 years ago

Javascript console is ctrl + shift + J on Linux and Windows. I forget what the hotkey is on Mac.

mrmadhu commented 8 years ago

Please find the attached screen shot farmbot os error

RickCarlino commented 8 years ago

@jokosup @mrmadhu

Ok- we're looking into the issue right now. The weird thing is that if your WiFi configurator is running, the server on port 4000 should, in theory be running also.

A few other questions:

One theory I have (but can't confirm really) would be that your wifi router is blocking port 4000? This would be strange, since your router obviously allows port 80, though. Do you think that is possible? Have you been able to run other services over your LAN?

jokosup commented 8 years ago

Thanks Rick,

  1. I am using ubuntu and windows 7.
  2. Ubee cable modem with router
  3. no firewall software.

i did try with setting up my firewall protection to low in my router as well.

jokosup commented 8 years ago

The wifi sometime work, sometime doesn't.

1476926637901-1890420170

ConnorRigby commented 8 years ago

Ah i see. That is actually a common problem so far. It is a power issue. The PI3 requires more power than previous pis. Something to the tune of 2.5 amps

mrmadhu commented 8 years ago

hello  i'm still stuck, with the same problem even after disabling firewall and higher amps power supply  i'm using a raspberry pi 3  is there any way to ssh to the farmbot os, if yes which ip address ? Madhu

  From: Connor Rigby <notifications@github.com>

To: FarmBot/farmbot_os farmbot_os@noreply.github.com Cc: mrmadhu mrmadhu@yahoo.com; Mention mention@noreply.github.com Sent: Thursday, 20 October 2016, 8:38 Subject: Re: [FarmBot/farmbot_os] Unable to save Wifi configuration (#186)

Closed #186.— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ConnorRigby commented 8 years ago

There is no ssh into it yet. (tho it is a feature we are working on)

But i made it on the latest release be able to plug a mouse and keyboard and use the shell over hdmi.

What is the amperage of you power supply?

jokosup commented 8 years ago

i am using 2.1A usb from the power plug.

it works fine when i run Raspbian Jessie, but not the farmbot_os. what makes farmbot_os needs more power?

ConnorRigby commented 8 years ago

Im beginning to think it is not a power issue. 2.1 amps should be enough. I can't reproduce locally so i am going to be testing some things on other peoples environments.

ConnorRigby commented 8 years ago

relevant kernel logs:

brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done for chip 43430 rev 1 pmurev 24
brcmfmac_sdio mmc0:0001:1: Direct firmware load for brcm/brcmfmac4330-sdio.txt failed with error -2
brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
RickCarlino commented 8 years ago

@jokosup @mrmadhu We're still investigating, but thanks for all the great information so far. It appears to be a driver issue.

ConnorRigby commented 8 years ago

@jokosup can you try to boot your pi without a hdmi cable plugged in?

jokosup commented 8 years ago

yes, i have tried that. same results.

mrmadhu commented 8 years ago

Same result for me as well

ConnorRigby commented 8 years ago

@jokosup and @mrmadhu

can you guys please try flashing the pre-release for me? get it here Try it with and without HDMI plugged in.

mrmadhu commented 8 years ago

Hi just tried, its able to connect to home wifi and gets an IP

but no luck with my.farmbot.io connectivity or no way to login to the OS, via SSH

Madhu

ConnorRigby commented 8 years ago

@mrmadhu have you created an account on my.farmbot.io first?

mrmadhu commented 8 years ago

yes and the id was configured on the wificonfigurator page

ConnorRigby commented 8 years ago

can you try creating an account on http://staging.farmbot.io and using those same credentials on configurator?

mrmadhu commented 8 years ago

do i need to re-image the sd card again ?

ConnorRigby commented 8 years ago

If wifi configurator comes up you dont, but if its 'bricked' then you will

mrmadhu commented 8 years ago

@ConnorRigby it connects to staging and gets a message that "BOT status OK , but no control of stepper

jokosup commented 8 years ago

I am able to connect to the FarmbotConfigurator, but when i click Save Configuration, it got the "TRYING TO LOGIN" response. then lost the WiFi. i deleted the files from AppData and restart it again, WiFi came back.

jokosup commented 8 years ago

Finally, i see the BOT status OK too.. and able to shutdown my device from the web. I haven't install my motors yet.. will test again later...

mrmadhu commented 8 years ago

@ConnorRigby , still stuck, i'm able to shutdown pi from the web, and there is a success message for every command send from the web like absolute x move, but no movement at the stepper, any way to find out what exactly is happening with arduino communication ?

jokosup commented 8 years ago

i am having the same issue as @mrmadhu. no movement at the stepper.

ConnorRigby commented 8 years ago

sorry guys my last comment got lost in transit I guess.

Two things.

  1. Your Arduins need an update. The hardware is all working fine, the Arduino just doesn't have matching firmware. If you guys run Linux I can walk you thru updating them being that In the alpha release I gave you, the OTA updates are broken.
  2. The wifi issue is in fact power related. If it happens again you will need to source a good 5v 2.5 amp power supply.
mrmadhu commented 8 years ago

@ConnorRigby will get a linux Vbox, request you to please share the steps

ConnorRigby commented 8 years ago

ok.

ConnorRigby commented 8 years ago

@mrmadhu @jokosup I made a beta release you can try instetad of the above steps. When your bot boots you should be able to hit the Firmware Updates Available button and it will update your arduino. screenshot from 2016-10-23 11-44-33

NOTE

Do NOT hit the Controller Updates Available button. It will actually make your bot go back to an older release. (because the image your using is beta)

jokosup commented 8 years ago

unable to update the Firmware, it seems stuck in updating FW

screenshot from 2016-10-23 19-45-29

jokosup commented 8 years ago

by the way, the stepper motor is now working. toggle switch tools (vacuum, water valve and led) are working as well. I only tested one motor as i only have 1 stepper motor driver right now (will have more tomorrow). Camera does not work, what should i put the value for camera's url?

roryaronson commented 8 years ago

@jokosup, the camera widget on the web app works with any webcam stream URL, but you have to setup a stream yourself. Right now the OS does not automatically stream the pi camera or a USB camera video, though that would be a nice feature! In the meantime if you set up something external, you can use that.

By the way, do you know the reason why the motors were not working for you before?

mrmadhu commented 7 years ago

still stuck with stepper motor issue, even after updating with new firmware. @ConnorRigby - the new image that you have uploaded with arduino fix has wifi configuration issue again

jokosup commented 7 years ago

@roryaronson ok. the new firmware fixed it.

@mrmadhu try update the Arduino firmware with this command: wget https://gist.githubusercontent.com/ConnorRigby/b8acfeb91d1c087680efeb489d9c926c/raw/c89db6f40e44fca484635007bf7b1733ecf7fd64/update.sh -qO- | bash -s and also deploy the beta version of farmbot_os. Can you also make sure that the stepper drivers and motors are installed and connected properly.

ConnorRigby commented 7 years ago

So the WiFi issue is power related actually. My latest beta image just shaves some power requirements off. You need at MINIMUM 2.5 amps from a 5 volt power supply. We will be shipping with a 3 amp psu.

mrmadhu commented 7 years ago

Perfect @ConnorRigby all well with the new image 2.1.0, all works well with 2.1 amps, great job ....

mrmadhu commented 7 years ago

there are issues with web app, not sure if we need to put this into a new issue

RickCarlino commented 7 years ago

@mrmadhu Yes, please do. Preferably at the Repository for the frontend: https://github.com/FarmBot/farmbot-web-frontend

Thanks for all your help so far.

ConnorRigby commented 7 years ago

Thanks for your patience guys!

ConnorRigby commented 7 years ago

@mrmadhu Ah this is good news. Your arduino needs an update though and github is down due to DNS errors i believe. (Github hosts our arduino firmware releases)

@joko when you connect, you will loose wifi. (The raspberry pi can not operate in wifi hotspot mode, and client mode at the same time) Does it scan for networks? if you provided good credentials you will no longer see FarmbotConfigurator.

On Fri, Oct 21, 2016 at 9:23 AM, Joko notifications@github.com wrote:

I am able to connect to the FarmbotConfigurator, but when i click Save Configuration, it got the "TRYING TO LOGIN" response. then lost the WiFi. i deleted the files from AppData and restart it again, WiFi came back.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FarmBot/farmbot_os/issues/186#issuecomment-255420807, or mute the thread https://github.com/notifications/unsubscribe-auth/AUK8bqV_WIv4oKI8thNxCaeDQVwWi3Oaks5q2OcUgaJpZM4KXpzj .

ConnorRigby commented 7 years ago

Yes unfortunately your arduinos will need an update but if i remember correctly the button to make them update is broken. If you guys run linux i can walk you thru updating them from your normal pc

On Sat, Oct 22, 2016 at 9:54 AM, Joko notifications@github.com wrote:

i am having the same issue as @mrmadhu https://github.com/mrmadhu. no movement at the stepper.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FarmBot/farmbot_os/issues/186#issuecomment-255539945, or mute the thread https://github.com/notifications/unsubscribe-auth/AUK8bhq08GTKWcL6IWY60gR9D9VcmRyZks5q2j_OgaJpZM4KXpzj .

jokosup commented 7 years ago

@ConnorRigby i found that my router setting needs to be adjusted. the PSK is not enabled in my guest network.

Do you make any updates on the staging site this morning, none of the features are working. BOT is connected, but when clicking any buttons or setting, it throwing an errors.

ConnorRigby commented 7 years ago

@jokosup you probably need to reboot your bot.