1 (edited by zurk 2012-04-26 10:47:27)

Topic: Q for Duane Re: control panel content.chumby.com network detection

For duane or anyone else who can answer this :
When the chumby loses a network connection in night mode and it switches to day mode with builtin (failsafe) clock and the user selects a network to connect to, connects successfully and starts executing widgets, what is the URL it fetches from content.chumby.com just before it starts executing widgets ?
Also is there a URL it loads or check the control panel performs when switching from night mode to day mode ? OR any URLs it checks to make sure the network is up in night mode ?
Thanks.

Re: Q for Duane Re: control panel content.chumby.com network detection

The device doesn't make any server calls related to night or day mode.

The device *does* make periodic checks to xml.chumby.com for firmware updates, but that's every week or so now, I think.

The Control Panel itself should not be making any calls to content.chumby.com - however, some individual music sources might do that if they're active.

content.chumby.com is just that - it's a catch-all server for content such as weather info or station lists.  It has nothing to do with the the accounts, catalog, or even the network stuff.  content.chumby.com is a completely separate set of servers that actually have no access to the main database.

Re: Q for Duane Re: control panel content.chumby.com network detection

hmm weird.
how does the control panel know its connected to the network ? is it only through the network status shell scripts or is there some network detecting call in flash ?

Re: Q for Duane Re: control panel content.chumby.com network detection

The 3.5" devices typically fetch the contents of "http://www.chumby.com/crossdomain.xml"

Re: Q for Duane Re: control panel content.chumby.com network detection

hmm...nope thats not it.
theres a function call which occurs sometime between switching to day mode from night mode which switches to the failsafe clock. i believe it might be doing some sort of an ifconfig check on wlan0 or some sort flash check. not sure exactly what. it doesnt have to do with the checks to  any external server because the external servers have been patched to all respond correctly (other than one call to content.chumby.com...im assuming thats the music source). it occurs very rarely (maybe once a month?).
anyway, i'll track it down eventually.

Re: Q for Duane Re: control panel content.chumby.com network detection

Exactly which device are you talking about?  There are ate least 4 different Control Panels deployed to the field, so I need to know what model you're seeing this on.

Re: Q for Duane Re: control panel content.chumby.com network detection

chumby one only. not chumby8 or infocast 3.5 for some reason.

Re: Q for Duane Re: control panel content.chumby.com network detection

Chumby one and Infocast 3.5 run exactly the same (production) software stack, so I don't see any reason for them to behave differently.

9 (edited by zurk 2012-04-27 09:25:13)

Re: Q for Duane Re: control panel content.chumby.com network detection

not only are they running the same software stack, they are in the exact same network environment and have the exact same alarm setup and same widget rotation. like i said i dont get why the c1 behaves differently from the i3.5 but it does.
i will track it down eventually. ive built a black box recording system in now so i should get dumps from a non networked chumby.

hmm.. well i tried disconnecting the network and switching from night to day mode while running a widget pulling network data, killing the router wireless and switching from night to day while running a widget pulling data, running pandora while disconnected, rebooting the router in night mode and all that didnt cause any drops to the failsafe clock. hope the recorder will get some good data the next time it does a drop to failsafe.

Re: Q for Duane Re: control panel content.chumby.com network detection

