From: Dirk <mai...@gm...> - 2021-10-11 21:33:44
|
Hi Marcello, thanks for fast reply! Device adresses are correct (they are shown on every startup). (I also tested it with "pad = 9" and "pad = 11".) Setting "eos = 0x0d" or "eos = 0x0a" equals in same result: no communication. Attached you can find my tail output: root@raspberrypi:/home/pi# tail -f /var/log/kern.log Oct 11 22:22:46 raspberrypi kernel: [ 1428.417137] gpib_bitbang:bb_request_system_control - 1 Oct 11 22:22:46 raspberrypi kernel: [ 1428.417175] gpib_bitbang:bb_update_status - 0x20 mask 0x0 Oct 11 22:22:46 raspberrypi kernel: [ 1428.417211] gpib_bitbang:bb_line_status - status lines: 2a00 Oct 11 22:22:46 raspberrypi kernel: [ 1428.417267] gpib_bitbang:bb_interface_clear - 1 Oct 11 22:22:46 raspberrypi kernel: [ 1428.417398] gpib_bitbang:bb_interface_clear - 0 Oct 11 22:22:46 raspberrypi kernel: [ 1428.417419] gpib_bitbang:bb_update_status - 0x1020 mask 0x0 Oct 11 22:22:46 raspberrypi kernel: [ 1428.417451] gpib_bitbang:bb_line_status - status lines: 2a00 Oct 11 22:22:46 raspberrypi kernel: [ 1428.417480] gpib_bitbang:bb_remote_enable - 1 Oct 11 22:22:46 raspberrypi kernel: [ 1428.417511] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:22:46 raspberrypi kernel: [ 1428.417544] gpib_bitbang:bb_line_status - status lines: 2a00 Oct 11 22:23:01 raspberrypi kernel: [ 1443.446836] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:01 raspberrypi kernel: [ 1443.446885] gpib_bitbang:bb_line_status - status lines: 2a00 Oct 11 22:23:01 raspberrypi kernel: [ 1443.446904] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:01 raspberrypi kernel: [ 1443.446936] gpib_bitbang:bb_line_status - status lines: 2a00 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409562] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409603] gpib_bitbang:bb_line_status - status lines: 2a00 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409625] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409660] gpib_bitbang:bb_line_status - status lines: 2a00 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409679] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409710] gpib_bitbang:bb_line_status - status lines: 2a00 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409734] gpib_bitbang:bb_take_control - 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409754] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409789] gpib_bitbang:bb_line_status - status lines: 6a00 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409808] gpib_bitbang:bb_command - 243f8cc3 243f8cc3 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409877] gpib_bitbang:bb_command - CMD(3): Oct 11 22:23:09 raspberrypi kernel: [ 1451.409890] gpib_bitbang:bb_command - 0x40=TLK0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409904] gpib_bitbang:bb_command - 0x3f=LSN31 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409917] gpib_bitbang:bb_command - 0x2a=LSN10 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409933] gpib_bitbang:bb_write - board 57838b64 lock 1 length: 3 Oct 11 22:23:09 raspberrypi kernel: [ 1451.409946] gpib_bitbang:bb_write - <3 > Oct 11 22:23:09 raspberrypi kernel: [ 1451.409960] gpib_bitbang:bb_write - 0 0x40->@ Oct 11 22:23:09 raspberrypi kernel: [ 1451.409973] gpib_bitbang:bb_write - 1 0x3f->? Oct 11 22:23:09 raspberrypi kernel: [ 1451.409986] gpib_bitbang:bb_write - 2 0x2a->* Oct 11 22:23:09 raspberrypi kernel: [ 1451.410042] gpib_bitbang:bb_NRFD_interrupt - 0 DAV: 1 NRFD:1 SRQ: 0 val: 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410057] gpib_bitbang:bb_write - NRFD: 1 NDAC: 1 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410091] gpib_bitbang:bb_write - sending 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410136] gpib_bitbang:bb_write - accepted 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410167] gpib_bitbang:bb_write - sending 1 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410211] gpib_bitbang:bb_write - accepted 1 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410242] gpib_bitbang:bb_write - sending 2 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410287] gpib_bitbang:bb_write - accepted 2 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410313] gpib_bitbang:bb_write - sent 3 bytes. Oct 11 22:23:09 raspberrypi kernel: [ 1451.410313] Oct 11 22:23:09 raspberrypi kernel: [ 1451.410350] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410383] gpib_bitbang:bb_line_status - status lines: 2800 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410395] gpib_bitbang:bb_go_to_standby - Oct 11 22:23:09 raspberrypi kernel: [ 1451.410424] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410444] gpib_bitbang:bb_write - board 57838b64 lock 1 length: 5 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410458] gpib_bitbang:bb_write - <5 w.EOI> Oct 11 22:23:09 raspberrypi kernel: [ 1451.410471] gpib_bitbang:bb_write - 0 0x2a->* Oct 11 22:23:09 raspberrypi kernel: [ 1451.410484] gpib_bitbang:bb_write - 1 0x49->I Oct 11 22:23:09 raspberrypi kernel: [ 1451.410496] gpib_bitbang:bb_write - 2 0x44->D Oct 11 22:23:09 raspberrypi kernel: [ 1451.410509] gpib_bitbang:bb_write - 3 0x4e->N Oct 11 22:23:09 raspberrypi kernel: [ 1451.410522] gpib_bitbang:bb_write - 4 0x3f->? Oct 11 22:23:09 raspberrypi kernel: [ 1451.410593] gpib_bitbang:bb_write - NRFD: 1 NDAC: 1 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410611] gpib_bitbang:bb_write - sending 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410655] gpib_bitbang:bb_write - accepted 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410687] gpib_bitbang:bb_write - sending 1 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410730] gpib_bitbang:bb_write - accepted 1 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410765] gpib_bitbang:bb_write - sending 2 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410809] gpib_bitbang:bb_write - accepted 2 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410840] gpib_bitbang:bb_write - sending 3 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410883] gpib_bitbang:bb_write - accepted 3 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410914] gpib_bitbang:bb_write - sending 4 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410958] gpib_bitbang:bb_write - accepted 4 Oct 11 22:23:09 raspberrypi kernel: [ 1451.410983] gpib_bitbang:bb_write - sent 5 bytes. Oct 11 22:23:09 raspberrypi kernel: [ 1451.410983] Oct 11 22:23:09 raspberrypi kernel: [ 1451.411010] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411043] gpib_bitbang:bb_line_status - status lines: a800 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411060] gpib_bitbang:bb_update_status - 0x1060 mask 0x1 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411091] gpib_bitbang:bb_line_status - status lines: a800 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411148] gpib_bitbang:bb_disable_eos - Oct 11 22:23:09 raspberrypi kernel: [ 1451.411172] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411205] gpib_bitbang:bb_line_status - status lines: a800 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411223] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411254] gpib_bitbang:bb_line_status - status lines: a800 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411270] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411303] gpib_bitbang:bb_line_status - status lines: a800 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411326] gpib_bitbang:bb_take_control - 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411343] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411376] gpib_bitbang:bb_line_status - status lines: e800 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411392] gpib_bitbang:bb_command - 243f8cc3 243f8cc3 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411459] gpib_bitbang:bb_command - CMD(3): Oct 11 22:23:09 raspberrypi kernel: [ 1451.411471] gpib_bitbang:bb_command - 0x3f=LSN31 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411484] gpib_bitbang:bb_command - 0x20=LSN0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411497] gpib_bitbang:bb_command - 0x4a=TLK10 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411511] gpib_bitbang:bb_write - board 57838b64 lock 1 length: 3 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411524] gpib_bitbang:bb_write - <3 > Oct 11 22:23:09 raspberrypi kernel: [ 1451.411538] gpib_bitbang:bb_write - 0 0x3f->? Oct 11 22:23:09 raspberrypi kernel: [ 1451.411551] gpib_bitbang:bb_write - 1 0x20-> Oct 11 22:23:09 raspberrypi kernel: [ 1451.411564] gpib_bitbang:bb_write - 2 0x4a->J Oct 11 22:23:09 raspberrypi kernel: [ 1451.411611] gpib_bitbang:bb_NRFD_interrupt - 0 DAV: 1 NRFD:1 SRQ: 0 val: 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411632] gpib_bitbang:bb_write - NRFD: 1 NDAC: 1 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411655] gpib_bitbang:bb_write - sending 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411698] gpib_bitbang:bb_write - accepted 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411728] gpib_bitbang:bb_write - sending 1 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411771] gpib_bitbang:bb_write - accepted 1 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411803] gpib_bitbang:bb_write - sending 2 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411846] gpib_bitbang:bb_write - accepted 2 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411872] gpib_bitbang:bb_write - sent 3 bytes. Oct 11 22:23:09 raspberrypi kernel: [ 1451.411872] Oct 11 22:23:09 raspberrypi kernel: [ 1451.411900] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411932] gpib_bitbang:bb_line_status - status lines: 2800 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411944] gpib_bitbang:bb_go_to_standby - Oct 11 22:23:09 raspberrypi kernel: [ 1451.411971] gpib_bitbang:bb_update_status - 0x1060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.411992] gpib_bitbang:bb_read - board: 57838b64 lock 1 length: 2048 Oct 11 22:23:09 raspberrypi kernel: [ 1451.412072] gpib_bitbang:bb_read - ..........DAV: 1 NRFD:0 SRQ: 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.728873] gpib_bitbang:bb_read - timeout - DAV: 1 NRFD:1 SRQ: 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.728890] gpib_bitbang:bb_read - got 0 bytes. Oct 11 22:23:09 raspberrypi kernel: [ 1451.728907] gpib_bitbang:bb_read - return: -110 eoi: 0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.728907] Oct 11 22:23:09 raspberrypi kernel: [ 1451.728950] gpib_bitbang:bb_update_status - 0x5060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.728983] gpib_bitbang:bb_line_status - status lines: 2a00 Oct 11 22:23:09 raspberrypi kernel: [ 1451.729002] gpib_bitbang:bb_update_status - 0x5060 mask 0x0 Oct 11 22:23:09 raspberrypi kernel: [ 1451.729035] gpib_bitbang:bb_line_status - status lines: 2a00 BR Dirk Am 11.10.2021 um 22:39 schrieb marcello carla': > Maybe I am wrong, but at a first sight it looks like > the meter address is not 10. If you are sure the address > is correct, try this: > > sudo su > echo 1 > /sys/module/gpib_bitbang/parameters/debug > tail -f /var/log/kern.log > > Then, open another terminal, try again with ibterm, > cut the output that comes from tail and send me. > > Make sure also that "eos = 0x0d" is the correct > termination for the instrument. You might try "eos = 0x0a". > > Good luck > > Marcello > > > > On 10/11/21 8:36 PM, Dirk wrote: >> Hello, >> >> several weeks ago i obtained a RaspberryPI GPIB Shield. >> >> I followed the instructions at http://elektronomikon.org/install.html >> but did minor changes to get version 4.3.4 working. >> >> Installation went fine without any problems. >> >> If i try to read something from my R&S URV5 power meter nothing happend. >> I get the same result with my SMG signal generator. >> >> Testing the system with "ibtest" (-> line status) shows unkown status of >> bus lines. >> >> At this point i have no idea what is wrong in my setup. >> >> It would be great if someone can help me. >> >> BR >> Dirk >> >> >> >> Following some additional information: >> >> root@raspberrypi:/home/pi# cat /etc/debian_version >> 10.10 >> root@raspberrypi:/home/pi# >> >> root@raspberrypi:/home/pi# uname -a >> Linux raspberrypi 5.10.60-v7+ #1449 SMP Wed Aug 25 15:00:01 BST 2021 >> armv7l GNU/Linux >> root@raspberrypi:/home/pi# >> >> root@raspberrypi:/home/pi# dmesg >> [...] >> [ 55.161921] gpib_common: loading out-of-tree module taints kernel. >> [ 55.164358] Linux-GPIB 4.3.4 Driver >> [ 55.182620] gpib: registered gpib_bitbang interface >> root@raspberrypi:/home/pi# >> >> >> root@raspberrypi:/home/pi# gpib_config -v >> linux-gpib version = 4.3.4 >> root@raspberrypi:/home/pi# >> >> root@raspberrypi:/home/pi# ibterm -d10 >> Attempting to open /dev/gpib0 >> pad = 10, sad = 0, timeout = 10, send_eoi = 1, eos_mode = 0x0000 >> ibterm>*IDN? >> ibterm> >> ibterm: Done. >> root@raspberrypi:/home/pi# >> >> root@raspberrypi:/home/pi# ibtest >> Do you wish to open a (d)evice or an interface (b)oard? >> (you probably want to open a device): b >> enter name of interface board (or device) you wish to open: violet >> trying to open board named 'violet' >> You can: >> w(a)it for an event >> [...] >> send group e(x)ecute trigger (device only) >> : l >> DAV unknown >> NDAC unknown >> NRFD unknown >> IFC unknown >> REN unknown >> SRQ unknown >> ATN unknown >> EOI unknown >> gpib status is: >> ibsta = 0x1160 < SRQI CMPL REM CIC > >> iberr= 0 >> >> ibcntl = 0 >> You can: >> w(a)it for an event >> [...] >> send group e(x)ecute trigger (device only) >> : >> >> >> root@raspberrypi:/home/pi# cat /usr/local/etc/gpib.conf >> [...] >> /* This section configures the configurable driver characteristics >> * for an interface board, such as board address, and interrupt level. >> * minor = 0 configures /dev/gpib0, minor = 1 configures /dev/gpib1, >> etc. >> */ >> >> interface { >> minor = 0 /* board index, minor = 0 uses /dev/gpib0, >> minor = 1 uses /dev/gpib1, etc. */ >> board_type = "gpib_bitbang" /* type of interface board >> being used */ >> name = "violet" /* optional name, allows you to get a board >> descriptor using ibfind() */ >> pad = 0 /* primary address of interface */ >> sad = 0 /* secondary address of interface */ >> timeout = T3s /* timeout for commands */ >> >> eos = 0x0d /* EOS Byte, 0xa is newline and 0xd is carriage >> return */ >> set-reos = yes /* Terminate read if EOS */ >> set-bin = no /* Compare EOS 8-bit */ >> set-xeos = no /* Assert EOI whenever EOS byte is sent */ >> set-eot = yes /* Assert EOI with last byte on writes */ >> >> /* settings for boards that lack plug-n-play capability */ >> base = 0 /* Base io ADDRESS */ >> irq = 0 /* Interrupt request level */ >> dma = 0 /* DMA channel (zero disables) */ >> >> /* pci_bus and pci_slot can be used to distinguish two pci boards >> supported by the same driver */ >> /* pci_bus = 0 */ >> /* pci_slot = 7 */ >> >> master = yes /* interface board is system controller */ >> } >> >> /* Now the device sections define the device characteristics for each >> device. >> * These are only used if you want to open the device using ibfind() >> (instead >> * of ibdev() ) >> */ >> >> device { >> minor = 0 >> name = "urv" >> pad = 10 >> sad = 0 >> } >> >> >> device { >> minor = 0 /* minor number for interface board this device >> is connected to */ >> name = "smg" /* device mnemonic */ >> pad = 28 /* The Primary Address */ >> sad = 0 /* Secondary Address */ >> >> eos = 0xa /* EOS Byte */ >> set-reos = yes /* Terminate read if EOS */ >> set-bin = no /* Compare EOS 8-bit */ >> } >> >> root@raspberrypi:/home/pi# >> >> >> _______________________________________________ >> Linux-gpib-general mailing list >> Lin...@li... >> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general > |