Back to Smartcitizen.me

Cannot configure sck with webinterface or arduino ide

hi,

i am pretty new to smartcitizen and probably i am making a basic mistake trying to configure my new device version 1.1

after configuring via webinterface failed at step “Checking your Smart Citizen Kit version. This could take a while, please wait.” => lasts forever
i tried with arduino ide (installed as debian package) uploading
https://github.com/fablabbcn/Smart-Citizen-Kit/blob/master/sck_beta_v0_8_6/sck_beta_v0_8_6.ino
but i simply get an “error compiling”:
sck_beta_v0_8_6.ino: In function ‘void setup()’: sck_beta_v0_8_6.ino:78:12: error: ‘sckBegin’ was not declared in this scope sck_beta_v0_8_6.ino:81:12: error: ‘sckSleep’ was not declared in this scope sck_beta_v0_8_6.ino:88:13: error: ‘sckConfig’ was not declared in this scope sck_beta_v0_8_6.ino:89:58: error: ‘sckReadData’ was not declared in this scope sck_beta_v0_8_6.ino:91:46: error: ‘sckReadintEEPROM’ was not declared in this scope ...and lots more error messages...

the only thing i could upload so far was:

and i expected some output like “Trying to connect.” on the serial monitor, but i saw nothing like this.

since i am also quite new to arduino ide it more and more feels like being on the completely wrong path.

can anyone help here?

thanks

tom

Hi @tomscherl, I am sorry to read that you are having issues setting up your kit. The Smart Uploader configuration tool should work correctly. I am using it almost every week. Can you tell me more about your OS!? What web browser are you using!? Anyway, have you downloaded the whole Smart-Citizen-Kit folder from github!? https://github.com/fablabbcn/Smart-Citizen-Kit It seems like you just have downloaded an *.ino file an the other files are missing. Best.

hi @aitoraloa,

OS: linux (debian jessie)
web browser: Mozilla Iceweasel 29.0.1 (like firefox)
yes, i downloaded Smart-Citizen-Kit-0.8.6.tar.gz from github

then i started up arduino ide and selected sck_beta_v0_8_6.ino in open file menu

@aitoraloa: sorry for rejecting your answer. i hop this was not rude, but i wanted to signal that in my eyes the question is still open. and also i like having a red button to proably attract one of the smartcitizens/arduino gurus :wink:

@tomscherl: No worries. :slight_smile: Are you sure you have all the files in the right folder. Have you unzipped all the content in the same place!? Best.

yes. extracted the tar file as it is with:
tar xvzf Smart-Citizen-Kit-0.8.6.tar.gz

and it unpacks to a directory Smart-Citizen-Kit-0.8.6 where i chose sck_beta_v0_8_6/sck_beta_v0_8_6.ino at arduino ide. when uploading i get the above compilation error messages.

ok. i am home again and started some experiments. with little success. any ino file i am loading into arduin ide, i get those errors (see above)

only one file seems to compile:

utilities/SCK_check/SCK_check.ino

when i upload it, i expect something like
Trying to connect. Device detected. Firmware version: WEB_APP-1.06 ...
but nothing. as board i chose: lilipad arduino USB

when i upload nothing happens the serial monitor is empty.

it looks lik i forgot to activate something, but i have no clue what.

can anyone help me here?

thanks
t.

here is my dmesg:

[48951.461059] usb 3-1: new full-speed USB device number 15 using xhci_hcd [48951.624932] usb 3-1: New USB device found, idVendor=1b4f, idProduct=9208 [48951.624940] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [48951.624945] usb 3-1: Product: LilyPadUSB [48951.624948] usb 3-1: Manufacturer: SparkFun [48951.628109] cdc_acm 3-1:1.0: This device cannot do calls on its own. It is not a modem. [48951.628141] cdc_acm 3-1:1.0: ttyACM0: USB ACM device [48951.648155] input: SparkFun LilyPadUSB as /devices/pci0000:00/0000:00:10.1/usb3/3-1/3-1:1.2/0003:1B4F:9208.000C/input/input21 [48951.648478] hid-generic 0003:1B4F:9208.000C: input,hidraw1: USB HID v1.01 Mouse [SparkFun LilyPadUSB ] on usb-0000:00:10.1-1/input2

if it is of any help.

next thing i’ll try is starting arduino ide with strace. you can take this as a sign of desperation :wink:
maybe this way i can put some light on the compiling problem…

... [pid 17747] open("/usr/share/arduino/hardware/arduino/cores/arduino/Stream.h", O_RDONLY|O_NOCTTY) = 4 [pid 17747] open("/usr/share/arduino/hardware/arduino/cores/arduino/USBAPI.h", O_RDONLY|O_NOCTTY) = 4 [pid 17747] open("/usr/share/arduino/hardware/arduino/cores/arduino/pins_arduino.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) [pid 17747] open("/usr/share/arduino/hardware/arduino/variants/leonardo/pins_arduino.h", O_RDONLY|O_NOCTTY) = 4 [pid 17747] open("/tmp/build596302433537253082.tmp/TemperatureDecoupler.h", O_RDONLY|O_NOCTTY) = 4 [pid 17747] open("/tmp/build596302433537253082.tmp/AccumulatorFilter.h", O_RDONLY|O_NOCTTY) = 4 [pid 17747] open("sck_beta_v0_8_6.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("sck_beta_v0_8_6.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("sck_beta_v0_8_6.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("sck_beta_v0_8_6.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("sck_beta_v0_8_6.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("sck_beta_v0_8_6.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("sck_beta_v0_8_6.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("sck_beta_v0_8_6.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("SCKAmbient.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("SCKAmbient.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("SCKAmbient.ino", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 17747] open("SCKAmbient.ino", O_RDONLYsck_beta_v0_8_6.ino: In function ‘void setup()’: ) = -1 ENOENT (No such file or directory) ...

ok. looks like arduino ide somehow cannot find the included files.

i am looking forward to any hints!
probable somehow i am using the arduino-ide the wrong way…

best
t.

it works now! i checked throw all preconditions for arduino http://playground.arduino.cc/Linux/Debian (libs, user permissions,…) , tried different versions of arduino,… and now it works. unfortunately i cannot tell what was the problem.

anyway thank you for your support!

@tomscherl: Nice! I am glad to read it finally works. If you figure out what happened in the future, it would be nice to let us know. All the best. :slight_smile: