Jump to content

DerArtem

Members
  • Content count

    51
  • Joined

  • Last visited

Community Reputation

4 Neutral

About DerArtem

  • Rank
    Regular

Profile Information

  • Your Current Device(s)
    Folio 100
  1. DerArtem

    Advent Vega kernel source code now available!

    I have found the following: http://review.cyanog....org/#/c/30629/ "TTY emulation for user-space Bluetooth stacks over HCI-H4" "tty_hci driver exposes a /dev/hci_tty character device node, that intends to emulate a generic /dev/ttyX device that would be used by the user-space Bluetooth stacks to send/receive data to/from the WL combo-connectivity chipsets." Maybe this can be adapted to our devices?
  2. DerArtem

    Advent Vega kernel source code now available!

    I was also experimenting with BT: In order to make the UI work I had to add the folowing code to src/userial_vendor.c: /* Set the socket to UP */ if (ioctl(vnd_netlink.fd, HCIDEVUP, vnd_netlink.dev_id) < 0) { ALOGE("Can't bring up device"); } Has somebody any progress with BT?
  3. DerArtem

    Advent Vega kernel source code now available!

    It look like the problem is somewhere else. There is the bdt tool to test bluedroid. When enabeling BT and then disabling is says that BT is already disabled. Looks like BT is not getting marked as enabled correctly... [email protected]:/ # bdt set_aid_and_cap : pid 1221, uid 0 gid 0 ::::::::::::::::::::::::::::::::::::::::::::::::::: :: Bluedroid test app starting Loading HAL lib + extensions HAL library loaded (Success) INIT BT HAL REQUEST SUCCESS >enable ENABLE BT HAL REQUEST SUCCESS >disable DISABLE BT Bluetooth is already disabled I/bluedroid( 778): enable D/bt-btif ( 778): BTIF ENABLE BLUETOOTH D/BTIF_CORE( 778): not disabled E/BluetoothAdapterState( 778): Error while turning Bluetooth On I/bluedroid( 1197): init D/btif_config.c( 1197): btif_config_init(L124): in initialized:0 D/bt-btif ( 1197): in initialized:0 D/btif_config.c( 1197): dump_node(L117): root, p->name:Bluedroid, child/value:0x40548588, bytes:160, p->used:0, type:0, p->flag:0 D/bt-btif ( 1197): ts[7].used:0 D/bt-btif ( 1197): alloc_thread_slot ret:7 D/bt-btif ( 1197): h:7, cmd_fdr:7, cmd_fdw:10 D/bt-btif ( 1197): h:7, thread id:1079281200 I/bte_conf( 1197): Attempt to load stack conf from /etc/bluetooth/bt_stack.conf D/btif_config.c( 1197): dump_node(L117): found node, p->name:Address, child/value:0x405487f0, bytes:18, p->used:18, type:1, p->flag:0 D/bt-btif ( 1197): local bdaddr from bt_config.xml is 22:22:7e:b9:ed:31 I/GKI_LINUX( 1197): gki_task_entry: gki_task_entry task_id=1 [BTIF] starting D/bt-btif ( 1197): btif task starting D/bt-btif ( 1197): btif_associate_evt: notify ASSOCIATE_JVM E/BTIF_CORE( 1197): ### ASSERT : external/bluetooth/bluedroid/main/../btif/src/btif_core.c line 487 Callback is NULL (0) ### I/bluedroid( 1197): enable D/bt-btif ( 1197): BTIF ENABLE BLUETOOTH D/bt-btif ( 1197): bte_main_enable I/bt_hci_bdroid( 1197): init I/bt_vendor( 1197): init I/bt_vnd_conf( 1197): Attempt to load conf from /etc/bluetooth/bt_vendor.conf I/bt-btif ( 1197): libbt-hci init returns 0 I/bt_hci_bdroid( 1197): bt_hc_worker_thread started I/GKI_LINUX( 1197): gki_task_entry: gki_task_entry task_id=0 [BTU] starting I/bt_userial_vendor( 1197): userial vendor open: opening hci0 I/bt_userial_vendor( 1197): device fd = 11 open E/bt_vendor( 1197): vendor lib fw conf done I/bt-btif ( 1197): HC preload_cb 0 [0:SUCCESS 1:FAIL] I/ ( 1197): BTE_InitTraceLevels -- TRC_HCI I/ ( 1197): BTE_InitTraceLevels -- TRC_L2CAP I/ ( 1197): BTE_InitTraceLevels -- TRC_RFCOMM I/ ( 1197): BTE_InitTraceLevels -- TRC_AVDT I/ ( 1197): BTE_InitTraceLevels -- TRC_AVRC I/ ( 1197): BTE_InitTraceLevels -- TRC_A2D I/ ( 1197): BTE_InitTraceLevels -- TRC_BNEP I/ ( 1197): BTE_InitTraceLevels -- TRC_BTM I/ ( 1197): BTE_InitTraceLevels -- TRC_PAN I/ ( 1197): BTE_InitTraceLevels -- TRC_SDP I/ ( 1197): BTE_InitTraceLevels -- TRC_BTAPP D/bt-btif ( 1197): btif_task: received trigger stack init event I/bluedroid( 1197): enable D/bt-btif ( 1197): BTIF ENABLE BLUETOOTH D/BTIF_CORE( 1197): not disabled
  4. DerArtem

    Advent Vega kernel source code now available!

    Just tried that. Still does not work :/
  5. DerArtem

    Advent Vega kernel source code now available!

    No, it is just fine. The graphic stuff just starts before the permissions have been set. But this is not a problem since it get's restarted later. Yeah, it would be nice if you could check what's wrong with bluetooth...
  6. DerArtem

    Advent Vega kernel source code now available!

    Hello, I have tried the libbt-hci on the folio, but it does not work. Attached are the logfiles. Any idea what might be wrong? folio-dmesg.txt folio-logcat.txt
  7. DerArtem

    Advent Vega kernel source code now available!

    Many thanks, we will check this out. For the suspend stuff - I had a similar issue. I think that this fixed it: https://github.com/D...d7e1badadf291a2 The problem is that the power button GPIO is always high when the tablet it turned on, but goes to low when we enter suspend. When pressing the button during suspend it goes to high and triggers an interrupt. I had no problem with this all the time, but then there was some update in Android and my suspend stuff suddently stopped working and I had to fix it... While the tablet is turned on the power button is controlled by nvec and not the GPIO. But during suspend the GPIO is used.
  8. DerArtem

    Advent Vega kernel source code now available!

    No, I have just double checked it. It seems to be different on the Folio 100. I have removed hciattach and nv_hciattach and bluetooth still works. (And there is also no hciattach in the init). Everything is done by the ar6000.ko. It creates a "HCI Bridge". Here is a dmesg of loading ar6000.ko: <3>[ 2.505299] AR6K: ar6000_prealloc_init success. : 20 <6>[ 2.505674] AR6K: ar6000_dma_buffer_alloc(size = 32768) = ccda8000 <1>[ 2.514737] AR6000: configuration opcode 7 is only used for RTOS systems, not Linux systems <1>[ 2.535261] android_readwrite_file: file /data/.psm.info filp_open error <1>[ 2.590893] ath6k/AR6003/hw2.0/athwlan.bin.z77 firmware will be loaded <1>[ 3.007579] BDADDR 0x0:0x24:0x7e:0x70:0xb0:0x11 <1>[ 3.020050] AR6K: ** HIF layer does not support scatter requests (17) <6>[ 3.020215] AR6K: ar6000_virtual_scatter_buffer_alloc(req = 0, size = 16776) = ccc40000 <6>[ 3.020374] AR6K: ar6000_virtual_scatter_buffer_alloc(req = 1, size = 16776) = ccc48000 <6>[ 3.020469] AR6K: ar6000_virtual_scatter_buffer_alloc(req = 2, size = 16776) = ccdb0000 <6>[ 3.020626] AR6K: ar6000_virtual_scatter_buffer_alloc(req = 3, size = 16776) = ccdb8000 <1>[ 3.020785] GMBOX Advertised: Address:0x7000 , size:16384 <1>[ 3.021882] HCI Bridge: running in normal mode... <1>[ 3.022069] HCI: notifying attached client to transport... <1>[ 3.022160] HCI ready (hci:0xCD9407A0, headroom:1, tailroom:0 blockpad:128) <1>[ 3.022512] HCI : InitTxCreditState - credits avail: 10, size: 256 <1>[ 3.168006] deadc0de: FPGA/ASIC PS File Name ar3k/30101coex/PS_ASIC.pst <1>[ 3.194317] File Open Operation Successful <1>[ 3.194429] TAG ID 23 <1>[ 3.194518] TAG ID 300 <1>[ 3.194612] TAG ID 19 <1>[ 3.194785] TAG ID 2 <1>[ 3.194912] TAG ID 3 <1>[ 3.195009] TAG ID 21 <1>[ 3.195101] TAG ID 22 <1>[ 3.195207] TAG ID 31 <1>[ 3.195378] TAG ID 61 <1>[ 3.195474] TAG ID 38 <1>[ 3.195576] Number of Tags 10 <1>[ 3.195661] ** Total Length 392 <1>[ 3.195819] Patch File Name ar3k/30101coex/RamPatch.txt <1>[ 3.208829] Index [35] <1>[ 3.208936] PS Thread Started CRC 3 Patch Count 36 Tag Count 10 <1>[ 3.209088] Num Cmd Entries 49 Size 392 <1>[ 3.209173] VALUE of CRC:3 At index 0 <1>[ 3.209318] *** Write Patch**** <1>[ 3.209478] *** Enable Patch**** <1>[ 3.209561] *** PS Reset**** 2048[0x800] <1>[ 3.209643] *** PS Write**** <1>[ 3.209791] BD ADDR not present <1>[ 3.209873] PS Count 10 Patch Count 36 <1>[ 3.209957] Check PS ID 17 <1>[ 3.210173] Check PS ID 2c <1>[ 3.210254] Check PS ID 13 <1>[ 3.210334] Check PS ID 2 <1>[ 3.210415] Check PS ID 3 <1>[ 3.210557] Check PS ID 15 <1>[ 3.210638] Check PS ID 16 <1>[ 3.210718] Check PS ID 1f <1>[ 3.210797] Check PS ID 3d <1>[ 3.210876] Check PS ID 26 <1>[ 4.756292] BDADDR File Name ar3k/30101coex/ar3kbdaddr.pst <1>[ 4.756435] android_readwrite_file: file /system/wifi/ar3k/30101coex/ar3kbdaddr.pst filp_open error <1>[ 4.756626] PSSendOps: firmware file open error <1>[ 4.756724] TLPM - PwrMgmtEnabled=0, IdleTimeout=1000, WakeupTimeout=10 <1>[ 4.871678] AR3K Config: Baud Changed to 3000000 <1>[ 5.199458] AR3K Config: Baud changed to 3000000 for AR6K <1>[ 5.199673] HCI Bridge: registering HCI... <1>[ 5.200661] HCI Bridge: HCI registered <1>[ 5.201951] AR6K: targetconf_ver : 4 <1>[ 5.202063] AR6K: targetconf_ver : 4 [...] <3>[ 13.369506] init: no such service 'hciattach'
  9. DerArtem

    Advent Vega kernel source code now available!

    Maybe just try out this tool. Maybe it will work out of the box - just change the GPIO's. The only think I don't understand is that the HP and also the Vega are both using ttyHSx with hciattach for BT communication. On the Folio I don't use /dev/ttyHSx nor hciattach at all. The whole BT stuff is directly provided just by the ar6000.ko. Should there be a serial port for BT? How can I check if my BT chip responds to one of the ttyHSx ports?
  10. DerArtem

    Advent Vega kernel source code now available!

    Hi, the HP Touchpad has working Bluetooth on Android 4.2. They are using AR6003 Wifi/BT. http://forum.xda-developers.com/showthread.php?t=1472892 https://github.com/Evervolv/android_device_hp_tenderloin/tree/jellybean I am going to try out their way on my Folio 100 as it also has a AR6003 Wifi...
  11. DerArtem

    Advent Vega kernel source code now available!

    Hello, I have also started porting 4.2 to the Folio 100. You did an amazing job! Thanks :) For the audio driver I have switched to use the audio lib of the Asus Grouper / Nexus 7: https://android.googlesource.com/device/asus/grouper/+/android-4.2.1_r1/audio/ It looks very nice and the configuration is done in mixer_paths.xml instead of the source. It only lacks HDMI output but this should not be a problem to add. Maybe you should use this too?
  12. DerArtem

    Advent Vega kernel source code now available!

    Hi, I have added a custom arm_pm_restart = betelgeuse_restart; to my kernel in order to write a magic value to EEPROM to reboot to recovery. Now the tablet is feezing some times on reboot. Have you had something like that? Any ideas where I should dig arround? I have also sometimes issue with shutdown that the tablet is also freezing during shutdown. This only happends when the tablet was on LP0 standby before... Here is the commit: https://github.com/DerArtem/android_kernel_toshiba_betelgeuse/commit/fce61566efadaca53f036e2c5426d8f1c2041fb9
  13. DerArtem

    Advent Vega kernel source code now available!

    I got a Smartbook Surfer 360 MN10U Tablet - I think that it's the same like the Vega. Now a stupid question: where is the mini USB port? I it only on the docking station?
  14. DerArtem

    Advent Vega kernel source code now available!

    Hi, as faar as I have testet the RIL seems to work fine now. I will try to do some more voice-call later...
  15. DerArtem

    Advent Vega kernel source code now available!

    I remember the problem. I had the same in chan_datacard. After answering a call we must send "AT+CLVL=1" and then "AT+CLVL=5" to the modem. This will set the volume to maximum. In theory just sending AT+CLVL=5 should be enough, but some modems do not change the volume with just this command. So we must first set it to minimum with "AT+CLVL=1" and them to max with "AT+CLVL=5" directly after answering the call.
×

Important Information

By using this site, you agree to our Terms of Use.