so i finally got it to drop to failsafe and managed to get a crashlog (Potentially sensitive info XX'd out).
it seems to disconnect (according to the dmesg) and yet the ifconfig shows the network adaptor is up at the same instant. it cannot ping or reach the network. router shows the dhcp address is unallocated but the chumby is associated with the AP fine. weird bug.

Wed May  2 XXXX 2012
1XXXX up 20:09, load average: 1.13, 1.36, 1.48
              total         used         free       shared      buffers
  Mem:        60112        53696         6416            0          744
Swap:            0            0            0
Total:        60112        53696         6416
84.0K   /tmp
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12948 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12948 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:18768489 (17.8 MiB)  TX bytes:18768489 (17.8 MiB)

wlan0     Link encap:Ethernet  HWaddr XX:XX:XX:XX
          inet addr:192.168.XX.XX  Bcast:192.168.XX.255  Mask:255.255.255.0
          inet6 addr: fe80::XX/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:145917 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24438 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:52129903 (49.7 MiB)  TX bytes:2627488 (2.5 MiB)

st normal
[    0.360000] regulator: stmp3xxx_ts-1: 0 <--> 2147483 mA fast normal
[    0.360000] regulator: stmp37xx-dbguart-1: 0 <--> 2147483 mA fast normal
[    0.370000] regulator: stmp3xxx_wdt-1: 0 <--> 2147483 mA fast normal
[    0.370000] regulator: stmp3xxx-rtc-1: 0 <--> 2147483 mA fast normal
[    0.380000] regulator: stmp3xxx-rotdec-1: 0 <--> 2147483 mA fast normal
[    0.380000] regulator: i2c_stmp-1: 0 <--> 2147483 mA fast normal
[    0.390000] regulator: stmp3xxx-persistent-1: 0 <--> 2147483 mA fast normal
[    0.390000] regulator: stmp3xxx-dcp-1: 0 <--> 2147483 mA fast normal
[    0.400000] regulator: stmp3xxx-battery-1: 0 <--> 2147483 mA fast normal
[    0.400000] regulator: mmc_ssp-1: 0 <--> 2147483 mA fast normal
[    0.410000] regulator: mmc_ssp-2: 0 <--> 2147483 mA fast normal
[    0.410000] regulator: charger-1: 0 <--> 2147483 mA fast normal
[    0.420000] regulator: power-test-1: 0 <--> 2147483 mA fast normal
[    0.420000] regulator: cpufreq-1: 0 <--> 2147483 mA fast normal
[    0.430000] stmp378x_devb.c - stmp378x_devb_init():388 - Adding 15 platform-specific devices
[    0.450000] Initialized chumby GPIO IRQ router
[    0.500000] chumbyfbfw.c - chumbyfwfb_probe():1255 - resolution 320x240, bpp 2
[    0.510000] chumbyfbfw.c - get_max_memsize():1060 - get_max_memsize: mem_size now 307200 (320 x 240 x 16)
[    0.510000] chumbyfbfw.c - get_max_memsize():1060 - get_max_memsize: mem_size now 1382400 (720 x 480 x 16)
[    0.520000] chumbyfbfw.c - get_max_memsize():1060 - get_max_memsize: mem_size now 1658880 (720 x 576 x 16)
[    0.520000] chumbyfbfw.c - chumbyfwfb_probe():1268 - memory to allocate for screen: 1658880
[    0.530000] chumbyfbfw.c - chumbyfwfb_probe():1277 - allocated screen at ff600000:0x43a00000
[    0.540000] chumbyfbfw.c - chumbyfwfb_probe():1326 - memory to allocate for plane 0: 1658880
[    0.550000] chumbyfbfw.c - chumbyfwfb_probe():1336 - allocated at ff795000:0x43c00000
[    0.560000] chumbyfbfw.c - chumbyfwfb_probe():1326 - memory to allocate for plane 1: 1658880
[    0.570000] chumbyfbfw.c - chumbyfwfb_probe():1336 - allocated at ff92a000:0x43e00000
[    0.580000] chumbyfbfw.c - chumbyfwfb_probe():1326 - memory to allocate for plane 2: 307200
[    0.580000] chumbyfbfw.c - chumbyfwfb_probe():1336 - allocated at ffabf000:0x43900000
[    0.590000] Going to copy splash image from 44844000 (153600 bytes) to ff600000 (not 43a00000)
[    0.600000] Panel init finished.
[    0.600000] unsupported display_on call
[    0.610000] chumbyfbfw.c - pxp_setup():1124 - Pointing S0 at 43c00000
[    0.610000] stmp37xx-dbguart.0: ttyAM0 at MMIO 0xf0070000 (irq = 0) is a Debug UART
[    0.660000] NET: Registered protocol family 2
[    0.670000] Switched to high resolution mode on CPU 0
[    0.770000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.770000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.780000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.790000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.800000] TCP reno registered
[    0.830000] NET: Registered protocol family 1
[    0.850000] ashmem: initialized
[    0.850000] Registering unionfs 2.5.2 (for 2.6.28.10)
[    0.860000] NTFS driver 2.1.29 [Flags: R/O].
[    0.860000] fuse init (API version 7.10)
[    0.870000] msgmni has been set to 117
[    0.880000] alg: No test for stdrng (krng)
[    0.890000] cryptodev: driver loaded.
[    0.890000] io scheduler noop registered (default)
[    0.900000] init_bl
[    0.900000] init_bl finished
[    0.900000] set_bl_intensity with 100
[    0.910000] intensity after modifiers: 100
[    0.910000] setting with parameters 1337
[    0.920000] done.
[    0.990000] logger: created 64K log 'log_main'
[    0.990000] logger: created 256K log 'log_events'
[    1.000000] logger: created 64K log 'log_radio'
[    1.000000] STMP3xxx RTC driver v1.0 hardware v2.0.0
[    1.010000] stmp3xxx-rtc stmp3xxx-rtc: rtc core: registered stmp3xxx-rtc as rtc0
[    1.020000] power_supply battery: uevent
[    1.020000] power_supply battery: No power supply yet
[    1.020000] power_supply battery: power_supply_changed
[    1.020000] power_supply ac: uevent
[    1.020000] power_supply ac: No power supply yet
[    1.020000] power_supply battery: power_supply_changed_work
[    1.020000] power_supply battery: power_supply_update_bat_leds 3
[    1.020000] power_supply battery: uevent
[    1.020000] power_supply battery: POWER_SUPPLY_NAME=battery
[    1.020000] power_supply battery: Static prop TYPE=Battery
[    1.020000] power_supply battery: 9 dynamic props
[    1.020000] power_supply battery: prop STATUS=Not charging
[    1.020000] power_supply battery: prop PRESENT=0
[    1.020000] power_supply battery: prop HEALTH=Unknown
[    1.020000] power_supply battery: prop TECHNOLOGY=Li-ion
[    1.020000] power_supply battery: prop VOLTAGE_NOW=3680000
[    1.020000] power_supply battery: prop VOLTAGE_AVG=3680000
[    1.020000] power_supply battery: prop CURRENT_NOW=0
[    1.020000] power_supply battery: prop TEMP=802
[    1.020000] power_supply battery: prop CAPACITY=97
[    1.020000] power_supply ac: power_supply_changed
[    1.020000] power_supply usb: uevent
[    1.020000] power_supply usb: No power supply yet
[    1.020000] power_supply ac: power_supply_changed_work
[    1.020000] power_supply ac: power_supply_update_gen_leds 1
[    1.020000] power_supply ac: uevent
[    1.020000] power_supply ac: POWER_SUPPLY_NAME=ac
[    1.020000] power_supply ac: Static prop TYPE=Mains
[    1.020000] power_supply ac: 2 dynamic props
[    1.020000] power_supply ac: prop ONLINE=1
[    1.020000] power_supply ac: prop TEMP=55
[    1.020000] power_supply usb: power_supply_changed
[    1.030000] ddi_bc_Init: success
[    1.040000] stmp3xxx-battery stmp3xxx-battery.0: bc_sm_restart: no battery present
[    1.050000] power/linux.c - bc_sm_restart():987 - Returning from sm_restart()
[    1.050000] power_supply usb: power_supply_changed_work
[    1.050000] power_supply usb: power_supply_update_gen_leds 0
[    1.050000] power_supply usb: uevent
[    1.050000] power_supply usb: POWER_SUPPLY_NAME=usb
[    1.050000] power_supply usb: Static prop TYPE=USB
[    1.050000] power_supply usb: 2 dynamic props
[    1.050000] power_supply usb: prop ONLINE=0
[    1.050000] power_supply usb: prop TEMP=52
[    1.370000] stmp3xxx-dcp stmp3xxx-dcp: DCP crypto enabled.!
[    1.380000] Advanced Linux Sound Architecture Driver Version 1.0.18rc3.
[    1.390000] ASoC version 0.13.2
[    1.390000] STMP378X ADC/DAC Audio Codec 0.1
[    1.400000] asoc: stmp378x adc/dac <-> stmp3xxx adc/dac mapping ok
[    1.420000] ALSA device list:
[    1.420000]   #0: STMP3780 Devb (stmp378x adc/dac)
[    1.420000] oprofile: using timer interrupt.
[    1.430000] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    1.440000] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
[    1.440000] nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
[    1.450000] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[    1.460000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.470000] arp_tables: (C) 2002 David S. Miller
[    1.470000] TCP cubic registered
[    1.480000] NET: Registered protocol family 17
[    1.480000] RPC: Registered udp transport module.
[    1.490000] RPC: Registered tcp transport module.
[    1.500000] stmp3xxx-rtc stmp3xxx-rtc: setting system clock to 2012-05-02 04:52:18 UTC (1335934338)
[    1.510000] Waiting for root device /dev/mmcblk0p2...
[    1.520000] mmc0: new SD card at address 88f7
[    1.520000] mmcblk0: mmc0:88f7 SU01G 942 MiB
[    1.530000]  mmcblk0: p1 p2 p3 p4 < p5 p6 >
[    1.620000] EXT3-fs: mounted filesystem with ordered data mode.
[    1.630000] VFS: Mounted root (ext3 filesystem) readonly.
[    1.630000] Freeing init memory: 120K
[    1.640000] kjournald starting.  Commit interval 5 seconds
[    3.030000] kjournald starting.  Commit interval 5 seconds
[    3.030000] EXT3 FS on mmcblk0p5, internal journal
[    3.040000] EXT3-fs: mounted filesystem with journal data mode.
[    3.480000] kjournald starting.  Commit interval 5 seconds
[    3.680000] EXT3 FS on mmcblk0p6, internal journal
[    3.690000] EXT3-fs: mounted filesystem with ordered data mode.
[    6.460000] usbcore: registered new interface driver usbfs
[    6.470000] usbcore: registered new interface driver hub
[    6.500000] usbcore: registered new device driver usb
[    6.570000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.580000] fsl-ehci fsl-ehci: Freescale On-Chip EHCI Host Controller
[    6.600000] fsl-ehci fsl-ehci: new USB bus registered, assigned bus number 1
[    7.720000] fsl-ehci fsl-ehci: irq 11, io mem 0xf0080000
[    7.740000] fsl-ehci fsl-ehci: USB 2.0 started, EHCI 1.00
[    7.760000] usb usb1: configuration #1 chosen from 1 choice
[    7.770000] hub 1-0:1.0: USB hub found
[    7.770000] hub 1-0:1.0: 1 port detected
[    8.090000] usb 1-1: new high speed USB device using fsl-ehci and address 2
[    8.270000] usb 1-1: configuration #1 chosen from 1 choice
[    8.320000] hub 1-1:1.0: USB hub found
[    8.320000] hub 1-1:1.0: 4 ports detected
[    8.440000] power_supply ac: uevent
[    8.440000] power_supply ac: POWER_SUPPLY_NAME=ac
[    8.440000] power_supply ac: Static prop TYPE=Mains
[    8.440000] power_supply ac: 2 dynamic props
[    8.440000] power_supply ac: prop ONLINE=1
[    8.440000] power_supply ac: prop TEMP=50
[    8.470000] power_supply battery: uevent
[    8.470000] power_supply battery: POWER_SUPPLY_NAME=battery
[    8.470000] power_supply battery: Static prop TYPE=Battery
[    8.470000] power_supply battery: 9 dynamic props
[    8.470000] power_supply battery: prop STATUS=Not charging
[    8.470000] power_supply battery: prop PRESENT=0
[    8.470000] power_supply battery: prop HEALTH=Good
[    8.470000] power_supply battery: prop TECHNOLOGY=Li-ion
[    8.470000] power_supply battery: prop VOLTAGE_NOW=3584000
[    8.470000] power_supply battery: prop VOLTAGE_AVG=3668000
[    8.470000] power_supply battery: prop CURRENT_NOW=0
[    8.470000] power_supply battery: prop TEMP=806
[    8.470000] power_supply battery: prop CAPACITY=95
[    8.490000] power_supply usb: uevent
[    8.490000] power_supply usb: POWER_SUPPLY_NAME=usb
[    8.490000] power_supply usb: Static prop TYPE=USB
[    8.490000] power_supply usb: 2 dynamic props
[    8.490000] power_supply usb: prop ONLINE=0
[    8.490000] power_supply usb: prop TEMP=53
[    8.520000] Chumby bend sensor driver version 2.3-Falconwing initializing (scross@chumby.com)...
[    8.570000] input: bend-sensor as /devices/platform/bend-sensor/input/input0
[    8.620000] usb 1-1.1: new high speed USB device using fsl-ehci and address 3
[    8.750000] usb 1-1.1: configuration #1 chosen from 1 choice
[    9.140000] usb 1-1.2: new high speed USB device using fsl-ehci and address 4
[    9.440000] usb 1-1.2: configuration #1 chosen from 1 choice
[   12.200000] SCSI subsystem initialized
[   12.400000] Initializing USB Mass Storage driver...
[   12.430000] scsi0 : SCSI emulation for USB Mass Storage devices
[   12.460000] usb-storage: device found at 3
[   12.460000] usb-storage: waiting for device to settle before scanning
[   12.510000] usbcore: registered new interface driver usb-storage
[   12.520000] USB Mass Storage support registered.
[   12.540000] input: STMP3XXX touchscreen as /devices/virtual/input/input1
[   14.180000] Generic kernel compatibility enabled based on linux-2.6.33-rc4
[   14.660000] mice: PS/2 mouse device common for all mice
[   15.410000] cfg80211: Using static regulatory domain info
[   15.410000] cfg80211: Regulatory domain: 00
[   15.420000]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   15.420000]     (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
[   15.430000]     (2457000 KHz - 2482000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
[   15.450000]     (2474000 KHz - 2494000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
[   15.450000]     (5170000 KHz - 5250000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
[   15.470000]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
[   15.470000] cfg80211: Calling CRDA to update world regulatory domain
[   16.270000] phy0 -> rt2500usb_init_eeprom: Error - Invalid RT chipset detected.
[   16.280000] phy0 -> rt2x00lib_probe_dev: Error - Failed to allocate device.
[   16.300000] usbcore: registered new interface driver rt2500usb
[   16.750000] phy1: Selected rate control algorithm 'minstrel'
[   16.760000] Registered led device: rt73usb-phy1::radio
[   16.760000] Registered led device: rt73usb-phy1::assoc
[   16.770000] Registered led device: rt73usb-phy1::quality
[   16.790000] usbcore: registered new interface driver rt73usb
[   17.040000] rt73usb 1-1.2:1.0: firmware: requesting rt73.bin
[   17.470000] scsi 0:0:0:0: Direct-Access     OTi      Flash Disk       2.00 PQ: 0 ANSI: 2
[   17.540000] usb-storage: device scan complete
[   17.720000] Driver 'sd' needs updating - please use bus_type methods
[   19.910000] ready
[   19.910000] sd 0:0:0:0: [sda] 1024000 512-byte hardware sectors: (524 MB/500 MiB)
[   19.920000] sd 0:0:0:0: [sda] Write Protect is off
[   19.920000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[   19.920000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   19.940000] sd 0:0:0:0: [sda] 1024000 512-byte hardware sectors: (524 MB/500 MiB)
[   19.950000] sd 0:0:0:0: [sda] Write Protect is off
[   19.950000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[   19.950000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   19.960000]  sda: sda1
[   19.980000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   20.100000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.280000] i2c /dev entries driver
[   23.900000] Chumby timerx[2] driver version 3.0-Falconwing initializing (bunnie@chumby.com)... show me your jiffies!!!
[   27.360000] stmp3xxx_pcm.c - stmp3xxx_pcm_dma_request():300 - Got DMA channel 1
[   27.380000] stmp3xxx_pcm.c - stmp3xxx_pcm_trigger():205 - Starting playback DMA
[   28.240000] input: stmp3xxx-rotdec as /devices/virtual/input/input2
[   35.340000] wlan0: direct probe to AP cXXXXX (try 1)
[   35.340000] wlan0: direct probe responded
[   35.340000] wlan0: authenticate with AP cXXXX (try 1)
[   35.350000] wlan0: authenticated
[   35.350000] wlan0: associate with AP cXXXXX (try 1)
[   35.350000] wlan0: RX AssocResp from cXXXXX (capab=0x411 status=0 aid=2)
[   35.350000] wlan0: associated
[   38.320000] NET: Registered protocol family 10
[   57.200000] stmp3xxx_pcm.c - stmp3xxx_pcm_trigger():220 - Stopping playback DMA
[   58.150000] stmp3xxx_pcm.c - stmp3xxx_pcm_dma_request():300 - Got DMA channel 1
[   58.160000] stmp3xxx_pcm.c - stmp3xxx_pcm_trigger():205 - Starting playback DMA
[   60.690000] stmp3xxx_pcm.c - stmp3xxx_pcm_trigger():220 - Stopping playback DMA
[   64.380000] stmp3xxx_pcm.c - stmp3xxx_pcm_dma_request():300 - Got DMA channel 1
[   64.390000] stmp3xxx_pcm.c - stmp3xxx_pcm_trigger():205 - Starting playback DMA
[   69.390000] set_bl_intensity with 2
[   69.390000] intensity after modifiers: 2
[   69.400000] setting with parameters 53
[   69.400000] done.
[  463.880000] set_bl_intensity with 1
[  463.890000] intensity after modifiers: 1
[  463.890000] setting with parameters 26
[  463.900000] done.
[40063.590000] set_bl_intensity with 2
[40063.590000] intensity after modifiers: 2
[40063.600000] setting with parameters 53
[40063.600000] done.
[72480.500000] No probe response from AP cXXXXX after 500ms, disconnecting.