Go to Post we've got three years to perfect it. And then... who knows? - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2016, 20:32
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,116
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
OM5P-AN router - NPF Error

I am trying to use the FRC configuration utility (FRC_Radio_Configuration_16_2) to load the firmware onto the radio (OM5P-AN router). On multiple computers, I launch the program, select the Ethernet port, and hit the "Load Firmware" button. I then get the error:

Quote:
Bridge firmware load field. Error finding NPF device name for adapter: Realtek PCIe FE Family Controller #2
Please reset the bridge and try again
Any idea what is wrong?

I ran as administrator
Disabled the wifi adapter
enabled sharing on the adapter
set the ip address to dynamic
disabled antivirus
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2016, 01:32
cglrcng cglrcng is offline
Registered User
FRC #0060
 
Join Date: Jan 2013
Location: Kingman, AZ
Posts: 420
cglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond repute
Talking Re: OM5P-AN router - NPF Error

OK, just went through the pain you are going through right now. We started here:

https://wpilib.screenstepslive.com/s...o-for-home-use

Then we read the section:
________________________
"OM5P-AN Firmware Note

For the FRC Radio Configuration Utility to program the OM5P-AN radio, the radio must be running an FRC specific build of the OpenWRT firmware. Radios recieved in the KOP are already flashed with the FRC firmware and should not need to be re-flashed, proceed to the next step.

If you do need to re-flash the firmware, or reset the radio (the only way to reset is to re-flash), see the instructions at the end of this document on how to do so using the FRC Radio Configuration Utility."
______________________
Short answer is...No FIRMWARE FILE YET EXISTS ON THE RADIO.

Those instructions and the Radio Config. Utility did not work repeatedly using 2 different laptops either updating firmware or configuring the radio!

My frustration level was super high at this point:

After attempting to configure or flash the firmware (repeatedly), the new radio/bridge via the instructions written by WPI and the radio config. utility for/from the FIRST website last night and early today during shop time, we finally gave up and I asked a student to search CD for another solution from others with the same issues/problems. That led her to this thread and 2 others.

I read each thread she found, and found the solution (a solution that worked for another party here). That solution contained a process completely different than the FIRST published directions using OpenWRT (3 different downloads and a CMD window with Admin priv., and those instructions are contained on the AndyMark website. See:

http://www.chiefdelphi.com/forums/sh...d.php?t=141981

http://www.andymark.com/OM5P-AN-p/am-3277.htm

http://files.andymark.com/OM5P-AN_QuickAP_Setup.pdf I found them tonight!

(I guess that you must e-mail AndyMark to receive the actual instructions to flash the firmware). I certainly thank the OP here at CD for the address listed in their thread, and will update tomorrow w/ the proper link to the instructions hosted by AndyMark) Though I do not know why that link isn't on their pages for the radio (though I thank them for having them available via asking by e-mail), or on the FIRST website.


http://files.andymark.com/OM5P-AN_QuickAP_Setup.pdf

I then followed those OpenWRT flashing instructions and the laptop I was using during the CMD window to flash the radio (a Win 7 unit), did not locate the laptop's NIC Device (there was no list of devices generated in the CMD window at the proper point of the flashing start, to start choosing a NIC device)...It did not list the laptop NIC, then the CMD window froze and no further character entries were allowed in the command window.

