From zorg1331 at gmail.com Sun May 8 12:43:34 2016 From: zorg1331 at gmail.com (Pavel Nakonechny) Date: Sun, 8 May 2016 14:43:34 +0200 Subject: osmocom dect PP-mode Message-ID: Hello, I am currently playing with Osmocom DECT software stack using COM-ON-AIR PCI card. What I am trying to achieve is to configure test PC as portable part and connect it to DECT base station. I have cloned and successfully compiled the following repos: git://dect.osmocom.org/linux-2.6.git git://dect.osmocom.org/libnl.git git://dect.osmocom.org/libdect.git Following instructions on dect.osmocom.org/wiki/Configuration page I configured PP. However, the example app dect-llme-scan was able to work only after uncommenting line: //nl_dect_llme_mac_info_set_pari(lmsg, pari); With the line above uncommented, dect-llme-scan returns the list of available base stations. So I assume, that hardware and most part of software works. Then I tried to use example pp-access-rights to connect to the test base station. This app fails immediately after launch for the same reason as dect-llme-scan. Thus, I have added nl_dect_llme_mac_info_set_pari(lmsg, pari); with empty PARI to dect_netlink_mac_me_info_req(struct dect_handle *dh) function. With this modification, the example moves farther, but fails anyway with "No such file or directory" message on this line: if (connect(ddl->dfd->fd, (struct sockaddr *)&ddl->dlei, sizeof(ddl->dlei)) < 0 && errno != EAGAIN) goto err3; in file lce.c All in all. May I at first ask about how to properly configure portable part? Here I have to specify EMC and FPN of the base station? # dect-cluster-add --name cluster0 --mode fp --emc 0x1182 --fpn 0x0fac3 # dect-cell-add --name cell0 --cluster cluster0 # dect-transceiver-bind --transceiver trx0 --cell cell0 What should I use here as IPUI? Some random identifier of my PP? # pp-access-rights --cluster cluster0 --pin 0000 --ipui 0x11830fac4 And, in general, are the sources in repos I listed previously were tested in PP mode or they are not fully functional yet? Thanks in advance. :) -- WBR, Pavel -------------- next part -------------- An HTML attachment was scrubbed... URL: From zorg1331 at gmail.com Mon May 9 07:11:48 2016 From: zorg1331 at gmail.com (Pavel Nakonechny) Date: Mon, 9 May 2016 09:11:48 +0200 Subject: osmocom dect PP-mode In-Reply-To: References: Message-ID: In addition, to be more specific. Below is the output I receive. [root at dect-test ~]# /home/pavel/osmocom-stack/libdect/example/pp-access-rights --cluster cluster0 --pin 0000 --ipui 3c2d2c86a netlink: cluster0: mode PP ARI: class A: EMC: 2b1c FPN: 1b75f netlink: MAC_ME_INFO-req LCE: set default PMID: e8498 LCE: registered protocol 0 (Link Control) LCE: registered protocol 3 (Call Control) LCE: registered protocol 4 (Call Independant Supplementary Services) LCE: registered protocol 6 (ConnectionLess Message Service) LCE: registered protocol 5 (Mobility Management) P-IWU: waiting for ACCESS_RIGHTS_REQUESTS capability ... netlink: message group: 4 netlink: FPC: extended_fp_info,full_slot,page_repetition,basic_a_field_setup,advanced_a_field_setup,cf_messages,in_min_delay,ip_error_detection,prolonged_preamble,extended_fp_info2,,long_sl ot_j640 netlink: HLC: adpcm_g721_voice,gap_pap_basic_speech,standard_authentication,standard_ciphering,location_registration,ciss_service,access_rights_requests,dprs_stream,generic_media_encapsulat ion,permanent_clir,easy_pairing,list_access_features,no_emission_mode,call_deflection,intrusion_call,conference_call,parallel_calls,call_transfer,wideband, netlink: nl_recvmsgs: Resource temporarily unavailable LCE: DL_ESTABLISH-req: IPUI: N EMC: 3c2d PSN: 2c86a LCE: link -1 (RELEASED): alloc LCE: link -1 (ESTABLISH_PENDING): set IPUI: N EMC: 3c2d PSN: 2c86a LCE: dect_ddl_establish: No such file or directory netlink: message group: 4 netlink: nl_recvmsgs: Resource temporarily unavailable netlink: message group: 4 netlink: FPC: extended_fp_info,full_slot,page_repetition,basic_a_field_setup,advanced_a_field_setup,cf_messages,in_min_delay,ip_error_detection,prolonged_preamble,extended_fp_info2,,long_sl ot_j640 netlink: HLC: adpcm_g721_voice,gap_pap_basic_speech,standard_authentication,standard_ciphering,location_registration,ciss_service,access_rights_requests,dprs_stream,generic_media_encapsulat ion,permanent_clir,easy_pairing,list_access_features,no_emission_mode,call_deflection,intrusion_call,conference_call,parallel_calls,call_transfer,wideband, netlink: nl_recvmsgs: Resource temporarily unavailable [root at dect-test ~]#