Quantcast
Viewing all 168 articles
Browse latest View live

Budweiser Red Light USA

After 100 tries trying to connect my Samsung s6 at 2.4ghz to the red light, i am at my wits end trying to get it to work. I followed the step by step i have seen other post, but nothing has worked. My nightcrawler router does not have a block from allowing this to work, i was sure to use 2.4ghz, i have replaced the batteries and now have no clue what to do. PLEASE ANYONE>>>>>>I NEED HELP!

Can I install 2 Budwesier Red Lights on same WiFi network?

Hey folks (newbie 2nd post - didn't know if I should continue existing thread or start new, so started new)

I may have already answered my own question. Can I connect 2 Budweiser Red Lights to the same WiFi network?

The Bud app does not allow for adding another lamp, so I was able to connect 2 lamps using the app on my phone and ipad. Both will test via button and at first with their respective apps. Eventually only one tests with app. The other does nothing.

FYI, I first tried the "blinkup", I think you guys call it, where the app connects using the blinking screen by just having both lamps watch the same phone screen. Both went green but only one would test via the app.

I've only been able to watch one hockey game so far an neither worked at all. I assume that a Budweiser issue.

Budweiser redlight wont connect

Hey guys! Pretty new to this imp stuff... I recently got a Budweiser Redlight and i just cant seem to connect it at all.. when it say to put my phone on the sensor the redlight stops blinking.. then it blinks once.. the app tells me ''connecting'' and then it goes to a oops try again page... every single time.. then the wifi light starts blinking red again.. rinse and repeat

Heres what i got so far as information to try to get some help?:

-Its the new version of the light so the card is built in.
-I write the good SSID and password i tried with a different device to make sure it wasnt typos or caps
-My router is 2.4GHz
-My app is on an Android Device ( version 6.0.1 )
-Router is on channel 11

Sorry for my rough english but any help would be appreciated :) I tried contacting budweiser but it seem they are always closed when i call...

-Kevin

Imp to Imp?

Is it possible to communicate directly between imps via wifi? If so, I would like to see some code snips to implement that. Barring direct coms, I'm going to ask about the next best solution to what I want to do. Is it possible to link multiple imps to the same agent and have the agent shuttle data between imps? And again, if so, please point me to some sample code snips.

Imp005 Ethernet only?

We are considering a project where WiFi functionality would be phased in later. Is it possible to use Imp005 with only an Ethernet connection? If so, would we need to have Blink up working at that time, or could we phase that in too?

New Imp - no Wifi - no matter what - SOLVED

I was so excited to get the imp.

Got it powered up via the Sparkfun breakout board.

Got it to flash orange.

Checked my router, made sure it's only operating in B/G mode, 2.4 ghz, WEP encryption, even named the SSID imp.

Installed Blinkup on my iPhone, entered the SSID, and password.

I've tried everything, when Blinkup flashes, the imp stops, then quickly turns green for 1/2 second then goes to orange
again.

I've even tried the battery, placed the imp right on top of the router.

Unless there's something that I am overlooking, this is a huge disappointment after all the hoopla about this device.

Any suggestions I have not tried in the last 6 hours?.....................

Miniature Smart Home Project

Hi,

Working on this project but struggling to get my head around how everything will work together.