Lucky me, I was frustrated beyond belief at this point. So I texted/called my eldest son (An FTAA, heading to FTA training this week, and a wiz of a longtime educated network administrator....NATE, and hollered and begged for h-e-l-p.

I also asked him after we get the radio flashed and know the proper procedure, if he would beg FIRST to add the correct procedure to their website this weekend when he arrives for FTA Training in N.H. since the utility will not actually update the firmware if no firmware bin file is written into the radio to begin with.

Here is what we found out...OUR RADIO FIRMWARE WAS NOT PRE-FLASHED per the WPI/FIRST instructions. (It did not overwrite or clear the blocks once we switched laptops to a Win 10 unit that actually listed the devices once launching the update file and the bin file containing folder...and once Device 1 was chosen (that NIC in the laptop), it loaded the files and reopened the CMD Window, IMPORTANT Note: though we needed to power cycle the radio to actually start it flashing the firmware (Warning: It felt so out of character to a computer repair technician-ergo...ME, to unplug/re-plug in any item during a firmware/BIOS flash process, but it was actually necessary to start the firmware update though, go figure)...It started immediately upon plugging the radio back in...It just prepared then wrote the firmware bin file properly while I watched using the OpenWRT flashing executable and the bin file together.

(I also waited an hour the other night as we updated the RoboRIO because it still said "Firmware Updating......" after the animation window went away within 4 minutes. I feared bricking/door stopping the RoboRIO...When I flashed it the second time to update it to the latest 3.0.0... file, I knew it was completed within a few minutes!)

We still need to now configure the radio tomorrow using the balance of the instructions we will print out tomorrow. (The AndyMark instructions). Then we will test the Radio Configuration Utility also.

OK here is the link to the AndyMark instructions. WE WERE SUCCESSFUL IN UPDATING THE FIRMWARE using this process.

(I will post the link tomorrow, or you may e-mail AndyMark if you need it before then). See above I found both the CD thread (TY to the participants of that thread), and the AM link.

Other Notes: (Our experiences).

1. Get the required 3 downloads. Note: When going to the OpenWRT website it is strictly a file index depository...That entire link (as posted in the instructions), ends in a 404 not found page.

Copy the entire link, paste it into a web browser, then go to the end of the address, then backspace leaving the word (Crap, I will have to put this word in tomorrow) as using only about half the link gets you to the actual correct website/webpage file directory/depository. (I just started removing words, and refreshing the browser after each removal until I reached the proper page).

Then you go to column 4, and scroll down to the only entry that lists "om5p" and (save target as: to download the flash file).......I am sorry but since the AndyMark website does not have the actual instructions posted (takes e-mailing them to receive said instructions), I will have to finish this post tomorrow when I have all the links available that are on 1 of our driver station laptops at school.

2. I deposited the 2 files (the OpenWRT Flash.exe file, and the BIN file), in a folder on the root drive (C:\om5p). Install the other application (if you have been attempting to use the Radio Config. Utility...Then you have already downloaded and installed both Java and the other needed application file and program).

3. As soon as the firmware update is complete on Win 10, an "all devices discovery allowance" window will open on the right side of the screen, click YES to that window, then the radio is discovered, and you can go on to load the browser called for in the instructions and set up to configure the radio using the Radio Config. Utility.

4. You do not actually have to disable the wireless NIC IF you know the name of your Ethernet NIC. (Once we switched over to the Win10 Laptop, we still had the browsers w/ instructions still open, and wireless running), we just chose the proper NIC Adapter listed in 1.

5. After giving the command to flash using CMD, radio was on, we unplugged it and plugged it back in (power cycled the radio), and the firmware updating began.

6. Nate taught this old dog some new tricks w/ CMD addressing or command window shortcuts that I have never actually used before...Thanks Nate my son!

I will update this post tomorrow evening (1/21/16), with the rest of the info in proper order (the CMD commands we used to actually complete the firmware update w/ the shortcuts, as long as just those 2 files are properly placed on root in a single folder).

Last edited by cglrcng : 21-01-2016 at 01:43. Reason: Additions
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2016, 09:06
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,695
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: OM5P-AN router - NPF Error

If you choose to follow the AndyMark instructions, I suggest simply substituting the FRC specific firmware file for the non-FRC radio firmware.

The FRC specific version is located at C:\\Program Files\FRC Radio Configuration Utility\firmware.bin

The ap51-flash.exe program is also there and can be used following the AndyMark directions.
That's all you need for flashing the firmware.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-01-2016 at 09:15.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2016, 10:07
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,116
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: OM5P-AN router - NPF Error

According to this Q&A, the FRC Firmware is different from the OpenWrt Firmware. Since I could get the Andymark Instructions to work, I looked to see if I could find the firmware. While FRC is correct that the FRC firmware is not available for "separate download", a quick inspection reveals it is part of the FRC Radio Configuration Download as Mark mentioned in the prior post.

By the way, the NPF error has nothing to do with the status (firmware or otherwise) of the OM5P-AN, as the OM5P-AN is not yet connected to the computer.

Here is what I did:

1) Make sure your Hardwire Ethernet Connection (not wifi) is set to "Obtain an IP address automatically". You can find it in your control panel/network connections, and select Properties of the correct adapter. Look for something with IPV4, and select the properties of that.

2) Note the name of the hardwire ethernet connection.

3) Install the FRC Radio Configuration utility. I presume if you are reading this post, you have already done that and are frustrated at the Bridge errors.

4) run "cmd" to open up a DOS Command window. Steps 5-8 are done in the Command Window.

5) Navigate to the FRC Radio Configuration utility. The default is something like: "C:\\Program Files\FRC Radio Configuration Utility\". In the command window the following commands will get you there:
Quote:
c:
cd "\program files\frc radio configuration utility"
6) type "ap51-flash". It will list the ethernet adapters. Note the number of the adapter for your hardwire connection.

7) Make sure the power for the OM5P-AN is unplugged, and the connection to the ethernet is connected to the outside port (the one farthest away from the power port).

6) type "ap51-flash <adapter number> firmware.bin"

7) when the program says "listening ...", plug in the power for the OM5P-AN

8) When it says "device ready to be unplugged", unplug the power from the OM5P-AN, and plug it back in. It will take a minute for the OM5P-AN to reboot. The power light will go on. It will go off. Finally it will come back on with the port light also lit.

9) You should now have the correct firmware, and can run the FRC Configuration Utility to Configure the Router. It may take a minute for the program to "find" the Router. If it fails, just try again. We had to press the "configure" button twice before it found the router and configured it.

Note: until we get to an event, I can't confirm that the above procedure is correct. But, it seems like it to me.

Note 2: We have 3 radios (router) for multiple robots (including prior year). In order to run more than one robot simultaneously, you need to give each radio a unique SSID. While you could give each radio a different team number (with the FRC Configuration Utility), that would make you change the driver station too. What we did is installed the openwrt firmware on the other radios, and gave them a different SSID. The Driver Station then picks the right wifi SSID to connect to for that robot. Andymark took down the instructions for that from the product webpage, but you can email them for the instructions.
Reply With Quote
  #5   Spotlight this post!  
Unread 22-01-2016, 14:43
cglrcng cglrcng is offline
Registered User
FRC #0060
 
Join Date: Jan 2013
Location: Kingman, AZ
Posts: 420
cglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond reputecglrcng has a reputation beyond repute
Re: OM5P-AN router - NPF Error

Just an update to my post above:

We followed the rest of the Andy Mark directions for configuring the radio and it worked like a charm.

I can see where Rich's & Mark's directions above would also get you there, but, with no firmware flashed/installed on the radio already, just using the Config. utility alone without the CMD Window and a copy of the flash & .bin files, it simply does not.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:56.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi