arduino - Booting programs from an Intel Edison board -
i bought intel edison breakout board kit grove starter kit plus want write program gives board ip address, checks temperature in room , if temperature exceeded turns led on. can check what's going on rgb display. when connect usb otg port laptop wifi connection detected, ip address received , temperature control works fine. program works ask for. questions. execute same program unplugging usb connection, make board independent pc, if standing alone device
1) if upload working program in board, unplugging usb , of course giving power supply through jack on breakout board not work anymore , stops on message "preparing network connection...". intel edison has integrated wifi module , can't understand why not able establish internet connection anymore without of usb connection laptop. what's wrong it? how boot , execute program power supply? setup function() of program, don't reach loop() 1 not post it
void setup() { // ------ lcd in action ------ // // set lcd's number of columns , rows: lcd.begin(16, 2); // setting color connection lcd.setrgb(colorr, colorg, colorb); lcd.print("preparing network connection..."); // scroll 40 positions (string length) left // move offscreen left: (int positioncounter = 0; positioncounter < 40; positioncounter++) { // scroll 1 position left: lcd.scrolldisplayleft(); // wait bit: delay(350); } // ------ serial connection ------ // // opening serial connection // serial.begin(9600); // initialize serial communication // ------ setting i/o pins ------ // pinmode(potentiometer, input); // angle sensor's pin input. pinmode(12, output); // set blue led pin mode pinmode(13, output); // set red led pin mode pinmode(pinled, output); // set green led pin mode // ------ wifi connection controls ------ // // check presence of wifi shield: if (wifi.status() == wl_no_shield) { // serial.println("wifi shield not present"); while(true); // don't continue } // check firmware version string fv = wifi.firmwareversion(); // if( fv != "1.1.0" ) // serial.println("please upgrade firmware"); // ------ wifi connection ------ // // attempt connect wifi network: while (status != wl_connected) { // serial.print("attempting connect network named: "); // serial.println(ssid); // print network name (ssid); // connect wpa/wpa2 network. change line if using open or wep network: status = wifi.begin(ssid, pass); // wait 3 seconds connection: delay(3000); } server.begin(); // start web server on port 70 printwifistatus();
where
void printwifistatus() { // print ssid of network you're attached to: // serial.print("ssid: "); // serial.println(wifi.ssid()); colorr = 255; colorg = 180; colorb = 0; lcd.clear(); lcd.setrgb(colorr, colorg, colorb); lcd.print(wifi.ssid()); delay(3000); // print wifi shield's ip address: ipaddress ip = wifi.localip(); // serial.print("ip address: "); // serial.println(ip); colorr = 0; colorg = 255; colorb = 0; lcd.setcursor(0, 1); lcd.setrgb(colorr, colorg, colorb); lcd.print(ip); delay(3000); /* delay(5000); colorr = 180; colorg = 255; colorb = 255; lcd.setrgb(colorr, colorg, colorb); lcd.nodisplay(); */ // print received signal strength: long rssi = wifi.rssi(); // serial.print("signal strength (rssi):"); // serial.print(rssi); // serial.println(" dbm"); // print go in browser: // serial.print("to see page in action, open browser http://"); // serial.println(ip); }
2) execution of pre-loaded programs: if load default blink program of arduinoide, unplug usb , give power supply works [this 1 correctly self-booted, yes] if upload same program serial.begin() , serial.print("arduino blinking") doesn't work anymore without usb connection laptop [this why commented serial stuff before]. because board smart detect in first case serial connection not happening?
3) last question program storage: when compile program arduino ide gives me percentage of memory used related available 1 programs
sketch using 103.266 byte (1%) of program memory. limit 10.000.000 byte
but intel edison has 4gb emmc why there 10mb available programs? in memory programs uploaded?
thanks in advance try help
do know how can check stored?
you can check files on serial communication terminal. if have possible directories file in, can use linux commands like:
cd directory
, ls
or can 'search' file if know name. may want check this site.
or can use scp, ftp client programs winscp see files on edison.