So I have a very large doll house which is kitted out with loads of different smart home like devices (eg lights that can go on/off, front/garage door which can open/close all controlled via electric imps. - fully functional independently

I am aiming to create a web app which is a central control hub for all these devices.

The components I currently have and plan on using are: web app made of bootstrap, mysql database, electric imp. Plan on using php and possibly json(?) but cant quite figure out clearly how everything should work together and in what order I should do things. Not looking for a bunch of code but more just the steps I need to take in order to achieve a website where I can switch the lights of the house and turn the heating on etc....

Any points I've missed out let me know and ill try answer.
Thanks in advance.

first time ever - power cycle required to get device online again

I've got 20 devices under the same model. Yesterday I updated the agent code and use the API to reprogram all with the update. After this 2 devices did not come back online (a 3rd had dropped off due to unrelated issues I think)

The devices are relatively local so I was able to visit them and cycle power to get them online.

Any thoughts how they got into this state.

thoughts on feedback to android when imp01 device is offline, or no wifi available

as per the title, i am asking for members views on what whould be an acceptable way to alert a android phone that the device is not responding or is not powered up or no wifi. I have currently an imp01 with a simple setup, a led on pin1 and a led on pin2. I have a very basic app created in appinventor on my android phone, (galaxy note2), that when i press a button , it sends to agent to turn on led1, on pin1 on the imp, press again turn off led1, press another button turn on led2, press again turn off led 2, fine that works ok, as this is all in front of me working. I have the agent sending back to my phone the time that the event was triggered as well, so when i press the buttons on the phone i get back " Red led turned on at 09:42.27 ", the time created from the agent, regardless of whether the device actually was online or not. included in my code was server send, so i can see on the console the agent time sent, and can see if the device is online or not in the IDE, but from the user of the android the feedback is really only confirming that i made contact with the agent, not the device. What could i use, back from the device as well to my app, i thought about maybe using a pin to read a ADC value and send that to my phone, or maybe create a random number and send that, maybe something else, not sure. If i replaced the leds with a relay, and was say opening /closing a door striker, there would always be a niggling worry, did the door actually close or open. The workaround may be so simple, however i am working from a very limited knowledge of the Imp and the agent/imp relationship, everthing i have achieved upto now is from example code in the docs and little snippets from the forum, learning as i go. Im not after anyone writing code for me, more pointers, i want to learn as much as i can by myself.
Thanks for any replies, TOM.

imp restarted, reason: memory error

Hi everyone,

I've had an electricimp controlling a relay for about 3 years, running the same code without any issue. Recently I had to update the code to remove a couple of deprecated/not-supported-anymore calls and ever since a made the changes, I'm seeing random restarts, pointing the reason is memory error.

I've gone through the code many times, but I don't seem to find anything that could be causing this (maybe an infinite recursion, or some excess memory allocation?).

This is an excerpt of the log; there is a suspicious amount of reconnects, likely those are also resets

2015-11-20 23:30:17 UTC+1 [Status] Device connected
2015-11-20 23:30:17 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-20 23:30:48 UTC+1 [Exit Code] imp restarted, reason: memory error
2015-11-20 23:30:48 UTC+1 [Status] Device connected
2015-11-20 23:30:48 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-20 23:31:52 UTC+1 [Status] Device connected
2015-11-20 23:31:52 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-20 23:35:08 UTC+1 [Status] Device connected
2015-11-20 23:35:09 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-20 23:37:04 UTC+1 [Status] Device connected
2015-11-20 23:37:04 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:00:45 UTC+1 [Status] Device connected
2015-11-21 00:00:45 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:03:31 UTC+1 [Status] Device connected
2015-11-21 00:03:31 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:04:49 UTC+1 [Status] Device connected
2015-11-21 00:04:49 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:05:04 UTC+1 [Status] Device connected
2015-11-21 00:05:04 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:05:55 UTC+1 [Status] Device connected
2015-11-21 00:05:56 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:06:31 UTC+1 [Status] Device connected
2015-11-21 00:06:31 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:07:32 UTC+1 [Status] Device connected
2015-11-21 00:07:32 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:07:45 UTC+1 [Exit Code] imp restarted, reason: memory error
2015-11-21 00:07:45 UTC+1 [Status] Device connected
2015-11-21 00:07:45 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:07:57 UTC+1 [Status] Device connected
2015-11-21 00:07:57 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:08:09 UTC+1 [Status] Device connected
2015-11-21 00:08:09 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:08:22 UTC+1 [Status] Device connected
2015-11-21 00:08:22 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:08:33 UTC+1 [Exit Code] imp restarted, reason: memory error
2015-11-21 00:08:33 UTC+1 [Status] Device connected
2015-11-21 00:08:34 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-21 00:09:42 UTC+1 [Status] Device connected
2015-11-21 00:09:42 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-22 07:32:23 UTC+1 [Status] Device connected
2015-11-22 07:32:24 UTC+1 [Device] 78f540f - release-32.12 - Thu Jul 16 09:55:33 2015
2015-11-22 07:33:19 UTC+1 [Agent] Received state: 0
2015-11-22 07:33:19 UTC+1 [Agent] My state: 1
This is the code on the device:

local currentState = 0;


/* __ State management ______________________________________________________ */


function ConfigureThermostatState()
{
/* Relay pin */
hardware.pin8.configure(DIGITAL_OUT);

/* Button pin */
hardware.pin9.configure(DIGITAL_IN_PULLUP, ButtonChanged);

/* Retrieve any previous state in server storage */
if ("lastState" in server.permanent)
{
currentState = server.permanent.lastState;
//server.log("Loaded: " + currentState);
SetState(currentState);
}
}

// value = 0: relay ON
// value = 1: relay OFF
function SetState(value)
{
//server.log("D: SetState f: " + value);
local bit = value.tointeger();
//server.log("D: SetState b: " + bit);
hardware.pin8.write(bit);
imp.sleep(0.5);
//server.show(format("State: %s", bit ? "On" : "Off"));
currentState = bit;
}

function GetState()
{
return hardware.pin8.read();
}

function GetButtonState()
{
return hardware.pin9.read();
}

function ButtonChanged()
{
// Process button_down only
if (GetButtonState() == 1) return;

//server.log("Button pressed");

SetState(GetReverseState());
SaveCurrentState();
}

function GetReverseState()
{
return currentState == 0 ? 1 : 0;
}

function SaveCurrentState()
{
//server.log("save: " + currentState);
server.setpermanentvalues( { lastState = currentState } );

// Send to the server for consumption logging
// server.log("send state to server: " + currentState);
agent.send("setstateresponse", currentState);
}


/* __ Watchdog ______________________________________________________________ */


/* This code prevents NAT routers from dropping the connection after
inactivity by pinging the server every 5 minutes (the ping is actually done
by the wakeup call)
*/

function WatchdogHandler() {
imp.wakeup(5 * 60, WatchdogHandler);
//server.log("ss " + GetSignalStrength());
}

function GetSignalStrength()
{
local dbs = imp.rssi();
if (dbs < -87) return "-----";
if (dbs < -82) return "O----";
if (dbs < -77) return "OO---";
if (dbs < -72) return "OOO--";
if (dbs < -67) return "OOOO-";
if (dbs == 0) return "Wifi off";

return "OOOOO";
}

/* __ Agent commands ________________________________________________________ */


agent.on("querystate", function(msg)
{
agent.send("querystateresponse", GetState());
});

agent.on("setstate", function(msg)
{
//server.log("D: SetState: " + msg);

// Reverse
local bit = msg.tointeger();
bit = bit == 0 ? 1 : 0;

SetState(bit);
SaveCurrentState();

});


/* __ Initialization ________________________________________________________ */

server.log(imp.getsoftwareversion());

WatchdogHandler();
ConfigureThermostatState();

Any help would be much appreciated!

Cheers,

David

Downloading new code ... impExplorer

Hi, I have an impExplorer and I'm testing the demo refirgerator, but when I build and run some modification, the module does not load the new program, the "Downloading new code;" message in the log window does not appear. For this I need to turn the module on and off.

http.onrequest POST strangeness today

I'm not sure what's happened but as of around mid-day lots of things stopped working for me that had been working OK for years: Certain http POST requests to my imp agent are being received as method="GET"!

These requests are all variously sourced from my home network (e.g. Raspberry Pi, ESP8266 and manual testing using the Postman app) The only external POST requests I have are coming in from Amazon servers - and they are received OK as method="POST". This is really puzzling me now. I very much doubt that it's a problem with the imp servers but I'm stuck for ideas on how to go about figuring out what's happening.

Whitelisting URLs used for communication

We have a client who wants to whitelist URLs on the 31314, 993 & 80 ports. What URLs does the imp use in communicating?

Thanks

Loading the IMP004m Operating System

Just doing some research on the IMP004m and found some ambiguous information: the description of the IMP004m on the Mouser website states "The fully maintained, secure OS that is part of the Electric Imp cloud service comes pre-loaded.", yet according to the IMP004m hardware design guide the OS must be loaded to an external SPI flash prior to use. I assume the latter is correct (though I'd personally prefer it to be loaded ready to go out of the box).

I have a bunch of IMP001 and IMP003s lying around, which I imagine could be used in some way to load the OS image to the IMP004m SPI flash but I'm not much of a coder so I'm struggling to work out how to do it. How does one load the OS image to the SPI flash?

Would it be possible for the Electric IMP crew to create Agent and Device code for surrogate IMPs to facilitate loading the OS image from an Electric Imp server to the IMP004m SPI flash? That would be sweet! ;-)

Serial LCD on imp April board Requires "inverted UART" to tx/rcv signals, can it be done in software

Serial LCD on imp April board Requires "inverted UART" to tx/rcv signals, can it be done in software.
i have a 16 X 2 line LCD, seetron.com , model BP216, can i use it, or would it be simpler to invert the signal with a hardware inverter.I have it working ok on Arduino, using "software Serial", where you can code it to invert, SoftwareSerial mySerial(10, 11,true); // RX, TX, easy.

Any pitfalls to operating Imp devices behind Great Firewall?

Hi,

We're considering some deployments in China and were curious if there were any known issues we should be aware of. Electric Imp have recommended a factory accelerator box for us to improve packet loss during the blessing process at our Chinese factory, for example.

But for production devices out in the field, should we expect any challenges connecting to the Imp Cloud from behind the Great Firewall?

Thanks!

Seeing Imp on Wifi device list, but don't have one

Electric Imp is showing up as a device on my home network (with minimal data use associated with it), but to my knowledge, I don't have one of these critters--any idea what's up? Thanks!

high side LED drive from microcontroller


i just stumbled upon this website. i would like to learn how to switch high side of leds out of a PIC microcontroller using mosfets/transistors. 2 output of uC has 4 leads connected to each which need driven separately. Any input is appreciated!

impExplorer kit now available on Amazon

See http://a.co/8VHnzKD ... $24.95 including an imp001!

This is a great way to get started with Electric Imp, and actually just a great little environmental sensor too if you need one of those. It's really intended for people averse to soldering and breadboards - there's no breadboard pins like an April.

Power is via USB (5v max) or 3xAA cells. You can get down to about 50uA with the imp sleeping (waking up on RTC) with all the sensors shut down, so you can get years of battery life.

It's got a temperature & humidity sensor, an air pressure sensor, and a 3-axis accelerometer. It can wake from these too, if needed. For output, there's a single WS2812 RGB LED, plus pads to daisychain more if needed.

Lastly, it's got 4 grove headers: 2x I2C headers (3.3v power) and 2x generic IO headers (3.3v switched power); there are various nice things that can sit on I2C (eg displays) and the generic headers have one I/O each, which can be analog or digital and can be used to add buttons or relays etc.

@smittytone has expanded our getting started guide to walk through some simple control & sensing projects - get started here: https://www.electricimp.com/docs/gettingstarted/explorer/blinkup/

WIll the EI store be selling outside of the USA anytime soon?

The IMP Fieldbus looks great and I'd like to buy one but the EI store only ships to the USA. Will this change anytime soon? If not I'll pay a premium and use one of the fake address/forwarding companies because I want to get me hands on one!
Viewing all 168 articles
Browse latest View live